diff --git a/templates/index.html b/templates/index.html index 19698fe..7d96c37 100644 --- a/templates/index.html +++ b/templates/index.html @@ -57,8 +57,9 @@

{{ page.title }}

- - {{ page.date | date(format="%Y-%m-%d") }} + {% if page.date %} + {{ page.date | date(format="%Y-%m-%d") }} + {% endif %} {% endfor %} diff --git a/templates/page.html b/templates/page.html index 35acc97..aacfc6f 100644 --- a/templates/page.html +++ b/templates/page.html @@ -3,8 +3,10 @@ {% block content %}

{{ page.title }}

- {{ page.date | date(format="%Y-%m-%d") }} - {{ page.content | safe }} + {% if page.date %} + {{ page.date | date(format="%Y-%m-%d") }} + {% endif %} + {{ page.content | safe }}
{% endblock content %}