strings.CountWords
Syntax
strings.CountWords INPUT ⟼ int
Alias
countwords
The template function works similar to the .WordCount page variable.
{{ "Hugo is a static site generator." | countwords }}
<!-- outputs a content length of 6 words. -->
strings.CountWords INPUT ⟼ int
countwords
The template function works similar to the .WordCount page variable.
{{ "Hugo is a static site generator." | countwords }}
<!-- outputs a content length of 6 words. -->