From 518c406ff605af2a8f946f765f36fbe265f0b29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Gallego?= Date: Thu, 19 Feb 2026 10:19:28 +0900 Subject: [PATCH 1/3] Add doc for Squish filter --- _filters/squish.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 _filters/squish.md diff --git a/_filters/squish.md b/_filters/squish.md new file mode 100644 index 000000000..569983dff --- /dev/null +++ b/_filters/squish.md @@ -0,0 +1,32 @@ +--- +title: squish +description: Liquid filter that remove all whitespace on both ends of the string, and then changing remaining consecutive whitespace groups into one space each. +--- + +Remove all whitespace on both ends of the string, and then changing remaining consecutive whitespace groups into one space each. `squish` is commonly used +to dynamically create a list of classes or inline styles. + +

Input

+```liquid +{%- raw -%} +{% capture styles %} + --background: {% if section.settings.use_primary_background %}#ffffff{% else %}#000000{% endif %}; + --border-radius: {% if section.settings.use_rounded %}10{% else %}0{% endif %}px; +{% endcapture %} + +{% capture class %} + card + {% if section.settings.show_compact_card %} + card--compact + {% endif %} +{% endcapture %} + +
+
+``` + +

Output

+```text +
+
+``` From 794d0fca5126e4eca9f7acbd7d4d183f9402bd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Gallego?= Date: Sat, 7 Mar 2026 21:26:03 +0900 Subject: [PATCH 2/3] Update _filters/squish.md Co-authored-by: Gray Gilmore --- _filters/squish.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_filters/squish.md b/_filters/squish.md index 569983dff..98f99c5e5 100644 --- a/_filters/squish.md +++ b/_filters/squish.md @@ -1,6 +1,6 @@ --- title: squish -description: Liquid filter that remove all whitespace on both ends of the string, and then changing remaining consecutive whitespace groups into one space each. +description: Liquid filter that removes all whitespace on both ends of the string, and then changes remaining consecutive whitespace groups into one space each. --- Remove all whitespace on both ends of the string, and then changing remaining consecutive whitespace groups into one space each. `squish` is commonly used From 1825d50613aa0a7f2dd4f7c78f38e11dec4964ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Gallego?= Date: Sat, 7 Mar 2026 21:26:11 +0900 Subject: [PATCH 3/3] Update _filters/squish.md Co-authored-by: Gray Gilmore --- _filters/squish.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_filters/squish.md b/_filters/squish.md index 98f99c5e5..b9a8ff650 100644 --- a/_filters/squish.md +++ b/_filters/squish.md @@ -3,7 +3,7 @@ title: squish description: Liquid filter that removes all whitespace on both ends of the string, and then changes remaining consecutive whitespace groups into one space each. --- -Remove all whitespace on both ends of the string, and then changing remaining consecutive whitespace groups into one space each. `squish` is commonly used +Remove all whitespace on both ends of the string, and then change remaining consecutive whitespace groups into one space each. `squish` is commonly used to dynamically create a list of classes or inline styles.

Input