From 7f550c8bceaefd152323ce7214696deea026edba Mon Sep 17 00:00:00 2001 From: Tetsuro Date: Sat, 25 Jul 2015 17:09:54 -0400 Subject: [PATCH] Left-aligned table headers --- _filters/capitalize.md | 2 +- _filters/ceil.md | 2 +- _filters/date.md | 2 +- _filters/divided_by.md | 2 +- _filters/downcase.md | 2 +- _filters/escape.md | 2 +- _filters/escape_once.md | 2 +- _filters/first.md | 2 +- _filters/floor.md | 2 +- _filters/join.md | 2 +- _filters/last.md | 2 +- _filters/lstrip.md | 2 +- _filters/map.md | 2 +- _filters/minus.md | 2 +- _filters/modulo.md | 2 +- _filters/newline_to_br.md | 2 +- _filters/plus.md | 2 +- _filters/prepend.md | 2 +- _filters/remove.md | 2 +- _filters/remove_first.md | 2 +- _filters/replace_first.md | 2 +- _filters/rstrip.md | 2 +- _filters/strip.md | 2 +- _layouts/default.html | 2 -- 24 files changed, 23 insertions(+), 25 deletions(-) diff --git a/_filters/capitalize.md b/_filters/capitalize.md index b8a3be3..41da42b 100644 --- a/_filters/capitalize.md +++ b/_filters/capitalize.md @@ -5,7 +5,7 @@ title: capitalize `capitalize` ensures the first character of your string is capitalized. | Input | Output | -|-----------------------------------------------------------:|:-----------------| +|:-----------------------------------------------------------|:-----------------| | {% raw %}`{{ "title" | capitalize }}` {% endraw %} | "Title" | | {% raw %}`{{ "my great title" | capitalize }}`{% endraw %} | "My great title" | diff --git a/_filters/ceil.md b/_filters/ceil.md index 43a00a6..c77f43b 100644 --- a/_filters/ceil.md +++ b/_filters/ceil.md @@ -6,7 +6,7 @@ layout: default `ceil` rounds the input up to the nearest whole number. | Input | Output | -|-------------------------------------------:|:-------| +|:-------------------------------------------|:-------| | {% raw %}`{{ 1.2 | ceil }}` {% endraw %} | 2 | | {% raw %}`{{ 1.7 | ceil }}` {% endraw %} | 2 | | {% raw %}`{{ 2.0 | ceil }}` {% endraw %} | 2 | diff --git a/_filters/date.md b/_filters/date.md index 627368a..43c6f4a 100644 --- a/_filters/date.md +++ b/_filters/date.md @@ -5,7 +5,7 @@ title: date `date` converts a timestamp into another date format. | Input | Output | -|--------------------------------------------------------------------------:|:---------------------| +|:--------------------------------------------------------------------------|:---------------------| | {% raw %}`{{ article.published_at | date: "%a, %b %d, %y" }}`{% endraw %} | Tue, Apr 22, 14 | | {% raw %}`{{ article.published_at | date: "%Y" }}`{% endraw %} | 2014 | diff --git a/_filters/divided_by.md b/_filters/divided_by.md index bfbefaf..ba26b26 100644 --- a/_filters/divided_by.md +++ b/_filters/divided_by.md @@ -5,7 +5,7 @@ title: divided_by This filter divides its input by its parameter. | Code | Output | -|--------------------------------------------------:|:-------| +|:--------------------------------------------------|:-------| | {% raw %}`{{ 4 | divided_by: 2 }}` {% endraw %} | 2 | | {% raw %}`{{ "16" | divided_by: 4 }}`{% endraw %} | 4 | diff --git a/_filters/downcase.md b/_filters/downcase.md index c00d281..979e31f 100644 --- a/_filters/downcase.md +++ b/_filters/downcase.md @@ -5,7 +5,7 @@ title: downcase This filter makes the entire input string the lower case version of each character within. | 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. diff --git a/_filters/escape.md b/_filters/escape.md index 800651b..a9cfdd7 100644 --- a/_filters/escape.md +++ b/_filters/escape.md @@ -5,7 +5,7 @@ title: escape Escapes a string by replacing characters with escape sequences (so that the string can be used in a URI). | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ "Need tips? Ask a friend!" | escape }}`{% endraw %} | `"Need%20tips%3F%Ask%20a%20friend%21"` | | {% raw %}`{{ "Nope" | escape }}`{% endraw %} | `"Nope"` | diff --git a/_filters/escape_once.md b/_filters/escape_once.md index 0ae33be..02b02bc 100644 --- a/_filters/escape_once.md +++ b/_filters/escape_once.md @@ -5,7 +5,7 @@ title: escape_once Escapes a string without affecting existing escaped entities. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ "1 < 2 & 3" | escape_once }}`{% endraw %} | `"1 < 2 & 3"` | | {% raw %}`{{ "<< Accept & Checkout" | escape_once }}`{% endraw %} | `"<< Accept & Checkout"` | | {% raw %}`{{ "Nope" | escape_once }}`{% endraw %} | `"Nope"` | diff --git a/_filters/first.md b/_filters/first.md index 825949c..200b5a8 100644 --- a/_filters/first.md +++ b/_filters/first.md @@ -5,7 +5,7 @@ title: first Return the first element of an array. | 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/floor.md b/_filters/floor.md index 7d2aefa..e8f2898 100644 --- a/_filters/floor.md +++ b/_filters/floor.md @@ -5,7 +5,7 @@ title: floor `floor` rounds the input down to the nearest whole number. | Input | Output | -|-------------------------------------------:|:-------| +|:-------------------------------------------|:-------| | {% raw %}`{{ 1.2 | floor }}` {% endraw %} | 1 | | {% raw %}`{{ 1.7 | floor }}` {% endraw %} | 1 | | {% raw %}`{{ 2.0 | floor }}` {% endraw %} | 2 | diff --git a/_filters/join.md b/_filters/join.md index c74c1b9..e1035f3 100644 --- a/_filters/join.md +++ b/_filters/join.md @@ -5,7 +5,7 @@ title: join `join` joins the elements of an array, using the character you provide. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ product.tags | join: ', ' }}`{% endraw %} | `"sale, mens, womens, awesome` | In the sample above, assume that `product.tags` resolves to: `["sale", "mens", "womens", "awesome"]`. diff --git a/_filters/last.md b/_filters/last.md index 1a311b0..13d4a57 100644 --- a/_filters/last.md +++ b/_filters/last.md @@ -5,7 +5,7 @@ title: last Return the last element of an array. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ product.tags | last }}`{% endraw %} | `"awesome"` | In the sample above, assume that `product.tags` resolves to: `["sale", "mens", "womens", "awesome"]`. diff --git a/_filters/lstrip.md b/_filters/lstrip.md index 3ab4fc0..80ca9ae 100644 --- a/_filters/lstrip.md +++ b/_filters/lstrip.md @@ -5,5 +5,5 @@ title: lstrip Strips all whitespace (tabs, spaces, and newlines) from the left side of a string. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ ' too many spaces ' | lstrip }}`{% endraw %} | `"too many spaces "` | diff --git a/_filters/map.md b/_filters/map.md index c6f82e6..769b976 100644 --- a/_filters/map.md +++ b/_filters/map.md @@ -5,7 +5,7 @@ title: map Collects an array of properties from a hash. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ product | map: 'tag' }}`{% endraw %} | `["sale", "mens", "womens", "awesome"]` | In the sample above, assume that `product` resolves to: `[{ tags: "sale"}, { tags: "mens"}, { tags: "womens"}, { tags: "awesome"}]`. diff --git a/_filters/minus.md b/_filters/minus.md index 890b1d4..c125690 100644 --- a/_filters/minus.md +++ b/_filters/minus.md @@ -5,5 +5,5 @@ title: minus Subtracts two numbers. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ 100 | minus: 10 }}`{% endraw %} | `90` | diff --git a/_filters/modulo.md b/_filters/modulo.md index ccbe87a..c9b70b2 100644 --- a/_filters/modulo.md +++ b/_filters/modulo.md @@ -5,5 +5,5 @@ title: modulo Performs a modulo operation (eg., fetches the remainder). | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ 2 | modulo: 2 }}`{% endraw %} | `1` | diff --git a/_filters/newline_to_br.md b/_filters/newline_to_br.md index 9084229..3647640 100644 --- a/_filters/newline_to_br.md +++ b/_filters/newline_to_br.md @@ -5,5 +5,5 @@ title: newline_to_br Replace every newline (`n`) with an HTML break (`
`). | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ "hello\nthere" | newline_to_br }}`{% endraw %} | `hello
there` | diff --git a/_filters/plus.md b/_filters/plus.md index d8aceee..5e07e02 100644 --- a/_filters/plus.md +++ b/_filters/plus.md @@ -5,5 +5,5 @@ title: plus Adds two numbers. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ 100 | plus: 10 }}`{% endraw %} | `110` | diff --git a/_filters/prepend.md b/_filters/prepend.md index cddfaac..5b40fc5 100644 --- a/_filters/prepend.md +++ b/_filters/prepend.md @@ -5,5 +5,5 @@ title: prepend Prepends a string onto another. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ 'world' | prepend: 'hello ' }}`{% endraw %} | `hello world` | diff --git a/_filters/remove.md b/_filters/remove.md index b0842e6..579243f 100644 --- a/_filters/remove.md +++ b/_filters/remove.md @@ -5,5 +5,5 @@ title: remove Removes every occurrence of a given string. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ 'hello, hello world' | remove: 'hello' }}`{% endraw %} | `, world` | diff --git a/_filters/remove_first.md b/_filters/remove_first.md index 468b000..0377965 100644 --- a/_filters/remove_first.md +++ b/_filters/remove_first.md @@ -5,5 +5,5 @@ title: remove_first Removes the first occurrence of a given string. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ 'hello, hello world' | remove_first: 'hello' }}`{% endraw %} | `, hello world` | diff --git a/_filters/replace_first.md b/_filters/replace_first.md index 6eb958e..a492a5b 100644 --- a/_filters/replace_first.md +++ b/_filters/replace_first.md @@ -5,5 +5,5 @@ title: replace_first Replaces the first occurrence of a given string. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ 'hello, hello world' | replace_first: 'hello', 'goodbye' }}`{% endraw %} | `goodbye, hello world` | diff --git a/_filters/rstrip.md b/_filters/rstrip.md index 22e18a0..b5343d8 100644 --- a/_filters/rstrip.md +++ b/_filters/rstrip.md @@ -5,5 +5,5 @@ title: rstrip Strips all whitespace (tabs, spaces, and newlines) from the right side of a string. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ ' too many spaces ' | rstrip }}`{% endraw %} | `"too many spaces "` | diff --git a/_filters/strip.md b/_filters/strip.md index 758d694..6c07f22 100644 --- a/_filters/strip.md +++ b/_filters/strip.md @@ -5,5 +5,5 @@ title: strip Strips all whitespace (tabs, spaces, and newlines) from a string. | Code | Output | -|-------------------------------------------------------:|:-------------------| +|:-------------------------------------------------------|:-------------------| | {% raw %}`{{ ' too many spaces ' | strip }}`{% endraw %} | `"too many spaces"` | diff --git a/_layouts/default.html b/_layouts/default.html index 118c29d..0570dc5 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -45,8 +45,6 @@
{{ content }}
- Previous - Next