From 6da16155b39a2621c0d942eabaadf898a5bc40b1 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 6 Feb 2020 04:04:24 -0300 Subject: Use i18n date format everywhere --- _layouts/index.html | 2 +- _layouts/pastebin.html | 2 +- _layouts/pastebins-listing.html | 2 +- _layouts/pastebins.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_layouts/index.html b/_layouts/index.html index 5b45898..3c145d0 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -6,7 +6,7 @@ layout: default {%- for post in site.posts -%} {% if post.lang == page.lang %}
  • - {{ post.title | escape }} - {{ post.date | date: "%b %-d, %Y" }} + {{ post.title | escape }} - {{ post.date | date: site.t.date_format[page.lang] }}
  • {% endif %} {%- endfor -%} diff --git a/_layouts/pastebin.html b/_layouts/pastebin.html index 51194d7..21e4f65 100644 --- a/_layouts/pastebin.html +++ b/_layouts/pastebin.html @@ -3,7 +3,7 @@ layout: default ---
    - Posted on {{ page.date | date: "%b %-d, %Y" }} + Posted on {{ page.date | date: site.t.date_format[page.lang] }}
    {{ content }} diff --git a/_layouts/pastebins-listing.html b/_layouts/pastebins-listing.html index 2829411..e829e5e 100644 --- a/_layouts/pastebins-listing.html +++ b/_layouts/pastebins-listing.html @@ -5,7 +5,7 @@ layout: default diff --git a/_layouts/pastebins.html b/_layouts/pastebins.html index 6b7830c..45443c5 100644 --- a/_layouts/pastebins.html +++ b/_layouts/pastebins.html @@ -4,7 +4,7 @@ layout: default -- cgit v1.2.3