Skip to content

Embed your GitHub gists into posts, by just copy-and-pasting the gist url.

License

Notifications You must be signed in to change notification settings

jaygooby/jekyll-lazy-gist-embedding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

jekyll-lazy-gist-embedding

Embed your GitHub gists into your Jekyll posts and pages, just by including the gist url.

Totally copied from https://github.com/takuti/jekyll-lazy-tweet-embedding and made to work with gists.

Just put a standard gist URL like https://gist.github.com/jaygooby/7e24a1e112ce3953812624b8be94e686 in your post, and it will expand into a gist embed.

Works with markdown and html posts.

Usage

Copy lazy_gist_embedding.rb into the _plugins directory and Jekyll will automatically expand the gist into an embed.

Under the hood, it fetches the .js embed code, for instance https://gist.github.com/jaygooby/7e24a1e112ce3953812624b8be94e686 becomes https://gist.github.com/jaygooby/7e24a1e112ce3953812624b8be94e686.js and then is injected into your post with <script> tags.

About

Embed your GitHub gists into posts, by just copy-and-pasting the gist url.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages