1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Adjusted checks for plugins in templates

This commit is contained in:
squidfunk 2022-10-16 16:36:38 +07:00
parent fee799a759
commit 4b51fa21a8
7 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
{#- {#-
This file was automatically generated - do not edit This file was automatically generated - do not edit
-#} -#}
{% if "tags" in config.plugins %} {% if "material/tags" in config.plugins %}
{% include "partials/tags.html" %} {% include "partials/tags.html" %}
{% endif %} {% endif %}
{% include "overrides/partials/actions.html" %} {% include "overrides/partials/actions.html" %}

View File

@ -1,7 +1,7 @@
{#- {#-
This file was automatically generated - do not edit This file was automatically generated - do not edit
-#} -#}
{% if "tags" in config.plugins %} {% if "material/tags" in config.plugins %}
{% include "partials/tags.html" %} {% include "partials/tags.html" %}
{% endif %} {% endif %}
{% include "partials/actions.html" %} {% include "partials/actions.html" %}

View File

@ -66,7 +66,7 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if "search" in config.plugins %} {% if "material/search" in config.plugins %}
<label class="md-header__button md-icon" for="__search"> <label class="md-header__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %} {% include ".icons/material/magnify.svg" %}
</label> </label>

View File

@ -47,9 +47,9 @@ classifiers = [
] ]
[project.entry-points."mkdocs.plugins"] [project.entry-points."mkdocs.plugins"]
material/search = "material.plugins.search.plugin:SearchPlugin" "material/search" = "material.plugins.search.plugin:SearchPlugin"
material/social = "material.plugins.social.plugin:SocialPlugin" "material/social" = "material.plugins.social.plugin:SocialPlugin"
material/tags = "material.plugins.tags.plugin:TagsPlugin" "material/tags" = "material.plugins.tags.plugin:TagsPlugin"
[project.entry-points."mkdocs.themes"] [project.entry-points."mkdocs.themes"]
material = "material" material = "material"

View File

@ -21,7 +21,7 @@
--> -->
<!-- Tags --> <!-- Tags -->
{% if "tags" in config.plugins %} {% if "material/tags" in config.plugins %}
{% include "partials/tags.html" %} {% include "partials/tags.html" %}
{% endif %} {% endif %}

View File

@ -21,7 +21,7 @@
--> -->
<!-- Tags --> <!-- Tags -->
{% if "tags" in config.plugins %} {% if "material/tags" in config.plugins %}
{% include "partials/tags.html" %} {% include "partials/tags.html" %}
{% endif %} {% endif %}

View File

@ -135,7 +135,7 @@
{% endif %} {% endif %}
<!-- Button to open search modal --> <!-- Button to open search modal -->
{% if "search" in config.plugins %} {% if "material/search" in config.plugins %}
<label class="md-header__button md-icon" for="__search"> <label class="md-header__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %} {% include ".icons/material/magnify.svg" %}
</label> </label>