升级Jekyll 3.0
生活随笔
收集整理的這篇文章主要介紹了
升级Jekyll 3.0
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
每一次的升級都得又一次折騰一次,jekyll也不例外
從jekyll 2.5.2 升級為jekyll 3.0.1
錯誤一:
jekyll 3.0.1 | Error: Permission denied - bind(2) for 127.0.0.1:4000 端口被占有,打開_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':redcarpetERROR: YOUR SITE COULD NOT BE BUILT:------------------------------------redcarpet _config.yml中的markdown改為kramdown
Jekyll 3 使用Rouge而不是Pygments
最后 刪除highlighter,markdown 加入:
kramdown:input: GFMsyntax_highlighter: rouge ps:僅僅在本地執行jekyll的時候會出現這些問題,在github上還一切正常。
在 _post 下加入一篇文章還要執行一下build命令 (⊙﹏⊙)b)
jekyll build
# => 當前目錄中的內容將會生成到 ./site 目錄中。 參考:Upgrading to Jekyll 3.0
作者:itmyhome
轉載于:https://www.cnblogs.com/yfceshi/p/7233539.html
總結
以上是生活随笔為你收集整理的升级Jekyll 3.0的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《长相思·九月西风兴》第十四句是什么
- 下一篇: 注册一个商贸公司多少钱