Repository navigation
Expand file tree
/
Copy pathcategories.html
More file actions
58 lines (56 loc) · 1.7 KB
/
Copy pathcategories.html
File metadata and controls
58 lines (56 loc) · 1.7 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
48
49
50
51
52
53
54
55
56
57
58
---
layout: page
title: Categories
header: Articles by category
group: navigation
---
<style>
.split-2 {
columns: 2;
margin-bottom: 20px;
}
</style>
<div class="split-2">
<ul class="list-unstyled">
{% assign categories_list = site.categories %}
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
<li>
<a href="#{{ category | replace:' ','-' }}-ref">
{{ category | capitalize }} <span class="badge pull-right">{{ site.categories[category].size }}</span>
</a>
</li>
{% endfor %}
{% else %}
{% for category in categories_list %}
<li>
<a href="#{{ category[0] | replace:' ','-' }}-ref">
{{ category[0] | capitalize }} <span class="badge pull-right">{{ category[1].size }}</span>
</a>
</li>
{% endfor %}
{% endif %}
{% assign categories_list = nil %}
</ul>
</div>
<div>
{% for category in site.categories %}
<div id="{{ category[0] | replace:' ','-' }}-ref" style="border-bottom: 1px solid #05B4C9; margin-bottom: 50px">
<h2 style="margin-top: 0px">{{ category[0] | capitalize }} ></h2>
<ul class="list-unstyled">
{% assign pages_list = category[1] %}
{% for node in pages_list %}
{% if node.title != null %}
{% if group == null or group == node.group %}
<li style="line-height: 35px;"><a href="{{ site.baseurl }}{{node.url}}">{{node.title}}</a> <span class="text-muted">- <!-- Whitespace added for readability -->
{{ post.date | date: '%B %d, %Y' }}</span>
</li>
{% endif %}
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
</ul>
</div>
{% endfor %}
</div>
<div class="clearfix"></div>