mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 07:44:18 +00:00
3a62d54745
Add the ability to have a `summary` page variable that overrides the auto-generated summary. Logic for obtaining summary becomes: * if summary divider is present in content, use the text above it * if summary variables is present in page metadata, use that * auto-generate summary from first _x_ words of the content Fixes #5800 |
||
---|---|---|
.. | ||
init.go | ||
init_test.go | ||
remarshal.go | ||
remarshal_test.go | ||
transform.go | ||
transform_test.go | ||
unmarshal.go | ||
unmarshal_test.go |