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 %}
- {% if page and page.meta and page.meta.title %} + {% if page.meta and page.meta.title %} {{ page.meta.title }} {% else %} {{ page.title }} diff --git a/material/partials/tags.html b/material/partials/tags.html index 43c6cee8d..6c7554e7d 100644 --- a/material/partials/tags.html +++ b/material/partials/tags.html @@ -1,7 +1,7 @@ {#- This file was automatically generated - do not edit -#} -{% if page and page.meta and page.meta.hide %} +{% if page.meta and page.meta.hide %} {% set hidden = "hidden" if "tags" in page.meta.hide %} {% endif %} {% if tags %} diff --git a/src/base.html b/src/base.html index fbc66dbf4..2aca6195f 100644 --- a/src/base.html +++ b/src/base.html @@ -32,14 +32,14 @@ - {% 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 %} @@ -62,9 +62,9 @@ {% 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 }} @@ -253,7 +253,7 @@ {% 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 %}
{% 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 %}
-{% if page and page.meta and ( +{% if page.meta and ( page.meta.git_revision_date_localized or page.meta.revision_date ) %} diff --git a/src/partials/content.html b/src/partials/content.html index a46570045..e4ad19221 100644 --- a/src/partials/content.html +++ b/src/partials/content.html @@ -49,7 +49,7 @@ {{ page.content }} -{% if page and page.meta and ( +{% if page.meta and ( page.meta.git_revision_date_localized or page.meta.revision_date ) %} diff --git a/src/partials/header.html b/src/partials/header.html index 871ef663a..0ae4005c1 100644 --- a/src/partials/header.html +++ b/src/partials/header.html @@ -59,7 +59,7 @@
- {% if page and page.meta and page.meta.title %} + {% if page.meta and page.meta.title %} {{ page.meta.title }} {% else %} {{ page.title }} diff --git a/src/partials/tags.html b/src/partials/tags.html index fd90a5278..dc8bc0938 100644 --- a/src/partials/tags.html +++ b/src/partials/tags.html @@ -21,7 +21,7 @@ --> -{% if page and page.meta and page.meta.hide %} +{% if page.meta and page.meta.hide %} {% set hidden = "hidden" if "tags" in page.meta.hide %} {% endif %}