Adding CoderWall Badges22 Apr 2012
I’ve picked up a few badges via CoderWall and I wanted to include them on the blog with the rest of the information in the right side column.
CoderWall has instructions under the sub heading “Official blog badge” that detail how to interact with their web api for retrieving badges. My main investigation was how and where to include these snippets within the octopress templates.
The comments included in the Octopress _config.yml were quite helpful. This was exactly the guidance that I needed.
``` yml excerpt from _config.yml
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, custom/asides/coder_wall.html]
One more time thru the ‘rake generate, rake preview’ dance and… TA-DA! At the bottom of the Aside column I now have CoderWall badges.