I use Hugo Papermod, and i would love to display a description under the article title in the list of the articles and not the content of the article. Is that possible ?
I managed to remove the content of the article by commenting this :
<!--<div class="entry-content">
<p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
</div> -->
in the layouts/_default/list.html but the description is not shown even if i have on the the top of my markdown file.
Thanks for your help
EDIT : i found an easier way for remove the content of the article with the params “hideSummary: true”
but the description is not showing off…
Hey, I just came across this post while looking to do the same thing.
I got it working by adding a description = {{ .Description }} line to archetypes/default.md, then copying the theme _default/list.html to layouts/_default/list.html and editing l77 to use .Description instead of .Summary.
Then you just add a description='description' in the meta part of a post.