-
-
Save niwaringo/1705242 to your computer and use it in GitHub Desktop.
embed github gist to tumblr
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
<!-- Add the following lines to theme's html code right before </head> --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
<script type="text/javascript" src="http://static.tumblr.com/hkw90bf/Goylylph8/writecapture.js"></script> | |
<script type="text/javascript" src="http://static.tumblr.com/hkw90bf/4j0lylphn/jquery.writecapture.js"></script> | |
<script type="text/javascript" src="http://static.tumblr.com/hkw90bf/Csalymbyn/gitsembedwritecapture.js"></script> | |
<!-- | |
Usage: | |
just add <div class="gists">[gist js URL]</div> | |
if display lineno <div class="gists" data-gistline="true">[gist js URL]</div> | |
Example: | |
<div class="gists">https://gist.github.com/***.js</div> | |
<div class="gists" data-gistline="true">https://gist.github.com/***.js?file=filename</div> | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment