【发布时间】:2013-07-23 17:01:11
【问题描述】:
我正在尝试在我的 Windows 7(64 位)PC 上使用 Jekyll。
我已经安装了 Ruby、Ruby Devkit、Python 2.7、Jekyll 和 Pygments,但出现了这个错误
E:\jekyll\my-site>jekyll serve
Configuration file: E:/jekyll/my-site/_config.yml
Source: E:/jekyll/my-site
Destination: E:/jekyll/my-site/_site
Generating... Liquid Exception: Failed to get header. in 2013-07-19-welcome-to-jekyll.markdown
error: Failed to get header.. Use --trace to view backtrace
【问题讨论】:
-
我使它适用于您的配置,具有以下规格:只有颜料 0.5.0 有效(我必须先卸载 0.5.2 并安装 0.5.0)。此外,在我的 PATH 中,我引用了 Python 3.3 而不是 Python 2.7,我不得不改回 2.7。参照。 stackoverflow.com/questions/17364028/…
-
只需将此行添加到您的 _config.yml 中:
highlighter: rouge它会正常工作。
标签: ruby windows python-2.7 jekyll