---
layout: page-lists.njk
permalink: tags/index.html
title: all tags
---

<ul id="taglist">
{% for tag in collections | getKeys | removeBasicTags | sortAlphabetically %}
	{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
	<li class="tag">
    <a href="{{ tagUrl }}" class="taglink">
      <div class="tag-imgs">
        {% for i in range(0, 4) %}
        {% if collections[tag][i].data.image %}
          <img src="/img/{{ collections[tag][i].data.image.src }}" alt="{{ collections[tag][i].data.image.alt }}">
        {% else %}
          <div class="missing-image"></div>
        {% endif %}
        {% endfor %}
      </div>
      <h2>{{ tag }}</h2>
      {% set numPosts = collections[tag].length %}
      <p><span class="tagcount">({{ numPosts }} post{% if numPosts > 1 %}s{% endif %})</span></p>
    </a>
  </li>
{% endfor %}
</ul>
