d6605146ac
Replace sample pages with hard coded HTML and Liquid in favor of a layout that does all the heavy lifting. Assign the appropriate `layout` via YAML Front Matter and away you go.
16 lines
No EOL
434 B
HTML
16 lines
No EOL
434 B
HTML
---
|
|
layout: archive
|
|
permalink: /categories-archive/
|
|
title: "Posts by Category"
|
|
author_profile: true
|
|
---
|
|
|
|
{% 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-single.html %}
|
|
{% endfor %}
|
|
{% endfor %} |