You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the past, the index page (home page) of my blog showed a post summary between the post title and the read more link. Since newer versions of Hugo (v0.134.0 and newer) the summary is not rendered any more on the home page. Please see the attached screenshots, where I rendered the same source with Hugo v0.133.1 and v0.134.0.
To Reproduce
Create a website which displays a summary of each post on the home page. Render the website using Hugo v0.133.1 and Hugo v0.134.0. Compare both websites.
Expected behavior
I expect the summary to be shown when rendering the same website using a newer Hugo version.
Screenshots
Rendering with Hugo v0.133.1:
Rendering with Hugo v0.134.0 and newer:
Desktop (please complete the following information):
OS: Linux
Browser: all
Version of the Theme: v1.16.0
Version of Hugo: v0.140.0 (tried v0.133.1 and v0.134.0, too)
Smartphone (please complete the following information):
I didn't tried it with a Smartphone.
Additional context
I did not overwrite, replace, or modify the theme files in any way.
In the release notes of Hugo v0.134.0 I found something about a (citation) slightly breaking change regarding the content summary handling.
The text was updated successfully, but these errors were encountered:
Hugo uses Goldmark to render Markdown to HTML. Goldmark marks HTML in Markdown files unsafe. Regarding the release notes of Hugo v0.134.0 the summary is now HTML, not markdown (if I understand it correctly). So Goldmark tries to render Markdown, which in reality is HTML, and replaces the HTML with the unsafe warning comment.
A quick and dirty workaround is to configure Goldmark using hugo.toml to allow unsafe HTML:
[markup.goldmark.renderer]
unsafe = true
This is a dirty hack because Goldmark should not be called with HTML code. I'm not familiar with Hugo template programming, but I think the pipe in the followin code is the problem:
Describe the bug
In the past, the index page (home page) of my blog showed a post summary between the post title and the read more link. Since newer versions of Hugo (v0.134.0 and newer) the summary is not rendered any more on the home page. Please see the attached screenshots, where I rendered the same source with Hugo v0.133.1 and v0.134.0.
To Reproduce
Create a website which displays a summary of each post on the home page. Render the website using Hugo v0.133.1 and Hugo v0.134.0. Compare both websites.
Expected behavior
I expect the summary to be shown when rendering the same website using a newer Hugo version.
Screenshots
Rendering with Hugo v0.133.1:
Rendering with Hugo v0.134.0 and newer:
Desktop (please complete the following information):
Smartphone (please complete the following information):
I didn't tried it with a Smartphone.
Additional context
I did not overwrite, replace, or modify the theme files in any way.
In the release notes of Hugo v0.134.0 I found something about a (citation) slightly breaking change regarding the content summary handling.
The text was updated successfully, but these errors were encountered: