-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategories.html
More file actions
47 lines (38 loc) · 1.04 KB
/
categories.html
File metadata and controls
47 lines (38 loc) · 1.04 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
layout: default
permalink: /blog/categories/
---
<div class='full'>
<div class='row'>
<div class='large-8 columns large-centered'>
{% include section-title.html small_title="category index" title="wrap ideas" %}
</div>
</div>
</div>
<div class='full no-padding'>
<div class='row'>
<div class='large-8 large-centered columns'>
<dl>
{% capture categories %}
{% for cat in site.categories %}
{{ cat[0] | replace:' ', ' ' }}
{% endfor %}
{% endcapture %}
{% assign sorted_categories = categories | split:' ' | sort %}
{% for cat in sorted_categories %}
{% assign name = cat | replace:' ', ' ' %}
<dt id="{{ name | slugify }}">{{ name}}</dt>
<dd>
<ul>
{% for post in site.categories[name] %}
<li>
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</dd>
{% endfor %}
</dl>
</div>
</div>
</div>