2016-07-29 29 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

這工作!非常感謝! –

相關問題