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