W3cubDocs

/Liquid

capitalize

Makes the first character of a string capitalized.

Input

{{ "title" | capitalize }}

Output

Title

capitalize only capitalizes the first character of the 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/