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 b8a3be3f..41da42bd 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 43a00a60..c77f43bf 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 627368aa..43c6f4a4 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 bfbefaf2..ba26b263 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 c00d281b..979e31f7 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 800651bd..a9cfdd71 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 0ae33be5..02b02bc5 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 825949ce..200b5a8b 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 7d2aefa5..e8f2898a 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 c74c1b90..e1035f3e 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 1a311b0b..13d4a57c 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 3ab4fc0c..80ca9ae5 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 c6f82e67..769b976a 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 890b1d47..c125690f 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 ccbe87a7..c9b70b27 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 90842290..3647640d 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 d8aceeed..5e07e029 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 cddfaac8..5b40fc5c 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 b0842e6a..579243fa 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 468b000d..03779657 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 6eb958e0..a492a5b9 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 22e18a09..b5343d8d 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 758d694a..6c07f223 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 118c29d3..0570dc5e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -45,8 +45,6 @@
{{ content }}
- Previous - Next