2016-02-25 04:18:18 +01:00
|
|
|
---
|
|
|
|
layout: archive
|
2016-03-11 15:39:20 +01:00
|
|
|
permalink: /categories/
|
2016-02-25 04:18:18 +01:00
|
|
|
title: "Posts by Category"
|
2016-03-07 04:07:48 +01:00
|
|
|
author_profile: false
|
2016-02-25 04:18:18 +01:00
|
|
|
---
|
2016-03-07 15:51:50 +01:00
|
|
|
|
2016-03-07 16:27:07 +01:00
|
|
|
{% include base_path %}
|
2016-03-20 01:58:17 +01:00
|
|
|
{% include group-by-array collection=site.posts field="categories" %}
|
2016-02-25 04:18:18 +01:00
|
|
|
|
2016-03-05 03:45:30 +01:00
|
|
|
{% for category in group_names %}
|
|
|
|
{% assign posts = group_items[forloop.index0] %}
|
2016-03-11 03:53:28 +01:00
|
|
|
<h2 id="{{ category | slugify }}" class="archive__subtitle">{{ category }}</h2>
|
2016-03-05 03:45:30 +01:00
|
|
|
{% for post in posts %}
|
2016-03-20 01:58:17 +01:00
|
|
|
{% include archive-single.html %}
|
2016-03-05 03:45:30 +01:00
|
|
|
{% endfor %}
|
2016-02-25 04:18:18 +01:00
|
|
|
{% endfor %}
|