jekyll注意事项

错误分析:

在运行 jekyll serve 的时候

问题1
{% highlight null %}

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

{% endhighlight %}
需要把_config.yml中的redcarpet改为kramdown

问题2
{% highlight null %}


Deprecation: You appear to have pagination turned on, but you haven’t included the jekyll-paginate gem. Ensure you 
have gems: [jekyll-paginate] in your configuration file.

{% endhighlight %}
因为我们的配置文件_config.yml使用了 paginate 配置项,所以需要添加一行:
{% highlight null %}

# Gems
gems: [jekyll-paginate]

{% endhighlight %}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值