dsrkafuu / hugo-theme-fuji

A minimal Hugo theme with nice theme color. | 一个主题色极简 Hugo 主题。
https://github.dsrkafuu.net/hugo-theme-fuji/
Apache License 2.0
366 stars 97 forks source link

index page misses formatting when you don't use `<!--more-->` #56

Closed emilburzo closed 3 years ago

emilburzo commented 3 years ago

Hi,

First off, amazing theme, I especially love the built-in dark mode :heart:

I'm new to hugo, so I'm not sure if the bug is in this theme or in hugo itself, but:

If I don't use <!--more--> in my posts, the index page is missing all the formatting, it's just raw text, e.g.:

Without <!--more-->

image

With <!--more-->

image

This only happens for the index page, the actual post page itself is fine in both cases.

Thanks!

dsrkafuu commented 3 years ago

That's actually how Hugo works.

By adding the <!--more--> to specify summary part, Hugo will pass rendered HTML to {{ .Summary }}, otherwise its just raw text cut from files according to summary length settings.

emilburzo commented 3 years ago

Huh, that's pretty strange behavior...

Thanks for the information and sorry for the noise!