File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: page
3
+ title: Categories
4
+ ---
5
+
6
+ < div class ="col-sm-3 col-xs-6 ">
7
+ < ul class ="nav nav-tabs-vertical ">
8
+ {% assign categories_list = site.categories %}
9
+ {% if categories_list.first[0] == null %}
10
+ {% for category in categories_list %}
11
+ < li >
12
+ < a href ="{{ site.BASE_PATH }}/{{ site.categories_path }}#{{ category | replace:' ','-' }}-ref " data-toggle ="tab ">
13
+ {{ category | capitalize }} < span class ="badge pull-right "> ({{ site.categories[category].size }} post)</ span >
14
+ </ a >
15
+ </ li >
16
+ {% endfor %}
17
+ {% else %}
18
+ {% for category in categories_list %}
19
+ < li >
20
+ < a href ="{{ site.BASE_PATH }}/{{ site.categories_path }}#{{ category[0] | replace:' ','-' }}-ref " data-toggle ="tab ">
21
+ {{ category[0] | capitalize }} < span class ="badge pull-right "> ({{ category[1].size }} post)</ span >
22
+ </ a >
23
+ </ li >
24
+ {% endfor %}
25
+ {% endif %}
26
+ {% assign categories_list = nil %}
27
+ </ ul >
28
+ </ div >
29
+
30
+
31
+ < div class ="clearfix "> </ div >
You can’t perform that action at this time.
0 commit comments