From dc7cd7704fc4927816e2e1ae5a917abc00d5508f Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Fri, 13 Mar 2015 16:20:30 -0700 Subject: [PATCH] How do I Liquid? --- _filters/capitalize.md | 8 ++++---- _filters/ceil.md | 12 ++++++------ _layouts/default.html | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/_filters/capitalize.md b/_filters/capitalize.md index 720d67e2..91c5d736 100644 --- a/_filters/capitalize.md +++ b/_filters/capitalize.md @@ -4,9 +4,9 @@ title: capitalize `capitalize` ensures the first character of your string is capitalized. -| Input | Output | -|------------------------------------:|:-----------------| -| `{ "title" | capitalize }` | "Title" | -| `{ "my great title" | capitalize }` | "My great title" | +| Input | Output | +|--------------------------------------:|:-----------------| +| `{{ "title" | capitalize }}` | "Title" | +| `{{ "my great title" | capitalize }}` | "My great title" | It only capitalizes the first character, so subsequent words will not be capitalized as well. diff --git a/_filters/ceil.md b/_filters/ceil.md index e6fbc489..672eb8fc 100644 --- a/_filters/ceil.md +++ b/_filters/ceil.md @@ -4,11 +4,11 @@ title: ceil `ceil` rounds the input up to the nearest whole number. -| Input | Output | -|--------------------:|:-------| -| `{ 1.2 | ceil }` | 2 | -| `{ 1.7 | ceil }` | 2 | -| `{ 2.0 | ceil }` | 2 | -| `{ "18.3" | ceil }` | 19 | +| Input | Output | +|----------------------:|:-------| +| `{{ 1.2 | ceil }}` | 2 | +| `{{ 1.7 | ceil }}` | 2 | +| `{{ 2.0 | ceil }}` | 2 | +| `{{ "18.3" | ceil }}` | 19 | It will attempt to cast any input to a number. \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 6cff173e..1adbaab5 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -9,7 +9,7 @@