HUGO
News Docs Themes Community GitHub

strings.CountWords

Returns the number of words in the given string.

Syntax

strings.CountWords INPUT

Returns

int

Alias

countwords
{{ "Hugo is a static site generator." | countwords }} → 6

Last updated: January 1, 0001
Improve this page