truncate_words
Truncates a string down to a given number of words.
Params
str1{String}Input string, requiredcount{Number}Word count, required[suffix]{String}Trimming suffix string, optional, default is "..."returns{String}Returns string
Usage
{{ truncate_words str1 count [suffix] }}
Example
{{ truncate_words "foo bar baz" 1 }}
Was this article helpful to you?