44 MIT License
55-->
66
7- < div id ="panel-wrap " class ="col-xl-3 pl-2 topbar-down ">
7+ < div id ="panel-wrapper " class ="col-xl-3 pl-2 topbar-down ">
88
99 < div class ="access ">
1010 {% assign lastmod_list = "" | split: "" %}
@@ -43,42 +43,23 @@ <h3 data-toc-skip>
4343 {% endif %}
4444
4545 < div id ="access-tags ">
46-
4746 < h3 data-toc-skip >
4847 {{- site.data.label.panel.trending_tags -}}
4948 </ h3 >
50-
5149 < div class ="d-flex flex-wrap mt-3 mb-1 mr-3 ">
52- {% capture tags_array %}
53- {% for tag in site.tags %}
54- {{ tag[1] | size }}:{{ tag[0] | replace: ' ', '-' }}
55- {% endfor %}
56- {% endcapture %}
57-
58- {% assign MAX = 10 %}
59- {% assign count = 0 %}
60- {% assign trends = tags_array | split: " " | sort | reverse %}
61-
62- {% for trend in trends %}
63- {% assign count = count | plus: 1 %}
64- {% assign tag = trend | split: ":" | last %}
65- < a class ="post-tag " href ="{{ site.baseurl }}/tags/{{ tag | downcase | url_encode }}/ "> {{ tag | replace: '-', ' ' }}</ a >
66- {% if count > = MAX %}
67- {% break %}
68- {% endif %}
69- {% endfor %}
50+ {% include trending-tags.html %}
51+ </ div >
52+ </ div >
7053
71- </ div > <!-- div.d-flex.flex-wrap -->
72- </ div > <!-- #access-tags -->
7354 </ div > <!-- .access -->
7455
7556 {% if page.layout == 'post' and site.toc and page.toc %}
76- < div id ="toc-wrap " class ="pl-0 pr-4 mb-5 ">
57+ < div id ="toc-wrapper " class ="pl-0 pr-4 mb-5 ">
7758 < h3 data-toc-skip class ="pl-3 pt-2 ">
7859 {{- site.data.label.panel.toc -}}
7960 </ h3 >
8061 < nav id ="toc " data-toggle ="toc "> </ nav >
8162 </ div >
8263 {% endif %}
8364
84- </ div > <!-- #panel-wrap -->
65+ </ div > <!-- #panel-wrapper -->
0 commit comments