This blog is running on Jekyll, hosted by GitHub.
I wanted a tag cloud and archives page for it, but most plugins would’t work well with Jekyll version 2.2.x.
I spent nearly two days before I found this post, and finally got it working.
Here is a shortcut to a working tag cloud / archives page for people like me:
1. Create a tags page
Generate a file named tags.html
.
Then fill it with following lines:
Now this page is accessible through url: http://to.your.jekyll/tags/.
2. Display tags in your posts
Create an include file for embedding in the posts:
with following content:
and include it - {% include post-tags.html %}
- in the post layout:
3. Edit the styles.css file
Add following:
4. Add tags to your posts
Add tags in the front matter of your posts.
This is an example:
All done!