pretty tables

This commit is contained in:
Garen Torikian
2015-03-15 18:23:17 -07:00
parent 2232f9157c
commit 601e49dc55

View File

@@ -4,9 +4,9 @@ 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 |
| Input | Output |
|--------------------------------------------------------------------------:|:---------------------|
| {% raw %}`{{ article.published_at | date: "%a, %b %d, %y" }}`{% endraw %} | Tue, Apr 22, 14 |
| {% raw %}`{{ article.published_at | date: "%Y" }}`{% endraw %} | 2014 |
The format for this syntax is the same as [`strftime`](http://strftime.net/).