Fun with tags
Some fun with tags.
The following script displays all the tags :
{% capture tags %}
{% for tag in site.tags %}
{{ tag[0] }}
{% endfor %}
{% endcapture %}
{% assign sortedtags = tags | split:' ' | sort %}
{% for tag in sortedtags %}
<h3 id="{{ tag }}">{{ tag }}</h3>
<ul>
{% for post in site.tags[tag] %}
<li><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
Output :
blogging
- Setting up a private jekyll blog on your own server
- Fun with tags
- Organizing your blog
- Introducing Jekyll Blogging Engine
branches
git
github
github-pages
iot
jekyll
mosquitto
mqtt
nodejs
scm
tags
webserver
end