Takes a string or variable and capitalizes the first letter of every word.
{{ string | capitalizewords }}
string
string. required. The string or variable to have the first letter of every word capitalized.
- string. This will output the value of
string
with the first letter of every word capitalized.
---
title: "About us"
---
<h1>{{ page.title | capitalizewords }}</h1>
<h1>About Us</h1>