HUGO
Menu
GitHub 89567 stars Mastodon

FuzzyWordCount

Returns the number of words in the content of the given page, rounded up to the nearest multiple of 100.

Syntax

PAGE.FuzzyWordCount

Returns

int
{{ .FuzzyWordCount }} → 200

To get the exact word count, use the WordCount 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.