Jekyll解決Deprecation:you haven't included the `jekyll-paginate` gem

issue


問題

在運行 jekyll serve 的時候,出現該問題:

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.


解決

因爲我們的配置文件_config.yml使用了 paginate 配置項,所以需要添加一行:

gems: [jekyll-paginate]

參考

https://teamtreehouse.com/community/jekyllpaginate-gem

發佈了97 篇原創文章 · 獲贊 40 · 訪問量 53萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章