Gist integration
tullyliu opened this issue · 8 comments
JB can support the gist integration just like gist tag in octpress?
(http://brandontilley.com/2011/01/30/gist-tag-for-jekyll.html)
and
(http://blog.55minutes.com/2012/03/liquid-gist-tag-for-jekyll/)
show the jekyll plugin way.
jb is meant to be fully compatable with github pages. github pages does not
support any plugins.
but plugins will work the same with jb if you have your own custom deploy
task set up.
yes, I can use offline jekyll plugin locally
but I think liquid can also implement the gist integration like the JB way
may be like
{% assign gist.id = 111 %}
{% assign gist.file = aaa %}
{% include JB/gist %}
gist file content is
<div id="gist">
<script src="https://gist.github.com/{{ gist.id }}.js?file={{ gist.file }}"></script>
<noscript>
<pre>https://gist.github.com/{{gist.id}}.js?file={{gist.file}}</pre>
</noscript>
</div>
{% assign gist.id = nil %}
{% assign gist.file = nil %}
Ah I'll give that a look, that sounds good! Originally I responded on my phone so only gave this a quick look. You have a good idea though so I'll take a look once I get off work! thanks!
Just pinging you that I know it's been 8 months but I'm going through the backlog and updating things as I can. This is definitely a good idea if it works so I'm reminding myself here to give it a try -- thank you!
I would also like to see this. I'll be using gist scripts until then.
Looking for low-hanging fruit to get my feet wet on this repo. Looks like a good candidate.
I'll poke around to see if this is still the preferred solution, then implement as a PR.
Looks like Jekyll beat us to the punch ...