From 4b2d27b9a44f64a1bd48beb49ad6562c9674df4e Mon Sep 17 00:00:00 2001 From: Mike Bridge Date: Wed, 25 Nov 2015 09:21:35 -0700 Subject: [PATCH] Updated Liquid for Designers (markdown) --- Liquid-for-Designers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Liquid-for-Designers.md b/Liquid-for-Designers.md index 956a711..b69a493 100644 --- a/Liquid-for-Designers.md +++ b/Liquid-for-Designers.md @@ -62,6 +62,7 @@ Hello {{ 'now' | date: "%Y %h" }} * `truncate` - truncate a string down to x characters. It also accepts a second parameter that will append to the string *e.g.* `{{ 'foobarfoobar' | truncate: 5, '.' }} #=> 'foob.'` * `truncatewords` - truncate a string down to x words * `prepend` - prepend a string *e.g.* `{{ 'bar' | prepend:'foo' }} #=> 'foobar'` +* `pluralize` - return the second word if the input is not `1`, otherwise return the first word *e.g.* `{{ 3 | pluralize: 'item', 'items' }} #=> 'items'` * `append` - append a string *e.g.* `{{ 'foo' | append:'bar' }} #=> 'foobar'` * `slice` - slice a string. Takes an offset and length, *e.g.* `{{ "hello" | slice: -3, 3 }} #=> llo` * `minus` - subtraction *e.g.* `{{ 4 | minus:2 }} #=> 2`