From 3720c8b0146c10a63dc1d9eba0556e0a67adfd1d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 12 Aug 2020 12:06:07 -0300 Subject: Use _includes/i18n-date.html for dates --- _includes/i18n-date.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 _includes/i18n-date.html (limited to '_includes') diff --git a/_includes/i18n-date.html b/_includes/i18n-date.html new file mode 100644 index 0000000..9b73600 --- /dev/null +++ b/_includes/i18n-date.html @@ -0,0 +1,11 @@ +{% capture i18n_month %} +{% assign m = include.date | date: "%-m" | minus: 1 %} +{{ site.t.months[page.lang][m] }} +{% endcapture %} +{% if page.lang == "en" %} + + {{ i18n_month }}{{ include.date | date: "%-d, %Y" }} +{% elsif page.lang == "pt" %} + + {{ include.date | date: "%-d de " }}{{ i18n_month }}{{ include.date | date: " de %Y" }} +{% endif %} -- cgit v1.2.3