From fc5d02fe1caea6c508c7ca409c68a97b5939cb5b Mon Sep 17 00:00:00 2001 From: EricFromCanada Date: Mon, 22 Feb 2021 17:12:01 -0500 Subject: [PATCH] `capitalize` also downcases each remaining letter --- _filters/capitalize.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }} ```