diff --git a/material/partials/header.html b/material/partials/header.html
index 15745a862..f545e3fb9 100644
--- a/material/partials/header.html
+++ b/material/partials/header.html
@@ -34,13 +34,13 @@
{% endblock %}
-
+ {% endif %}
+ {% endblock %}
diff --git a/src/partials/header.html b/src/partials/header.html
index 719337b6a..82e5f24ef 100644
--- a/src/partials/header.html
+++ b/src/partials/header.html
@@ -74,13 +74,13 @@
-
+ {% endif %}
+ {% endblock %}