{# Tag "chips". User tags link to the tag filter (when it exists); automatic tags are styled differently. #}
{% macro tag_chips(img, link=false) %}
{% for t in img.tags or [] %}
{% if link and features.tag_search %}
{{ t }}
{% else %}
{{ t }}
{% endif %}
{% endfor %}
{% for t in img.auto_tags or [] %}
{{ t }}
{% endfor %}
{% endmacro %}