Only show Created and Modified dates if they have a value

This commit is contained in:
Mike Wilson
2025-09-19 10:31:43 -04:00
parent 35548c8894
commit 586aaaea56

View File

@@ -4,7 +4,7 @@
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle"><strong>Created: {{ page.date }}</strong></p>
<p class="subtitle"><strong>Modified: {{ page.updated }}</strong></p>
{% if page.date %}<p class="subtitle"><strong>Created: {{ page.date }}</strong></p>{% endif %}
{% if page.updated %}<p class="subtitle"><strong>Modified: {{ page.updated }}</strong></p>{% endif %}
{{ page.content | safe }}
{% endblock content %}