HUGO
News Docs Themes Community GitHub

WordCount

Returns the number of words in the content of the given page.

Syntax

PAGE.WordCount

Returns

int
{{ .WordCount }} → 103

To round up to nearest multiple of 100, use the FuzzyWordCount method.


Last updated: January 1, 0001
Improve this page