diff --git a/prosopopee/templates/index.html b/prosopopee/templates/index.html
index fcbc9d7..f3b9b96 100644
--- a/prosopopee/templates/index.html
+++ b/prosopopee/templates/index.html
@@ -19,7 +19,7 @@
{{ gallery.title }}
{% if gallery.sub_title %}
{{ gallery.sub_title }}
{% endif %}
- {% if settings.show_date %}{% if gallery.date %}
{{ gallery.date.strftime("%d %B %Y") }}
{% endif %}{% endif %}
+ {% if settings.show_date and if gallery.date %}
{{ gallery.date.strftime("%d %B %Y") }}
{% endif %}
{% if gallery.tags %}
IN {% for tag in gallery.tags -%} {{ tag }} {% endfor -%}
{% endif %}