Skip to content

Commit

Permalink
Fix if there is no updated date.
Browse files Browse the repository at this point in the history
  • Loading branch information
sam9032 committed Jul 13, 2024
1 parent a76d688 commit 70821bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/macros/list_posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 70821bb

Please sign in to comment.