diff --git a/config.toml b/config.toml index 87fdf4c..241294b 100644 --- a/config.toml +++ b/config.toml @@ -105,7 +105,7 @@ language_name.es = "Español" theme_switcher = true # Date format used when listing posts (main page, /blog section, tag posts list…) -# Default is "6th July 2049". +# Default is "6th July 2049" in English and "%d %B %Y" in other languages. long_date_format = "%d %B %Y" # Date format used for blog posts. diff --git a/templates/macros/format_date.html b/templates/macros/format_date.html index 9f89aed..ea88bb5 100644 --- a/templates/macros/format_date.html +++ b/templates/macros/format_date.html @@ -34,7 +34,7 @@ {% else %} {{ date | date(format="%B %Y") }} {% endif %} -{% elif short %} +{% else %} {{ date | date(format="%d %b %Y", locale=date_locale) }} {% endif %}