diff --git a/layout/_partials/head.swig b/layout/_partials/head.swig
index 2928deab7..3823d558f 100644
--- a/layout/_partials/head.swig
+++ b/layout/_partials/head.swig
@@ -36,7 +36,9 @@
{% endif %}
-{% if page.tags and page.tags.length %}
+{% if page.keywords %}
+
+{% elif page.tags and page.tags.length %}
{% elif theme.keywords %}