aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-12 12:06:07 -0300
committerEuAndreh <eu@euandre.org>2020-08-12 12:06:07 -0300
commit3720c8b0146c10a63dc1d9eba0556e0a67adfd1d (patch)
tree463e3dc33553c05f85275617617f342cb20f38ab /_layouts
parentscripts/assert-content.sh: Add check for missing title (diff)
downloadeuandre.org-3720c8b0146c10a63dc1d9eba0556e0a67adfd1d.tar.gz
euandre.org-3720c8b0146c10a63dc1d9eba0556e0a67adfd1d.tar.xz
Use _includes/i18n-date.html for dates
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/index.html2
-rw-r--r--_layouts/pastebin.html2
-rw-r--r--_layouts/pastebins-listing.html2
-rw-r--r--_layouts/post.html6
-rw-r--r--_layouts/tils-listing.html2
5 files changed, 7 insertions, 7 deletions
diff --git a/_layouts/index.html b/_layouts/index.html
index 1ce99ca..2e39734 100644
--- a/_layouts/index.html
+++ b/_layouts/index.html
@@ -12,7 +12,7 @@ layout: default
<ul>
{%- for post in lposts -%}
<li>
- <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: site.t.date_format[page.lang] }}
+ <a href="{{ post.url }}">{{ post.title | escape }}</a> - {% include i18n-date.html date=post.date %}
</li>
{%- endfor -%}
</ul>
diff --git a/_layouts/pastebin.html b/_layouts/pastebin.html
index 21e4f65..4314ca2 100644
--- a/_layouts/pastebin.html
+++ b/_layouts/pastebin.html
@@ -3,7 +3,7 @@ layout: default
---
<article>
<section class="header">
- Posted on {{ page.date | date: site.t.date_format[page.lang] }}
+ Posted on {% include i18n-date.html date=page.date %}
</section>
<section>
{{ content }}
diff --git a/_layouts/pastebins-listing.html b/_layouts/pastebins-listing.html
index 4c37c93..58837e1 100644
--- a/_layouts/pastebins-listing.html
+++ b/_layouts/pastebins-listing.html
@@ -6,7 +6,7 @@ layout: default
{% assign pastebins = site.pastebins | sort: "date" | reverse %}
{%- for pastebin in pastebins -%}
<li>
- <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: site.t.date_format[page.lang] }}
+ <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {% include i18n-date.html date=pastebin.date %}
</li>
{%- endfor -%}
</ul>
diff --git a/_layouts/post.html b/_layouts/post.html
index 18debe5..0bb165f 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -3,11 +3,11 @@ layout: default
---
<article>
<section class="header">
- {{ site.t.posted_on[page.lang] }} {{ page.date | date: site.t.date_format[page.lang] }}
+ {{ site.t.posted_on[page.lang] }} {% include i18n-date.html date=page.date %}
</section>
{% if page.updated_at %}
- <section class="header">
- {{ site.t.updated_at[page.lang] }} {{ page.updated_at | date: site.t.date_format[page.lang] }}
+ <section class="header">
+ {{ site.t.updated_at[page.lang] }}
</section>
{% endif %}
<section>
diff --git a/_layouts/tils-listing.html b/_layouts/tils-listing.html
index e254125..38cec2b 100644
--- a/_layouts/tils-listing.html
+++ b/_layouts/tils-listing.html
@@ -12,7 +12,7 @@ layout: default
{% assign tils = site.tils | where:"lang", page.lang | sort: "date" | reverse %}
{%- for til in tils -%}
<li>
- <a href="{{ til.url | relative_url }}">{{ til.title | escape }}</a> - {{ til.date | date: site.t.date_format[page.lang] }}
+ <a href="{{ til.url | relative_url }}">{{ til.title | escape }}</a> - {% include i18n-date.html date=til.date %}
</li>
{%- endfor -%}
</ul>