在Github Pages页面里嵌入Gist
Opened this issue · 0 comments
v5tech commented
在Markdown格式的文章中合适的地方插入如下代码:
{% gist 743cdf8b26ceeef49fa1 %}
其中{% gist GIST_ID %}
是固定格式,你只需找到实际的Gist ID
代替GIST_ID
。
因为一个Gist可以有几个文件,还可以只嵌入某个Gist中的某个文件,如下:
{% gist 743cdf8b26ceeef49fa1 Gist.md %}
注:743cdf8b26ceeef49fa1
为Gist ID
,Gist.md
为要嵌入的文件。