Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

count_substring Modifier

Returns the number of occurrences of search term in a given string. By default,
the comparison is case-insensitive, but can be made sensitive by setting the second parameter to true.

quote: |
Dude! You got a tattoo!
So do you, dude! Dude, what does my tattoo say?
Sweet! What about mine?
Dude! What does mine say?
Sweet! What about mine?
Dude! What does mine say?
{{ quote | count_substring('dude') }}
5
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →
Hello there! Are you looking for the Statamic v2 documentation?