-
Notifications
You must be signed in to change notification settings - Fork 5
/
categories.html
32 lines (28 loc) · 998 Bytes
/
categories.html
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
---
layout: pagetail
title: Categories
header: Posts By Category
group: navigation
---
{% include JB/setup %}
<ul class="tag_box inline">
{% capture categories %}
{% for category in site.categories %}
{{ category[1].size | plus: 1000 }}#{{ category[0] }}#{{ category[1].size }}
{% endfor %}
{% endcapture %}
{% assign sortedcategories = categories | split:' ' | sort %}
{% for category in sortedcategories reversed %}
{% assign categoryitem = category | split: '#' %}
{% if categoryitem[1] !='1' and categoryitem[1] !='2' and categoryitem[1] !='6' %}
<li><a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ categoryitem[1] }}-ref">{{ categoryitem[1] }} <span>{{ categoryitem[2] }}</span></a></li>
{% endif %}
{% endfor %}
</ul>
{% for category in site.categories %}
<h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2>
<ul>
{% assign pages_list = category[1] %}
{% include JB/pages_list %}
</ul>
{% endfor %}