feat: allow dual date-format (short/long)

This commit is contained in:
welpo 2023-03-10 23:25:54 +01:00
parent e93b33e6b8
commit 9887fb0a6f
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
9 changed files with 92 additions and 51 deletions

View file

@ -13,7 +13,7 @@
{% if post.date %}
<div class="date">
{{ post.date | date(format=config.extra.date_format | default (value="%d %B %Y")) }}
{{ macros_format_date::format_date(date=post.date, short=false) }}
</div>
{% endif %}