diff --git a/material/base.html b/material/base.html index b71cb281e..1f7fe9f15 100644 --- a/material/base.html +++ b/material/base.html @@ -13,6 +13,11 @@ {% elif config.site_description %} {% endif %} + {% if page and page.meta and page.meta.keywords %} + + {% elif config.site_keywords %} + + {% endif %} {% if page.canonical_url %} {% endif %} diff --git a/mkdocs.yml b/mkdocs.yml index d3a3e8d7b..21d5764b5 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -22,7 +22,6 @@ site_name: Material for MkDocs site_url: https://squidfunk.github.io/mkdocs-material/ site_author: Martin Donath -site_keywords: Material,MkDocs site_description: >- Create a branded static site from a set of Markdown files to host the documentation of your Open Source or commercial project – customizable, diff --git a/src/base.html b/src/base.html index 16c3af13c..c7b568b20 100644 --- a/src/base.html +++ b/src/base.html @@ -31,13 +31,6 @@ - - {% if page and page.meta and page.meta.keywords %} - - {% elif config.site_keywords %} - - {% endif %} - {% if page and page.meta and page.meta.description %} @@ -45,6 +38,13 @@ {% endif %} + + {% if page and page.meta and page.meta.keywords %} + + {% elif config.site_keywords %} + + {% endif %} + {% if page.canonical_url %}