🐛 fix(post_listing_date): show original date for unedited articles (#355)

This commit is contained in:
sam
2024-07-14 16:35:17 +02:00
committed by GitHub
parent a76d6888b6
commit 5db006ac47
6 changed files with 10 additions and 6 deletions

View File

@@ -20,7 +20,7 @@
{{ throw(message="ERROR: Invalid value for config.extra.post_listing_date. Allowed values are 'date', 'updated', or 'both'.") }}
{%- endif -%}
{%- set show_date = post.date and post_listing_date == "date" or post.date and post_listing_date == "both" -%}
{%- set show_date = post.date and post_listing_date == "date" or post.date and post_listing_date == "both" or post.date and post_listing_date == "updated" and not post.updated -%}
{%- set show_updated = post.updated and post_listing_date == "updated" or post.updated and post_listing_date == "both" -%}
{%- if show_date or show_updated -%}