Octopress

A blogging framework for hackers.

Gist Tag

All you need is the gist’s id and you can easily embed it in your page. This actually downloads a cache of the gist and embeds it in a <noscript> tag for RSS readers and search engines, while still using Github’s javascript gist embed code for browsers.

Syntax

{% gist gist_id [filename] %}

Example

{% gist 996818 %}

If you have a gist with multiple files, you can include files one at a time by adding the name after the gist id.

{% gist 1059334 svg_bullets.rb %}
{% gist 1059334 usage.scss %}

This plugin was developed by Brandon Tilly but I have fixed some bugs and made some improvements to it for Octopress.