layout: default


<div class=“category”>

{% 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_categories = site.posts | map: "categories" %}
  {% assign categories = lists_categories | uniq | sort %}
  {% for category in categories %}
    <div class="post-list">
                              <h5 id="{{ category }}" title="{{ category }}"><strong>> </strong>{{ category }}</h5>
      {% for post in site.posts %}
        {% if post.categories contains category %}

        {% 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>