halogenica / beautifulhugo

Theme for the Hugo static website generator
Other
1.14k stars 601 forks source link

enable formatting for the part of the post? #237

Open norayr opened 5 years ago

norayr commented 5 years ago

On the main (stream) page beautiful hugo shows parts of the post, and without formatting. Later, if you click on 'read more' then you get a formatted post.

Is it possible to enable formatting for only part of the post, which is shown on the stream page?

ventz commented 5 years ago

Sadly, it looks like this is not possible unless you use the <!--more--> tag.

Here is an example of the preview (incorrectly formatted):

preview

And here is the post itself (correctly formatted):

full
ventz commented 5 years ago

@norayr - If you use the <!--more--> tag manually in your posts, everything above it will be in the .Summary and the HTML will be left in-tact.

See here: https://gohugo.io/content-management/summaries/