Thursday, 3 January 2013

How to post gists on blogger

How to post github gists on blogger ?

I have found github gists a great way to share little snippets of code online, and I found a way to add them to my blogposts , here it is.

Choose HTML mode while blogging and add the following

<script src="" type="text/javascript"></script>
<div class="gistLoad" data-id="GistID" id="gist-GistID">Loading ....</div>
Replace GistID with your gist id, and there you go.
Thanks to this awesome project on github

No comments: