diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2018-09-06 12:19:29 -0400 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2018-09-06 12:19:29 -0400 |
commit | 76e6a6c905d2a95b384b224198d26bacb0a1bf5e (patch) | |
tree | fcbcc56d8be7ca58b62d0b0fcda5f6445b2bf493 /_layouts/home.html | |
parent | e01c63ade68e5f4d03b002a610c39751190f1abb (diff) |
make date_format a site-wide variable
Diffstat (limited to '_layouts/home.html')
-rw-r--r-- | _layouts/home.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/_layouts/home.html b/_layouts/home.html index a4802ec..856f298 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -11,7 +11,10 @@ layout: default {{ post.title | escape }} </a> </h2> - <span>{{ post.date | date: "%b %-d, %Y" }}</span> + <span>{{ post.date | date: site.date_format }}</span> + {%- if post.updated %} + <span>(Updated {{ post.updated | date: site.date_format }})</span> + {% endif -%} <p>{{ post.description }}</p> </li> {%- endfor -%} |