2016-07-29 31 views
1

我一直在我的博客上使用Jekyll和Jekyll主题托管在GitHub页面上。我没有在几个月博客了,今天推到GitHub上之前,我跑jekyll serve并获得多个错误,包括: Deprecation: The 'include' configuration option must now be specified as an array, but you specified a string. For now, we've treated the string you provided as a list of comma-separated values. Jekyll'include'配置选项现在必须指定为数组

我也收到另一个错误: Error: could not read file /Users/JakeWengroff/blog/pages/_posts/2016-07-28-blog-title.md: (<unknown>): mapping values are not allowed in this context at line 5 column 71

和查看时,我的与localhost:4000博客,最新的帖子不会出现,但所有过去的职位做。

尽管存在这些错误,我推新岗位GitHub上,访问我的博客的网址,并发生了同样的情况:我最近的文章没有出现,尽管所有以前的帖子做。

我知道哲基尔最近升级到v.3.2.0,虽然审查的文件后,我似乎无法找到今天,解决我的错误进行任何更改。我还查看了Jekyll的故障排除页面,并且再次找不到解决此问题的任何内容。

从Jekyll 2升级至3 page建议将future: true添加到_config.yml页面。我做到了,仍然没有。

任何帮助将不胜感激。谢谢!

回答

1

对于你的第一个错误:

在您的配置文件,更改

include:  _portfolio 

到:

include: 
    - _portfolio 

而对于你的第二个错误,改变这一行,从:

summary: Data scientists do not usually create their own algorithms: what a relief. 

to :

summary: "Data scientists do not usually create their own algorithms: what a relief." 

请注意,我只是把线引号,因为你已经得到的值一个冒号,这杰奇使用前事键和值之间进行区分。

+0

这工作!非常感谢! –

相关问题