WordCount
Returns the number of words in the content of the given page.
Syntax
PAGE.WordCount
Returns
int
{{ .WordCount }} → 103To round up to the nearest multiple of 100, use the FuzzyWordCount method.
For content in CJK languages, set hasCJKLanguage to true in your project configuration. When enabled, Hugo applies CJK word counting rules to pages containing CJK characters. To override this behavior on a given page, set the isCJKLanguage field in its front matter.
Last updated:
August 14, 2026
:
content: Clarify affect of hasCJKLanguage and isCJKLanguage (713f17b05)
Improve this page