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
By default the theme takes the first paragraph or so of a post and uses it as the summary with the {{ .Summary }} variable, which is printed in the homepage
I would like to write my own summary instead. So far I tried setting both a description field and a summary field in the YAML but nothing really changed.
Have you tried with a large first letter? Another solution is to add a description parameter. You can do that by overriding templates in your root layouts folder, which is the best practice for customization.
Not sure what you mean by "large first letter", but I found a working solution on Yihui's blog.
All I did was pasting the code he posted over the {{ .Summary }} line in /layouts/partials/portfolio.html . This way if you have a field description in the YAML it will be displayed in the homepage under the title.
By default the theme takes the first paragraph or so of a post and uses it as the summary with the {{ .Summary }} variable, which is printed in the homepage
I would like to write my own summary instead. So far I tried setting both a
description
field and asummary
field in the YAML but nothing really changed.Any idea?
The text was updated successfully, but these errors were encountered: