{% if site.tags.size > 1 %} <div class=“separator”></div> <div id=“blog-list-mini” class=“no-select”>

<!-- https://longqian.me/2017/02/09/github-jekyll-tag/ -->
<!-- https://stackoverflow.com/questions/13025281/how-to-get-a-sorted-tags-list-in-jekyll -->
<h2>All Tags</h2>
<div class="tag" style="margin-bottom: 10px">
{% capture temptags %}
  {% for tag in site.tags %}
    {{ tag[1].size | plus: 1000 }}:{{ tag[0] }}{% unless forloop.last %},{% endunless %}
  {% endfor %}
{% endcapture %}
{% assign sortedtemptags = temptags | split:',' | sort | reverse %}
{% for temptag in sortedtemptags %}
  {% assign tagitems = temptag | split: ':' %}
  <a href="{{ site.url }}/tags/{{ tagitems[1] | slugify }}"><code>{{ tagitems[1] | rstrip }}({{ tagitems[0] | to_integer | minus: 1000}})</code></a>
{% endfor %}
</div>

</div> {% endif %}