title
Title converts a hyphen-separated slug into a title-cased string.
Title converts a hyphen-separated slug into a title-cased string. Known acronyms (AI, API, GPT, etc.) are uppercased automatically. Additional acronyms can be passed as parameters.
Input
string
Parameters
| # | Type | Required |
|---|---|---|
| ... | string | no |
Returns
string
Examples
{{ slug | title }}
{{ "hello-world" | title }}
{{ post_slug | title:'seo','cta' }}How is this guide?