{% if page.tags %} {% for tag in page.tags|slice:":5" %}{{ tag.1 }}({{ tag.0 }}){% endfor %} {% endif %}