Skip to content

Instantly share code, notes, and snippets.

@benbalter
Last active November 2, 2023 02:04
Show Gist options
  • Star 91 You must be signed in to star a gist
  • Fork 37 You must be signed in to fork a gist
  • Save benbalter/5555251 to your computer and use it in GitHub Desktop.
Save benbalter/5555251 to your computer and use it in GitHub Desktop.
Example of how to embed a Gist on GitHub Pages using Jekyll.

Here's an example of how to embed a Gist on GitHub Pages:

{% gist 5555251 %}

All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.

And here's what it would look like rendered:

Rendered Gist

@alithom123
Copy link

^^^ I want this feature also!!! I want to be abled to embed each revision of a gist.

@eloiseg274
Copy link

What are you talking about

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment