12 lines
308 B
Twig
Raw Normal View History

2019-04-02 19:54:29 +02:00
{% if page.taxonomy.tag %}
2019-12-20 11:30:26 +01:00
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
2019-05-09 00:26:27 +02:00
2019-12-20 11:30:26 +01:00
{% import _self as macro %}
2019-05-09 00:26:27 +02:00
2019-12-20 11:30:26 +01:00
{% for tag in page.taxonomy.tag %}
<span class="tags {{ macro.pageLinkName(tag) }}">
<a class="label">{{ tag }}</a>
</span>
{% endfor %}
2019-04-02 19:54:29 +02:00
{% endif %}