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.
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
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
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.