{% if tags %} {% if tags|length < 5 %} {% endif %} {% for tag in tags %} {{ tag }} {% endfor %} {% if tags|length < 5 %} {% endif %} {% endif %}