diff --git a/material/base.html b/material/base.html
index 9a54489ce..f2f56b9a9 100644
--- a/material/base.html
+++ b/material/base.html
@@ -8,12 +8,12 @@
{% block site_meta %}
- {% if page and page.meta and page.meta.description %}
+ {% if page.meta and page.meta.description %}
{% elif config.site_description %}
{% endif %}
- {% if page and page.meta and page.meta.author %}
+ {% if page.meta and page.meta.author %}
{% elif config.site_author %}
@@ -25,9 +25,9 @@
{% endblock %}
{% block htmltitle %}
- {% if page and page.meta and page.meta.title %}
+ {% if page.meta and page.meta.title %}
{{ page.meta.title }} - {{ config.site_name }}
- {% elif page and page.title and not page.is_homepage %}
+ {% elif page.title and not page.is_homepage %}
{{ page.title | striptags }} - {{ config.site_name }}
{% else %}
{{ config.site_name }}
@@ -135,7 +135,7 @@
{% block site_nav %}
{% if nav %}
- {% if page and page.meta and page.meta.hide %}
+ {% if page.meta and page.meta.hide %}
{% set hidden = "hidden" if "navigation" in page.meta.hide %}
{% endif %}
{% endif %}
{% if not "toc.integrate" in features %}
- {% if page and page.meta and page.meta.hide %}
+ {% if page.meta and page.meta.hide %}
{% set hidden = "hidden" if "toc" in page.meta.hide %}
{% endif %}