From 8fdd1ad529bf00b2edfc51410d34ec8bf934c833 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 12 Nov 2022 14:44:59 +0100 Subject: [PATCH] Added support for disabling footer navigation --- material/base.html | 4 +- material/partials/consent.html | 2 +- material/partials/content.html | 2 +- material/partials/footer.html | 76 +++++++++++----------- mkdocs.yml | 1 + src/base.html | 4 +- src/partials/consent.html | 2 +- src/partials/content.html | 2 +- src/partials/footer.html | 112 +++++++++++++++++---------------- 9 files changed, 105 insertions(+), 100 deletions(-) diff --git a/material/base.html b/material/base.html index 9acd774d5..8cc225e18 100644 --- a/material/base.html +++ b/material/base.html @@ -138,7 +138,7 @@
{% block hero %}{% endblock %} {% block tabs %} - {% if not "navigation.tabs.sticky" in features %} + {% if "navigation.tabs.sticky" not in features %} {% if "navigation.tabs" in features %} {% include "partials/tabs.html" %} {% endif %} @@ -159,7 +159,7 @@
{% endif %} - {% if not "toc.integrate" in features %} + {% if "toc.integrate" not in features %} {% if page.meta and page.meta.hide %} {% set hidden = "hidden" if "toc" in page.meta.hide %} {% endif %} diff --git a/material/partials/consent.html b/material/partials/consent.html index b97803b7d..dea39bc30 100644 --- a/material/partials/consent.html +++ b/material/partials/consent.html @@ -16,7 +16,7 @@ {% if not actions %} {% set actions = ["accept", "manage"] %} {% endif %} -{% if not "manage" in actions %} +{% if "manage" not in actions %} {% set checked = "checked" %} {% endif %}

{{ config.extra.consent.title }}

diff --git a/material/partials/content.html b/material/partials/content.html index e61bcfb17..ff9eedfa0 100644 --- a/material/partials/content.html +++ b/material/partials/content.html @@ -5,7 +5,7 @@ {% include "partials/tags.html" %} {% endif %} {% include "partials/actions.html" %} -{% if not "\x3ch1" in page.content %} +{% if "\x3ch1" not in page.content %}

{{ page.title | d(config.site_name, true)}}

{% endif %} {{ page.content }} diff --git a/material/partials/footer.html b/material/partials/footer.html index 36f96e5c1..9e1b23696 100644 --- a/material/partials/footer.html +++ b/material/partials/footer.html @@ -2,44 +2,46 @@ This file was automatically generated - do not edit -#}