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
-#}
{% if "tags" in config.plugins %}
{% if "material/tags" in config.plugins %}
{% include "partials/tags.html" %}
{% endif %}
{% include "overrides/partials/actions.html" %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -135,7 +135,7 @@
{% endif %}
<!-- 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">
{% include ".icons/material/magnify.svg" %}
</label>