Skip to content

khoinguyen/gist-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

##How to use gist-embed to spice up code snippets on your blog

Include the gist css:

<link rel="stylesheet" href="https://gist.github.com/stylesheets/gist/embed.css">

Include jQuery:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

Include gist-embed (If your blog doesn't accept local file includes, then simply copy paste the contents into a script tag):

<script type="text/javascript" src="gist-embed.js"></script>

All you need to do to embed a gist is to add a placeholder code element with id attribute in this format:

"gist-<gist-id>"
e.g.:
<code id="gist-1741"></code>

About

Easily embed gists into any blog or webpage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published