diff --git a/_layouts/blog_by_tag.html b/_layouts/blog_by_tag.html index 879862e8..15beae43 100644 --- a/_layouts/blog_by_tag.html +++ b/_layouts/blog_by_tag.html @@ -59,10 +59,21 @@ layout: custom

Popular Tags

- {% for tag in site.data.tags limit:4 %} + {% capture taglist %} + {% for site_tag in site.tags %} + {% for data_tag in site.data.tags %} + {% if data_tag.slug == site_tag[0] %} + ;{{ site_tag[1].size | plus: 100000 }}#{{ data_tag.name }}#{{ data_tag.slug }} + {% endif %} + {% endfor %} + {% endfor %} + {% endcapture %} + {% assign sortedtags = taglist | strip | remove_first: ';' | split:';' | sort | reverse %} + {% for tagitem in sortedtags limit: 6 %} + {% assign pop_tag = tagitem | strip | split: '#' %}
-

{{ tag.name }}

+

{{ pop_tag[1] }}

{% endfor %}