Skip to content

Instantly share code, notes, and snippets.

@kidlj
Forked from benbalter/gist.md
Last active April 12, 2016 12:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kidlj/6558457 to your computer and use it in GitHub Desktop.
Save kidlj/6558457 to your computer and use it in GitHub Desktop.
在Github Pages页面里嵌入Gist.

在Markdown格式的文章中合适的地方插入如下代码:

{% gist 6558457 %}

其中{% gist GIST_ID %}是固定格式,你只需找到实际的Gist ID代替GIST_ID.

因为一个Gist可以有几个文件,还可以只嵌入某个Gist中的某个文件,如下:

{% gist 6558457 gist.md %}

简单美好,不是吗?

@feitang0
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment