Wordpress GitHub Gist Shortcode Plugin
December 2nd, 2008 | Published in Wordpress, Wordpress Plugins | 1 Comment
This simple Wordpress plugin allows you to embed a GitHub Gist by inserting a shortcode into your post or page instead of entering HTML.
It is very simple to use. After activating the plugin you can embed a Gist, for example Gist 30957, into you page or post by entering the following text:
will be replaced with an embedded Gist:
Simple!
One problem with gists is that a search engine spiders (and users with javascript disabled) will not see your code in a blog entry. This plugin allows you to get around this by including text, such as content of the gist inside the shortcode. The text is wrapped inside these tags:
<noscript><code class="gist"><pre>
You would use it like this:
[gist id=30948]
puts hello_world_test;
i = 0
5.times do
i = i + 1
puts i
end
Download
Changelog
0.2 Added ability to include text inside gist shortcode.
0.1 Initial Release
Credits
The geniuses at GitHub

November 15th, 2009 at 10:20 am (#)
Hi Paul-
I just wanted to say thanks for this little plugin. I’ve always embedded gists manually into my blog, but didn’t like that the code wouldn’t be viewable to search engines.
Your plugin works great and fills that need for me. Cheers!