adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
9.21k stars 2.51k forks source link

When display post summary, use .Summary instead of .Description #1532

Closed xuhdev closed 1 month ago

xuhdev commented 1 month ago

.Description is meant to be used for metadata purpose: https://gohugo.io/methods/page/description/ While .Summary can be used to display to human readers: https://gohugo.io/methods/page/summary/

Hugo document has emphasized this in the .Description page:

Conceptually different from a content summary, a page description is typically used in metadata about the page.

Hugo embedded templates are consistent in this regard.

PR Checklist

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

xuhdev commented 1 month ago

Patch seems to be malfunctioning, closing