octopress-tagcloud is 3rd party plug-in which list in octopress github wiki. I needed kinds of plug-in to provide quick tag access point for my readers. So I started setting up.
But ReadMe file in this repository was not kind. This files has below instructions.
Place below files in your octopress folder from tagcloud git repository.
plugins/tag_cloud.rb
source/_includes/custom/asides/tag_cloud.html
source/_includes/custom/asides/category_list.html
Change default_asides array in _config.yml.
In your octopress folder, you can find _config.yml. It contains below line in middle of something.
123
# list each of the sidebar modules you want to include, in the order you want them to appear.# To add custom asides, create files in /source/_includes/custom/asides/ and add them to the list like 'custom/asides/custom_aside_name.html'default_asides:[asides/recent_posts.html,asides/github.html,asides/twitter.html,asides/delicious.html,asides/pinboard.html,asides/googleplus.html]
Add custom/asides/category_list.html and custom/asides/tag_cloud.html inside [blah, blah]. It is list. So result was look like below:
YAP!! I followed all instructions in ReadMe file. So I checked my updated blog. But there was problem. Why Category list has exactly same as Tags list?
I figured out that I didn’t add any tags from posts. So I was about to add tags, but HOW?
I thought something is wrong with code. I needed to fix it from code level. Though I am pythonian, I have to delve into ruby code, tag_cloud.rb.
This is what I changed. I simply replaced categories to tags, and category to tag. Here is code.
One more thing. You should add below line into _config.yml.
tag_dir: blog/tags
So _config.yml contains portions that looks like this
1234567891011
# If publishing to a subdirectory as in http://site.com/project set 'root: /project'root:/permalink:/blog/:year/:month/:day/:title/source:sourcedestination:publicplugins:pluginscode_dir:downloads/codecategory_dir:blog/categoriestag_dir:blog/tagsmarkdown:rdiscountpygments:false# default python pygments have been replaced by pygments.rb