forked from zxixia/jekyll-xixia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategories.html
More file actions
23 lines (22 loc) · 768 Bytes
/
categories.html
File metadata and controls
23 lines (22 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: default
---
<div class="well article">
{% assign sortedcategories = site.categories | sort %}
{% for category in sortedcategories %}
<h2>{{ category[0] | capitalize }}</h2>
<ul>
{% assign pages_list = category[1] %}
{% for node in pages_list %}
{% if node.title != null %}
{% if group == null or group == node.group %}
<li><span class="post-date">
{% assign date_format = site.date_format.categories %}
{{ node.date | date: date_format }} </span><a href="{{ site.baseurl}}{{ node.url }}">{{ node.title }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
</ul>
{% endfor %}
</div>