Closed DavidKrassnig closed 1 year ago
An alternative I tried out was using ISO 8601 (YYYY-MM-DD), but so far decided against it to keep it uniform with other languages (i.e., have the month spelled out). If ISO 8601 is preferred, this would work and I could change it to this:
{% else %}
{{year}}-{{ include.date_from.date | date: "%m" }}-{{day}}
{% endif %}
I believe this solution is good enough. Thanks for your contribution.
So far, no date is displayed if the language is neither
en
norpt-br
. This adds a catch-all else-condition to the most standard date format (DD month YYYY
).