File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 12
12
< div class ="main-content-wrapper ">
13
13
< div class ="main-content ">
14
14
< div class ="container ">
15
- < div id ="all-blog-posts ">
15
+ {% assign all_tags = posts | map: "tags" | join: ',' | split: ',' | uniq | sort %}
16
+
17
+ < div class ="dropdown ">
18
+ < button id ="dropdownMenuButton " data-toggle ="dropdown " aria-haspopup ="true " aria-expanded ="false ">
19
+ Sort < img src ="{{ site.baseurl }}/assets/images/filter-arrow.svg ">
20
+ </ button >
21
+ < div class ="dropdown-menu " aria-labelledby ="dropdownMenuButton ">
22
+ {% for tag in all_tags %}
23
+ < div class ="dropdown-item filter-btn " data-tag ="{{ tag }} "> {{ tag | capitalize }}</ div >
24
+ {% endfor %}
25
+ </ div >
26
+ </ div >
16
27
28
+ < div id ="all-blog-posts ">
17
29
< div class ="list row blog-index ">
18
30
{% for post in posts %}
19
31
< div class ="col-md-4 " data-tags ="{{ post.tags | join: ',' }} ">
You can’t perform that action at this time.
0 commit comments