diff --git a/lib/template.html b/lib/template.html
index 34a972a..853d155 100644
--- a/lib/template.html
+++ b/lib/template.html
@@ -232,7 +232,7 @@
{% if page.dateModified %}
"dateModified": {{ page.dateModified | date_to_xmlschema | jsonify }},
-{% elseif page.date %}
+{% elsif page.date %}
"dateModified": {{ page.date | date_to_xmlschema | jsonify }},
{% endif %}