{% load core_tags wagtailsettings_tags %}
{% get_settings %}
{% load_tags_for_article self as navigation_tags %}
{% if navigation_tags %}
<div class="article-page-tag-cloud">
  <ul class="tag-cloud__block">
  {% if settings.core.SiteSettings.enable_tag_navigation %}
    {% trans "Read more about" as headingtext %}
    {% include "patterns/basics/headings/sp_variations/heading.html" with type="micro" htmltag="h4" title=headingtext %}
    {% for tag in navigation_tags  %}
      <li class="tag-cloud__item">
        <a href="{% url 'tags_list' tag.slug %}" class="tag-cloud__anchor">
            <span class="tag-cloud__item-title">{{tag}}</span>
        </a>
      </li>
    {% endfor %}
  {% elif settings.core.SiteSettings.enable_clickable_tags %}
    {% for tag in self.tags_list %}
      <li class="tag-cloud__item">
        <a href="#" class="tag-cloud__anchor">
            <span class="tag-cloud__item-title">{{tag}}</span>
        </a>
      </li>
    {% endfor %}
  {% endif %}
  </ul>
</div>
{% endif %}
