New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shortcodes do not get evaluated in HTML content files with manual summary splitting #6513
Comments
Maybe this is related to the second part of #6451 because it happens under very similar conditions. |
I can confirm this. Here's how you can reproduce with latest master:
"HTMLpost with summary" does not render properly (all the highlight commands and code are shown as is), whereas the other two work fine |
I can confirm that this is still an issue in 0.120.4 for |
updating reproduction steps for the latest quickstart instructions using hugo 0.122, to confirm that still "HTMLpost with summary" does not render properly (all the highlight commands and code are shown as is), whereas the other two work fine you can execute all the code below in a terminal in a temp directory:
|
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Issue Details
When rendering an HTML content files which uses manual summary splitting shortcodes do not get evaluated and instead get displayed as raw text. This does not occur when using automatic summary splitting or manual summary splitting in markdown files.
I've produced a reproduction of this issue at https://github.com/danmharris/hugo-html-bug-demo. This contains two files,
posts/withsplit.html
andposts/nosplit.html
which use manual and automatic splitting respectively.When visiting
/posts/nosplit
the content renders as expected:However when visiting
/posts/withsplit
, the shortcode is not evaluated:The text was updated successfully, but these errors were encountered: