5168 shaares
38 private links
38 private links
I need to take control over the rendering of a field_tags field in a node.html.twig template.
{% for key, item in content.field_tags if key|first != '#' %}
<div class="item-{{ key + 1 }}">{{ item }}</div>
{% endfor %}