From 586aaaea5699b27087d3afa413e745278fe7e5e1 Mon Sep 17 00:00:00 2001 From: Mike Wilson Date: Fri, 19 Sep 2025 10:31:43 -0400 Subject: [PATCH] Only show Created and Modified dates if they have a value --- templates/post.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/post.html b/templates/post.html index 8062d0d..6c8a0a5 100644 --- a/templates/post.html +++ b/templates/post.html @@ -4,7 +4,7 @@

{{ page.title }}

-

Created: {{ page.date }}

-

Modified: {{ page.updated }}

+{% if page.date %}

Created: {{ page.date }}

{% endif %} +{% if page.updated %}

Modified: {{ page.updated }}

{% endif %} {{ page.content | safe }} {% endblock content %}