Skip to content

Commit

Permalink
Implements feature from issue #98, based heavily on @tullyliu's example.
Browse files Browse the repository at this point in the history
  • Loading branch information
groundh0g committed Feb 28, 2015
1 parent c77431d commit f76ed0b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions _includes/JB/gist
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% comment %}<!--
The gist include allows you to embed GitHub Gist snippets in your content.
Usage:
1) include JB/gist
2) specify the gist_id parameter (REQUIRED)
3) specify the gist_file parameter (OPTIONAL)
example:
<ul>
{% include JB/gist gist_id="fdcfeaba4f33c172828d" %}
{% include JB/gist gist_id="fdcfeaba4f33c172828d" gist_file="jekyll-bootstrap.js" %}
</ul>
-->{% endcomment %}

<div id="gist">
<script src="https://gist.github.com/{{ include.gist_id }}.js{% if include.gist_file %}?file={{ include.gist_file }}{% endif %}"></script>
<noscript>
<pre>https://gist.github.com/{{include.gist_id}}.js{% if include.gist_file %}?file={{include.gist_file}}{% endif %}</pre>
</noscript>
</div>

0 comments on commit f76ed0b

Please sign in to comment.