george-gca / multi-language-al-folio

A beautiful, simple, clean, and responsive Jekyll theme for academics, with support for multiple languages
https://george-gca.github.io/multi-language-al-folio/
MIT License
81 stars 26 forks source link

General date format for languages without specific date format #6

Closed DavidKrassnig closed 1 year ago

DavidKrassnig commented 1 year ago

So far, no date is displayed if the language is neither en nor pt-br. This adds a catch-all else-condition to the most standard date format (DD month YYYY).

DavidKrassnig commented 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 %}

george-gca commented 1 year ago

I believe this solution is good enough. Thanks for your contribution.