From 208becee86645168abc3a08581846a070af3aade Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 12 May 2013 16:20:05 +0200 Subject: [PATCH] Add docs for gist tag. --- site/docs/templates.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/site/docs/templates.md b/site/docs/templates.md index 1c4d2396..64cbdb2e 100644 --- a/site/docs/templates.md +++ b/site/docs/templates.md @@ -234,3 +234,21 @@ You can also use this tag to create a link to a post in Markdown as follows: [Name of Link]({% post_url 2010-07-21-name-of-post %}) {% endraw %} {% endhighlight %} + +### Gist + +Use the `gist` tag to easily embed a GitHub Gist onto your site: + +{% highlight text %} +{% raw %} +{% gist 5555251 %} +{% endraw %} +{% endhighlight %} + +You may also optionally specify the filename in the gist to display: + +{% highlight text %} +{% raw %} +{% gist 5555251 result.md %} +{% endraw %} +{% endhighlight %}