summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/countwords.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/countwords.md')
-rw-r--r--docs/content/en/functions/countwords.md10
1 files changed, 2 insertions, 8 deletions
diff --git a/docs/content/en/functions/countwords.md b/docs/content/en/functions/countwords.md
index 17f0fa5c2..33dcbcaef 100644
--- a/docs/content/en/functions/countwords.md
+++ b/docs/content/en/functions/countwords.md
@@ -1,24 +1,18 @@
---
title: countwords
description: Counts the number of words in a string.
-date: 2017-02-01
-publishdate: 2017-02-01
-lastmod: 2017-02-01
categories: [functions]
menu:
docs:
- parent: "functions"
+ parent: functions
keywords: [counting, word count]
signature: ["countwords INPUT"]
-workson: []
-hugoversion:
relatedfuncs: [countrunes]
-deprecated: false
---
The template function works similar to the [.WordCount page variable][pagevars].
-```
+```go-html-template
{{ "Hugo is a static site generator." | countwords }}
<!-- outputs a content length of 6 words. -->
```