hugo/docs/content/en/methods/page/WordCount.md
2025-04-10 13:04:51 +02:00

19 lines
391 B
Markdown

---
title: WordCount
description: Returns the number of words in the content of the given page.
categories: []
keywords: []
params:
functions_and_methods:
returnType: int
signatures: [PAGE.WordCount]
---
```go-html-template
{{ .WordCount }} → 103
```
To round up to nearest multiple of 100, use the [`FuzzyWordCount`] method.
[`FuzzyWordCount`]: /methods/page/fuzzywordcount/