taxonomy.html.twig 294 B

1234567891011
  1. {% if page.taxonomy.tag %}
  2. {% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
  3. {% import _self as macro %}
  4. {% for tag in page.taxonomy.tag %}
  5. <span class="tags {{ macro.pageLinkName(tag) }}">
  6. <a class="label">{{ tag }}</a>
  7. {% endfor %}
  8. {% endif %}
  9. </span>