https://github.com/jaygooby/jekyll-lazy-gist-embedding
Embed your GitHub gists into posts, by just copy-and-pasting the gist url.
https://github.com/jaygooby/jekyll-lazy-gist-embedding
embed gist jekyll plugin
Last synced: 10 months ago
JSON representation
Embed your GitHub gists into posts, by just copy-and-pasting the gist url.
- Host: GitHub
- URL: https://github.com/jaygooby/jekyll-lazy-gist-embedding
- Owner: jaygooby
- License: mit
- Created: 2021-01-14T19:50:43.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-15T11:09:36.000Z (over 5 years ago)
- Last Synced: 2025-03-21T23:14:26.178Z (over 1 year ago)
- Topics: embed, gist, jekyll, plugin
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jekyll-lazy-gist-embedding
Embed your [GitHub gists](https://docs.github.com/en/free-pro-team@latest/github/writing-on-github/creating-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`](./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 `` tags.