aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-06 04:04:24 -0300
committerEuAndreh <eu@euandre.org>2020-02-06 04:04:24 -0300
commit6da16155b39a2621c0d942eabaadf898a5bc40b1 (patch)
tree7d2a17c12623dbd1e7936e7994b1b66b4d17e87b
parentMerge branch 'jekyll' (diff)
downloadeuandre.org-6da16155b39a2621c0d942eabaadf898a5bc40b1.tar.gz
euandre.org-6da16155b39a2621c0d942eabaadf898a5bc40b1.tar.xz
Use i18n date format everywhere
-rw-r--r--_layouts/index.html2
-rw-r--r--_layouts/pastebin.html2
-rw-r--r--_layouts/pastebins-listing.html2
-rw-r--r--_layouts/pastebins.html2
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 %}
<li>
- <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: "%b %-d, %Y" }}
+ <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: site.t.date_format[page.lang] }}
</li>
{% 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
---
<article>
<section class="header">
- Posted on {{ page.date | date: "%b %-d, %Y" }}
+ Posted on {{ page.date | date: site.t.date_format[page.lang] }}
</section>
<section>
{{ 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
<ul>
{%- for pastebin in site.pastebins -%}
<li>
- <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: "%b %-d, %Y" }}
+ <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: site.t.date_format[page.lang] }}
</li>
{%- endfor -%}
</ul>
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
<ul>
{%- for pastebin in site.pastebins -%}
<li>
- <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: "%b %-d, %Y" }}
+ <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: site.t.date_format[page.lang] }}
</li>
{%- endfor -%}
</ul>