A Liquid tag plugin for Jekyll, listed on https://jekyllrb.com/docs/plugins/.
Add the following to your site's Gemfile
:
gem "jekyll-tagslist"
Add the following to your site's _config.yml
:
gems:
- jekyll-tagslist
Add the following in your site's template(s):
<div class="article-tag">
{% tags_list :threshold => 1, :show_count => 1, :sort_by => count, :order_by => desc, :limit => 20 %}
</div>
The output are as follows:
<div class="article-tag">
<div class="tag-item"><div class="tag-item-name">Mac</div><div class="tag-item-count">8</div></div>
<div class="tag-item"><div class="tag-item-name">OSX</div><div class="tag-item-count">5</div></div>
<div class="tag-item"><div class="tag-item-name">PHP</div><div class="tag-item-count">3</div></div>
<div class="tag-item"><div class="tag-item-name">Tools</div><div class="tag-item-count">2</div></div>
</div>
:threshold
:show_count
:show_count => 0
if not need:sort_by
name|count|time
:order_by
asc|desc
:limit
Notice: The blog posts might be in Chinese.