Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/466.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 当jekyll gist标记与私有gist一起使用时,自动更改脚本src_Javascript_Github_Jekyll_Gist - Fatal编程技术网

Javascript 当jekyll gist标记与私有gist一起使用时,自动更改脚本src

Javascript 当jekyll gist标记与私有gist一起使用时,自动更改脚本src,javascript,github,jekyll,gist,Javascript,Github,Jekyll,Gist,我有一个私人的要点,我想把它嵌入我的github托管的jekyll站点。但每当我使用以下方法嵌入它时: {% gist 931c1c8d465a04042403 %} 它会自动更改为: <script src='https://gist.github.com/931.js?file=c1c8d465a04042403'> </script> <script src='https://gist.github.com/5555251.js'> </scr

我有一个私人的要点,我想把它嵌入我的github托管的jekyll站点。但每当我使用以下方法嵌入它时:

{% gist 931c1c8d465a04042403 %}
它会自动更改为:

<script src='https://gist.github.com/931.js?file=c1c8d465a04042403'> </script>
<script src='https://gist.github.com/5555251.js'> </script>
改为:

<script src='https://gist.github.com/931.js?file=c1c8d465a04042403'> </script>
<script src='https://gist.github.com/5555251.js'> </script>

这就产生了结果。我试过使用:

<script src='https://gist.github.com/467f46c5cde7b2422ffe.js'> </script>

直接在我的文件中,结果显示在localhost中,但是github仍然没有显示任何结果


请帮助。

使用脚本标记解决了我的问题。问题在于我的浏览器脱机数据。之后,清除浏览器存储中的所有内容,github中也会显示要点。我仍然很困惑,为什么会这样

{% gist 931c1c8d465a04042403 %}
改为

<script src='https://gist.github.com/931.js?file=c1c8d465a04042403'> </script>

什么也不生产