{% 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 %}