{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %} {% import _self as macro %} {% if page.taxonomy.tag %} {% for tag in page.taxonomy.tag %} <div class="publics {{ macro.pageLinkName(tag) }}"> <span class="pc"> <span class="tags"> {{ tag }} </span> </span> </div> {% endfor %} {% endif %}