-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Fall back to summary set in front matter #5800
Labels
Milestone
Comments
Hey, Short answer is To create the least amount of surprises, I suggest that we check for
|
bep
changed the title
Override auto-generate page .Summary?
Fall back to summary set in front matter
Mar 29, 2019
Okay will take a look at this. |
mcdee
added a commit
to mcdee/hugo
that referenced
this issue
Apr 1, 2019
Add the ability to have a `summary` page variable that overrides the auto-generated summary. Logic for obtaining summary becomes: * if summary divider is present in content use the text above it * if summary variables is present in page metadata use that * auto-generate summary from first _x_ words of the content Fixes gohugoio#5800
bep
pushed a commit
that referenced
this issue
Apr 5, 2019
Add the ability to have a `summary` page variable that overrides the auto-generated summary. Logic for obtaining summary becomes: * if summary divider is present in content, use the text above it * if summary variables is present in page metadata, use that * auto-generate summary from first _x_ words of the content Fixes #5800
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hugo's auto-generated page .Summary is often of no use to me so I write my own as a page variable. This means, however, that I need to change common templates (e.g. RSS feed) to use said variable.
Is there any interest in a patch that would alter .Summary so that if a page variable called summary was available it used that value rather than auto-generating one from the content?
The text was updated successfully, but these errors were encountered: