capitalize

Makes the first character of a string capitalized.

Input

{{ "title" | capitalize }}

Output

Title

capitalize only capitalizes the first character of a string, so later words are not affected:

Input

{{ "my great title" | capitalize }}

Output

My great title

© 2005, 2006 Tobias Luetke
Licensed under the MIT License.
https://shopify.github.io/liquid/filters/capitalize/