Ruby Jekyll - Octopress 无法使用 URI 生成 Rake

Ruby Jekyll - Octopress cannot Rake generate with URI

看来我在使用 Jekyll 时遇到了严重的问题。到目前为止没有任何效果,我还有

jekyll 2.5.3 | Error: bad URI(is not URI?): https://gist.githubusercontent.com/

我已经将其包含在我的源代码中:

Gist Method: The sample code below can used to pull out code from Gist from Github

 {% gist gist_id [filename] %}

我想在我的博客中将这些作为示例进行说明,但是 运行 进入 rake 生成问题,给出上述错误。我已经完成了我的研究,并且在关闭了其他错误(没有关闭块引号等)之后,这是我自己无法弄清楚的。

您正在使用带占位符的文档字符串。

{% gist gist_id [filename] %}

此字符串由 Octopress Gist 插件解析,结果 url ( https://gist.githubusercontent.com/raw/id/[filename]) 的模式错误,将引发错误。

如果你想打印本文档 post 你可以这样做。

{% highlight liquid %}
{% raw %}{% gist gist_id [filename] %}{% endraw %}
{% endhighlight %}

有关 Octopress 的 Gist 标签的更多信息,请参阅:http://octopress.org/docs/plugins/gist-tag/