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
9 changed files with 92 additions and 51 deletions

View File

@@ -14,7 +14,7 @@
{% endif %}
{% if page.date %}
<li>{{ page.date | date(format=config.extra.date_format | default (value="%d %B %Y")) }} {{ separator }}</li>
<li>{{ macros_format_date::format_date(date=page.date, short=true) }} {{ separator }}</li>
{% endif %}
<li title="{{ page.word_count }} words">&nbsp;{{ page.reading_time }} min read</li>
@@ -31,7 +31,7 @@
{% endif %}
{% if page.updated %}
</ul><ul class="meta last-updated"><li>Last updated on {{ page.updated | date(format=config.extra.date_format | default (value="%d %B %Y")) }}</li>
</ul><ul class="meta last-updated"><li>Last updated on {{ macros_format_date::format_date(date=page.updated, short=true) }}</li>
{% endif %}
</ul>