Skip to content

Instantly share code, notes, and snippets.

@RaduW
Forked from benbalter/gist.md
Created February 5, 2016 14:29
Show Gist options
  • Save RaduW/bb7533ecd95ff5d56d39 to your computer and use it in GitHub Desktop.
Save RaduW/bb7533ecd95ff5d56d39 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

@RaduW
Copy link
Author

RaduW commented Feb 5, 2016

To embed a single file

{% gist 5555251 gist.md %}

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