mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
659 B
659 B
title, linkTitle, description, categories, keywords, menu, function, relatedFunctions, aliases
title | linkTitle | description | categories | keywords | menu | function | relatedFunctions | aliases | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
strings.CountWords | countwords | Counts the number of words in a string. |
|
|
|
|
|
The template function works similar to the .WordCount page variable.
{{ "Hugo is a static site generator." | countwords }}
<!-- outputs a content length of 6 words. -->