summaryLength not working in config.yaml

I add summaryLength: 25 in my config.yaml and it doesn’t seem to have any affects on {{.Summary }} in my short code. Do I need to put summaryLength under any specific headings?

see
Content Summaries | Hugo (gohugo.io)
summaryLength is a hint or Hugo, don’t count the words and compare it :wink:

try bigger values and check what happens

Oh, So if I set the length to 25, it’s like 25% of original length?

IIRC: 25 mean 25 words, but Hugo looks for sentence punctuation near this.

A develper could help here and extend the doc to clarify this :wink:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.