What is the difference between the hugo .Description and .Summary page variables?

What is the difference between the hugo .Description and .Summary page variables? Should they both be used in content front matter?

.Description requires

---
description: My description
---

in the front matter part of your .md files.

.Summary generates the summary of the content.

The semantically difference is … a little up to you, but on the technical level:

  • Description comes from front matter
  • Summary may be derived, in order 1) front matter 2) summary split tag in content 3) auto summary (first n words)
1 Like