Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Gist integration #98

Closed
tullyliu opened this issue Jul 11, 2012 · 8 comments
Closed

Gist integration #98

tullyliu opened this issue Jul 11, 2012 · 8 comments
Assignees
Labels
Milestone

Comments

@tullyliu
Copy link

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.

@plusjade
Copy link
Owner

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.

@tullyliu
Copy link
Author

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 %}

@plusjade
Copy link
Owner

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!

@plusjade
Copy link
Owner

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!

@antitoxic
Copy link

I would also like to see this. I'll be using gist scripts until then.

@groundh0g
Copy link
Collaborator

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.

@groundh0g groundh0g self-assigned this Feb 28, 2015
@groundh0g
Copy link
Collaborator

Looks like Jekyll beat us to the punch ...

http://jekyllrb.com/docs/templates/#gist

@groundh0g groundh0g added this to the v 0.4.0 milestone Mar 15, 2015
groundh0g added a commit that referenced this issue Mar 15, 2015
Implements feature from issue #98, based heavily on @tullyliu's example.
@groundh0g
Copy link
Collaborator

Stand-alone addition to utility functions. Low risk. Merged as #243.

aterai pushed a commit to aterai/jekyll-bootstrap that referenced this issue Mar 11, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants