LiquidJS

TutorialsTagsFiltersPlaygroundAPI
Github
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedate_to_long_stringdate_to_rfc822date_to_stringdate_to_xmlschemadefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expinspectjoinjsonjsonifylastlstripmapminusmodulonewline_to_brnormalize_whitespacepluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimesto_integertruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewherewhere_exp

capitalize

v1.9.1

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
Last updated: 2024-05-09 PrevNext
Contents
Back to Top
© 2024 Harttle
Documentation licensed under CC BY 4.0.
    TutorialsTagsFiltersPlaygroundAPI
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedate_to_long_stringdate_to_rfc822date_to_stringdate_to_xmlschemadefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expinspectjoinjsonjsonifylastlstripmapminusmodulonewline_to_brnormalize_whitespacepluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimesto_integertruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewherewhere_exp