每一次的升级都得重新折腾一次,jekyll也不例外
从jekyll 2.5.2 升级为jekyll 3.0.1
错误一:
jekyll 3.0.1 | Error: Permission denied - bind(2) for 127.0.0.1:4000
- 1
端口被占有,打开_config.yml 在最后加上一行 port: 5001 (其他也可)问题解决
错误二:
Dependency Error: Yikes! It looks like you don't have redcarpet or one of its
dependencies installed. In order to use Jekyll as currently configured, you'll n
eed to install this gem. The full error message from Ruby is: 'cannot load such
file -- redcarpet' If you run into trouble, you can find helpful resources at ht
tp://jekyllrb.com/help/!
Conversion error: Jekyll::Converters::Markdown encountered an error while conv
erting '_posts/2014-12-28-first-blog.md':
redcarpet
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
redcarpet
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
_config.yml中的markdown改为kramdown
Jekyll 3 使用Rouge而不是Pygments
最后 删除highlighter,markdown 添加:
kramdown:
input: GFM
syntax_highlighter: rouge
- 1
- 2
- 3
ps:只在本地运行jekyll的时候会出现这些问题,在github上还一切正常。
在 _post 下添加一篇文章还要执行一下build命令 (⊙﹏⊙)b)
jekyll build
# => 当前文件夹中的内容将会生成到 ./site 文件夹中。
- 1
- 2
作者:itmyhome
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow