{% macro tags_links(tags, language=None) %} {% for url, anchor in tags %} {% if language and not url.split('/')[1] == language %}{% continue %}{% endif %} {{ anchor }}{% if not loop.last %} • {% endif %} {% endfor %} {% endmacro %}