Embedding Gists
To embed a Gist in a blog post, simply add the embed code below, replacing the URL with the URL of the Gist you’d like to embed:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gist url="https://gist.github.com/postachio/9059890"] |
If you’d only like to embed a specific file, you can add the file name to your tag:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gist url="https://gist.github.com/postachio/9059890" file="gistfile1.txt"] |
Here’s what it will look like in your post:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Yay!</title> | |
</head> | |
<body> | |
<p>Whee!</p> | |
</body> | |
</html> |