countwords

将以下英文翻译为中文:

countwords

https://gohugo.io/functions/countwords/

Counts the number of words in a string.

语法

countwords INPUT

The template function works similar to the .WordCount page variable.

1
2
{{ "Hugo is a static site generator." | countwords }}
<!-- outputs a content length of 6 words.  -->

另请参阅