Hugo Papermod - Show a description and remove article content

Hello there !

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…

Please raise this issue with the theme author:

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/, 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.

Made Add logic to use .Description instead of .Summary by masonwilde · Pull Request #1324 · adityatelange/hugo-PaperMod · GitHub and Show a description instead of summary in list of posts · adityatelange/hugo-PaperMod · Discussion #1323 · GitHub if you’re still looking for this functionality.