From 2e34e7e89741c463a7c83b3d0148813843b998a5 Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 18 Sep 2023 00:14:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20(format=5Fdate):=20set=20`?= =?UTF-8?q?%-d=20%b=20%Y`=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documentation was inaccurate. --- templates/macros/format_date.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/macros/format_date.html b/templates/macros/format_date.html index 8bb8e25..067a941 100644 --- a/templates/macros/format_date.html +++ b/templates/macros/format_date.html @@ -33,7 +33,11 @@ {{ date | date(format="%B %Y") }} {% endif %} {% else %} - {{ date | date(format="%d %b %Y", locale=date_locale) }} + {% if short %} + {{ date | date(format="%-d %b %Y", locale=date_locale) }} + {% else %} + {{ date | date(format="%d %b %Y", locale=date_locale) }} + {% endif %} {% endif %} {% endmacro %}