mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-09-25 18:23:40 +02:00
Allow customizing post date format
Now you can set the format of the date used in the post in the config: ```toml [extra] post_date_format = "%Y-%m-%d" ```
This commit is contained in:
parent
7f630a4e31
commit
9989929679
3 changed files with 7 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
|||
{% macro date(page) %}
|
||||
<span class="post-date">
|
||||
{%- if page.date %}
|
||||
{{ page.date | date(format="%Y-%m-%d") }}
|
||||
{{ page.date | date(format=config.extra.post_date_format) }}
|
||||
{% endif -%}
|
||||
</span>
|
||||
{% endmacro post_date %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue