diff --git a/_filters/capitalize.md b/_filters/capitalize.md index 72a461e..4fd0e76 100644 --- a/_filters/capitalize.md +++ b/_filters/capitalize.md @@ -1,9 +1,9 @@ --- title: capitalize -description: Liquid filter that capitalizes the first character of a string. +description: Liquid filter that capitalizes the first character of a string and downcases the remaining characters. --- -Makes the first character of a string capitalized. +Makes the first character of a string capitalized and converts the remaining characters to lowercase.

Input

```liquid @@ -22,11 +22,11 @@ Makes the first character of a string capitalized.

Input

```liquid {% raw %} -{{ "my great title" | capitalize }} +{{ "my GREAT title" | capitalize }} {% endraw %} ```

Output

```text -{{ "my great title" | capitalize }} +{{ "my GREAT title" | capitalize }} ```