layout: default


<div class=“tag”>

{% if page.title %}
  <h1 class="page-heading">{{ page.title }}</h1>
{% endif %}

{{ content }}

{% if site.posts != empty %}
  <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
  {% assign lists_tags = site.posts | map: "tags" %}
  {% assign tags = lists_tags | uniq | sort %}
  {% for tag in tags %}
    <div class="post-list">
      <h5 id="{{ tag }}" title="{{ tag }}"><strong># </strong>{{ tag }}</h5>
      {% for post in site.posts %}
        {% if post.tags contains tag %}

        {% include previewed_post.html post = post %}

        {% endif %}
      {% endfor %}
    </div>
  {% endfor %}

  <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
{% endif %}

</div>