Only show Created and Modified dates if they have a value
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
</h1>
|
</h1>
|
||||||
<p class="subtitle"><strong>Created: {{ page.date }}</strong></p>
|
{% if page.date %}<p class="subtitle"><strong>Created: {{ page.date }}</strong></p>{% endif %}
|
||||||
<p class="subtitle"><strong>Modified: {{ page.updated }}</strong></p>
|
{% if page.updated %}<p class="subtitle"><strong>Modified: {{ page.updated }}</strong></p>{% endif %}
|
||||||
{{ page.content | safe }}
|
{{ page.content | safe }}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|||||||
Reference in New Issue
Block a user