|
3 | 3 | - include.categories: list of categories |
4 | 4 | - include.tags: list of tags |
5 | 5 | --> |
6 | | -<div class="shadow-corner-curl hidden-xs"> |
7 | | - <div class="sidebar-list-header"> |
8 | | - Categories |
9 | | - </div> |
10 | | - |
11 | | - <!-- All / None Buttons --> |
12 | | - <div class="sidebar-list-item"> |
13 | | - <div class="btn-group-sm centerContents" role="group"> |
14 | | - <button id="allCatsButton" type="button" class="btn btn-primary" style="width: 40%;">All</button> |
15 | | - <button id="noCatsButton" type="button" class="btn btn-default" style="width: 40%;">None</button> |
16 | | - </div> |
| 6 | +{% include sortedlabels.html %} |
| 7 | +<div class="row"> |
| 8 | +<div class="col-md-12 col-sm-6"> |
| 9 | + <div class="sidebar-list-header checkbox"> |
| 10 | + <input type="checkbox" id="checkbox_allcats" checked> |
| 11 | + <label for="checkbox_allcats"> |
| 12 | + Categories |
| 13 | + </label> |
17 | 14 | </div> |
18 | 15 |
|
19 | | - {% for category in include.categories %} |
| 16 | + {% for category in sortedCats %} |
20 | 17 | <div class="sidebar-list-item checkbox" category="{{ category.name }}" |
21 | 18 | <!-- add tooltip only if we have something to display --> |
22 | 19 | {% if category.description %} |
|
25 | 22 |
|
26 | 23 | <input type="checkbox" id="checkbox_{{ category.name }}" checked> |
27 | 24 | <label for="checkbox_{{ category.name }}"> |
| 25 | + <i class="{{ category.icon }}" aria-hidden="true"></i> |
28 | 26 | {{ category.name }} |
29 | | - <span class="my-badge"> |
| 27 | + <span class="amount-badge"> |
30 | 28 | {% assign counter=0 %} |
31 | 29 | {% for page in include.allItems %} |
32 | 30 | {% if page.categories contains category.name %} |
|
42 | 40 | {% endfor %} |
43 | 41 | </div> |
44 | 42 |
|
45 | | -<div class="shadow-corner-curl hidden-xs top20"> |
46 | | - <div class="sidebar-list-header"> |
47 | | - Tags |
| 43 | +<div class="col-md-12 col-sm-6 top20"> |
| 44 | + <div class="sidebar-list-header checkbox"> |
| 45 | + <input type="checkbox" id="checkbox_alltags" checked> |
| 46 | + <label for="checkbox_alltags"> |
| 47 | + Tags |
| 48 | + </label> |
48 | 49 | </div> |
49 | 50 |
|
50 | 51 | <!-- All / None Buttons --> |
51 | | - <div class="sidebar-list-item"> |
| 52 | + <!--<div class="sidebar-list-item"> |
52 | 53 | <div class="btn-group-sm centerContents" role="group"> |
53 | 54 | <button id="allTagsButton" type="button" class="btn btn-primary" style="width: 40%;">All</button> |
54 | 55 | <button id="noTagsButton" type="button" class="btn btn-default" style="width: 40%;">None</button> |
55 | 56 | </div> |
56 | | - </div> |
| 57 | + </div>--> |
57 | 58 |
|
58 | | - {% for tag in include.tags %} |
| 59 | + {% for tag in sortedTags %} |
59 | 60 | <div class="sidebar-list-item checkbox" tag="{{ tag.name }}" <!-- add tooltip only if we have something to display --> |
60 | 61 | {% if tag.description %} |
61 | 62 | data-toggle="tooltip" data-placement="left" title="{{ tag.description }}" |
|
64 | 65 | <input type="checkbox" id="checkbox_{{ tag.name }}" checked> |
65 | 66 | <label for="checkbox_{{ tag.name }}"> |
66 | 67 | {{ tag.name }} |
67 | | - <span class="my-badge"> |
| 68 | + <span class="amount-badge"> |
68 | 69 | {% assign counter=0 %} |
69 | 70 | {% for page in include.allItems %} |
70 | 71 | {% if page.tags contains tag.name %} |
|
77 | 78 | </div> |
78 | 79 | {% endfor %} |
79 | 80 | </div> |
| 81 | +</div> |
0 commit comments