Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Implements feature from issue #98, based heavily on @tullyliu's example. #243

Merged
merged 1 commit into from
Mar 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>