🐛 fix: avoid empty dates when long_date_format is empty
This commit is contained in:
parent
534969de11
commit
eded835d3f
@ -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.
|
||||
|
@ -34,7 +34,7 @@
|
||||
{% else %}
|
||||
{{ date | date(format="%B %Y") }}
|
||||
{% endif %}
|
||||
{% elif short %}
|
||||
{% else %}
|
||||
{{ date | date(format="%d %b %Y", locale=date_locale) }}
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user