aboutsummaryrefslogtreecommitdiff
path: root/_includes/i18n-date.html
blob: c57d93b5bee22fe358fdcd003165ae98a9c97bdf (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% capture i18n_month %}
{% assign m = include.date | date: "%-m" | minus: 1 %}
{{ site.t.months[page.lang][m] }}
{% endcapture %}
{% if page.lang == "en" %}
  {% comment %}
    handcrafting the "%B %-d, %Y" date format
  {% endcomment %}
  {{ i18n_month }}{{ include.date | date: "%-d, %Y" }}
{% elsif page.lang == "pt" %}
  {% comment %}
    handcrafting the "%-d de %B de %Y" date format
  {% endcomment %}
  {{ include.date | date: "%-d de " }}{{ i18n_month }}{{ include.date | date: " de %Y" }}
{% elsif page.lang == "fr" %}
  {% comment %}
    handcrafting the "%-d de %B de %Y" date format
  {% endcomment %}
  {{ include.date | date: "%-d de " }}{{ i18n_month }}{{ include.date | date: " de %Y" }}
{% endif %}