Skip to content
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 not parsing for HTML content files with manual summary dividers #8205

Closed
drElektron opened this issue Feb 4, 2021 · 4 comments
Closed

Comments

@drElektron
Copy link

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.80.0-792EF0F4 windows/amd64 BuildDate: 2020-12-31T13:37:57Z

Does this issue reproduce with the latest release?

Yes and with v0.67.1

Description

TL;DR = Shortcodes won't parse for HTML content files that have a manual summary divider

Longer description in this discourse. Issue raised as per request.
This works:

<p>Some introduction words</p>
<p>Some main content words</p>
{{<a-custom-shortcode with=a-variable>}}
<p>Some other main content words</p>

This doesn't

<p>Some introduction words</p>
<!--more-->
<p>Some main content words</p>
{{<a-custom-shortcode with=a-variable>}}
<p>Some other main content words</p>

Demo repo for this behaviour is here

There is also another possible issue that is highlighted by this example - .Summary and .Content give different things for MD and HTML content files (although maybe that is intentional?).

@jmooring
Copy link
Member

jmooring commented Mar 11, 2021

Use <!-- more --> instead of <!--more-->.

Yes, there's a problem here somewhere, because the documentation states:

> Be careful to enter <!--more--> exactly; i.e., all lowercase and with no whitespace.

Disregard. Poor testing.

@jmooring
Copy link
Member

Duplicate of #6513.

@jmooring
Copy link
Member

There is also another possible issue that is highlighted by this example - .Summary and .Content give different things for MD and HTML content files

This is described in #6686.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants