If you’ve followed this blog, you might have noticed a couple of changes in the last days. In fact, I’ve been playing around with customizing Octopress and added a couple of custom asides.
Coderwall
I wanted to add my Coderwall badges in the asides. A bit of googling lead me to another Octopress blog, which was using Mizzy’s code to display the badges. From there, it was pretty easy to extract the Javascript code from the page source. I only found the original author’s page later today, but by then, I had already a working version.
As customization on the original code, I added the img@alt and img@title attributes to be generated from Coderwall’s JSON response data. This gives a nice addition for hovering over the badge to get its description, and an alternative description for non-graphic browsers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
Xbox Live
The second custom aside I created follows the implementation as described on the official Xbox site, which is using an iframe to embed the card. I don’t really like the iframe to embed an external page, but this implementation was small and function, which is the essential.
1 2 3 4 5 6 |
|
Configuration
The coderwall_user and xboxlive_user need to be specified in _config.yml.
More gamercard services
Given you have a website that generates nice gamercards (there are ton of thems), you can use the above code to include your custom gamercard as an aside.
tl;dr Creating asides is super easy with Jekyll/Octopress. And I’ll probably create a few more for fun.
/C