~xdavidwu/xdavidwu.link

ref: 3aa50cc5a5c2075795d157d2626e06a3ce6fc9cc xdavidwu.link/_pages/category-archive.html -rw-r--r-- 456 bytes
3aa50cc5 — Michael Rose Add support for Jekyll Archives plugin 9 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
layout: archive
permalink: /categories/
title: "Posts by Category"
author_profile: false
---

{% include base_path %}
{% include group-by-array collection=site.posts field='categories' %}

{% for category in group_names %}
  {% assign posts = group_items[forloop.index0] %}
  <h2 id="{{ category | slugify }}" class="archive__subtitle">{{ category }}</h2>
  {% for post in posts %}
    {% include archive-list-single.html %}
  {% endfor %}
{% endfor %}