strings.CountWords
Syntax
strings.CountWords INPUT
Returns
int
Alias
countwords
该模板函数与.WordCount页面变量类似。
{{ "Hugo is a static site generator." | countwords }} → 6
Syntax
strings.CountWords INPUT
Returns
int
Alias
countwords
该模板函数与.WordCount页面变量类似。
{{ "Hugo is a static site generator." | countwords }} → 6