diff --git a/Gruntfile.js b/Gruntfile.js index ba8dd398..a1b7acc2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -43,7 +43,6 @@ require('load-grunt-tasks')(grunt); } }, - postcss: { options: { map: true, diff --git a/_filters/append.md b/_filters/append.md index cfc79011..33b25f35 100644 --- a/_filters/append.md +++ b/_filters/append.md @@ -16,7 +16,7 @@ It can also be used with variables: {% highlight liquid %} {% raw %} {% assign filename = "/index.html" %} -{{ product.url | append:filename }} +{{ product.url | append: filename }} {% endraw %} # => "#{product.url}/index.html" {% endhighlight %} diff --git a/_filters/capitalize.md b/_filters/capitalize.md index 41da42bd..c91af9c4 100644 --- a/_filters/capitalize.md +++ b/_filters/capitalize.md @@ -2,7 +2,7 @@ title: capitalize --- -`capitalize` ensures the first character of your string is capitalized. +`capitalize` makes the first character of your string capitalized. | Input | Output | |:-----------------------------------------------------------|:-----------------| diff --git a/_filters/default.md b/_filters/default.md index fa24f7a7..0726fadb 100644 --- a/_filters/default.md +++ b/_filters/default.md @@ -2,11 +2,11 @@ title: default --- -`default` offers a means of having a fall-back value in case your value doesn't exist. +`default` offers a means of having a fallback in case your value doesn't exist. {% highlight liquid %} {% raw %} -{{ product_price | default:2.99 }} +{{ product_price | default: 2.99 }} // => outputs "2.99" {% assign product_price = 4.99 %} @@ -14,7 +14,7 @@ title: default // => outputs "4.99" {% assign product_price = "" %} -{{ product_price | default:2.99 }} +{{ product_price | default: 2.99 }} // => outputs "2.99" {% endraw %} {% endhighlight %} diff --git a/_filters/divided_by.md b/_filters/divided_by.md index ba26b263..7c8e52cd 100644 --- a/_filters/divided_by.md +++ b/_filters/divided_by.md @@ -2,7 +2,7 @@ title: divided_by --- -This filter divides its input by its parameter. +This filter divides its input by its argument. | Code | Output | |:--------------------------------------------------|:-------| diff --git a/_filters/downcase.md b/_filters/downcase.md index 979e31f7..91ce71c1 100644 --- a/_filters/downcase.md +++ b/_filters/downcase.md @@ -2,10 +2,10 @@ title: downcase --- -This filter makes the entire input string the lower case version of each character within. +`downcase` makes each character in a string lowercase. | Code | Output | |:-------------------------------------------------------|:-----------------| | {% raw %}`{{ "Peter Parker" | downcase }}`{% endraw %} | `"peter parker"` | -It doesn't modify strings which are already entirely lowercase. It works with anything that has a `#to_s` method. +It doesn't modify strings which are already entirely lowercase. diff --git a/_filters/first.md b/_filters/first.md index 200b5a8b..11228b70 100644 --- a/_filters/first.md +++ b/_filters/first.md @@ -2,10 +2,9 @@ title: first --- -Return the first element of an array. +Returns the first element of an array. For example, if you have an array called `product.tags` that resolves to: `["sale", "mens", "womens", "awesome"]`: | Code | Output | |:-------------------------------------------------------|:-------------------| | {% raw %}`{{ product.tags | first }}`{% endraw %} | `"sale"` | -In the sample above, assume that `product.tags` resolves to: `["sale", "mens", "womens", "awesome"]`. diff --git a/_filters/modulo.md b/_filters/modulo.md index c9b70b27..0d9b4e30 100644 --- a/_filters/modulo.md +++ b/_filters/modulo.md @@ -2,8 +2,8 @@ title: modulo --- -Performs a modulo operation (eg., fetches the remainder). +Performs a modulo operation, i.e. returns the remainder. | Code | Output | |:-------------------------------------------------------|:-------------------| -| {% raw %}`{{ 2 | modulo: 2 }}`{% endraw %} | `1` | +| {% raw %}`{{ 3 | modulo: 2 }}`{% endraw %} | `1` | diff --git a/_filters/reverse.md b/_filters/reverse.md index 3d0fe8a0..baa3dbb4 100644 --- a/_filters/reverse.md +++ b/_filters/reverse.md @@ -1,3 +1,15 @@ --- title: reverse --- + +Reverses the order of an array. + +{% highlight liquid %} +{% raw %} +{{ product.tags }} +// ['cool', 'sale', 'purple', 'awesome'] + +{{ product.tags | reverse }} +// ['awesome', 'purple', 'sale', 'cool'] +{% endraw %} +{% endhighlight %} diff --git a/_filters/strip_html.md b/_filters/strip_html.md index 1fdfb48f..7def0511 100644 --- a/_filters/strip_html.md +++ b/_filters/strip_html.md @@ -1,3 +1,11 @@ --- title: strip_html --- + +
Strips all HTML tags from a string.
+ +Input
+ +| Code | Output | +|:-------------------------------------------------------|:-------------------| +| {% raw %}`{{ "