{% load wagtailcore_tags wagtailimages_tags core_tags tip_tags el_pagination_tags likes_inclusion_tags i18n %}
{% if settings.core.SiteSettings.enable_clickable_tags %}
  {% if each_article.tags_list|first %}
  <div class="yourtips__label">
    {% if each_article.image %}
      {% image each_article.image width-20 jpegquality-70 as yourtips_article_icon %}
      <img src="{{ yourtips_article_icon.url }}" class="yourtips__article-icon"/>
    {% endif %}
    {% for tag in each_article.tags_list %}
      {% if forloop.first %}
        <a class="yourtips__article-anchor">{{tag}}</a>
      {% endif %}
    {% endfor %}
  </div>
  {% endif %}
{% endif %}
