Embed Gist in Blogger
This is a sample blog showing how to add a gist from Github.com into the blogger (For WordPress blogs please visit here). Assume you want to add the following gist to your blog:
https://gist.github.com/SQLGear/8d1f21df58d77b4d2f7bIn order to add the above gist, we need to add ".js" at the end of the URL and place it as a source ("src") into a script tag. The resulting code will look something like below:
<script src="https://gist.github.com/SQLGear/8d1f21df58d77b4d2f7b.js"></script>Adding the resulting code into your blog's HTML editor at required place will place the Gist as below:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--//Readme//-- | |
/* | |
This is the sample gist. | |
*/ |