forked from a11yproject/a11yproject.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchives.html
More file actions
25 lines (20 loc) · 686 Bytes
/
archives.html
File metadata and controls
25 lines (20 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
layout: archives
title: Archives
description: All posts organized by category
permalink: archives.html
---
{% for category in site.categories %}
{% unless forloop.first %}<hr/>{% endunless %}
{% assign title = category.first %}
{% assign posts = category.last %}
<h2 id="{{ title | capitalize | replace:' ','-' }}" class="category-title">{{ title | capitalize }}</h2>
{% for post in posts %}
<div class="media">
<div class="media-body">
<h3 class="media-heading txt-up-2"><a href="{{ post.url }}">{{ post.title }}</a></h3>
{% if post.description %}<p>{{ post.description }}</p>{% endif %}
</div>
</div>
{% endfor %}
{% endfor %}