{% load shared %} {% htmlmin %}
{% if tag_cloud.has_selected_tags %}

{% for tag in tag_cloud.selected_tags %} -{{ tag.name }} {% endfor %}

{% endif %}
{% for group in tag_cloud.groups %}

{% for tag in group.tags %} {# Highlight first char of first tag in group if grouping is enabled #} {% if group.highlight_first_char and forloop.counter == 1 %} {{ tag.name|first_char }}{{ tag.name|remaining_chars:1 }} {% else %} {# Render tags normally #} {{ tag.name }} {% endif %} {% endfor %}

{% endfor %}
{% endhtmlmin %}