mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Moved condition outside of tags partial
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{#-
|
{#-
|
||||||
This file was automatically generated - do not edit
|
This file was automatically generated - do not edit
|
||||||
-#}
|
-#}
|
||||||
{% if "material/tags" in config.plugins %}
|
{% if "material/tags" in config.plugins and tags %}
|
||||||
{% include "partials/tags.html" %}
|
{% include "partials/tags.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include "partials/actions.html" %}
|
{% include "partials/actions.html" %}
|
||||||
|
|||||||
@@ -4,8 +4,7 @@
|
|||||||
{% if page.meta and page.meta.hide %}
|
{% if page.meta and page.meta.hide %}
|
||||||
{% set hidden = "hidden" if "tags" in page.meta.hide %}
|
{% set hidden = "hidden" if "tags" in page.meta.hide %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if tags %}
|
<nav class="md-tags" {{ hidden }}>
|
||||||
<nav class="md-tags" {{ hidden }}>
|
|
||||||
{% for tag in tags %}
|
{% for tag in tags %}
|
||||||
{% set icon = "" %}
|
{% set icon = "" %}
|
||||||
{% if config.extra.tags %}
|
{% if config.extra.tags %}
|
||||||
@@ -24,5 +23,4 @@
|
|||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Tags -->
|
<!-- Tags -->
|
||||||
{% if "material/tags" in config.plugins %}
|
{% if "material/tags" in config.plugins and tags %}
|
||||||
{% include "partials/tags.html" %}
|
{% include "partials/tags.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Tags -->
|
<!-- Tags -->
|
||||||
{% if tags %}
|
<nav class="md-tags" {{ hidden }}>
|
||||||
<nav class="md-tags" {{ hidden }}>
|
|
||||||
{% for tag in tags %}
|
{% for tag in tags %}
|
||||||
{% set icon = "" %}
|
{% set icon = "" %}
|
||||||
{% if config.extra.tags %}
|
{% if config.extra.tags %}
|
||||||
@@ -50,5 +49,4 @@
|
|||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user