diff options
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/i18n-date.html | 11 |
1 files changed, 11 insertions, 0 deletions
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" %} + <!-- handcrafting the "%B %-d, %Y" date format --> + {{ i18n_month }}{{ include.date | date: "%-d, %Y" }} +{% elsif page.lang == "pt" %} + <!-- handcrafting the "%-d de %B de %Y" date format --> + {{ include.date | date: "%-d de " }}{{ i18n_month }}{{ include.date | date: " de %Y" }} +{% endif %} |