why jekyll pagination not working locally?

不羁岁月 提交于 2019-12-12 00:46:10

问题


I just start to use jekyll on github pages. My repository is https://github.com/yejinxin/yejinxin.github.io.

I build my local development in cygwin. It works pretty well util I try to get index posts paginated. I followed the documentation, set paginate: 5 in my _config.yml, and got 404 errors on http://localhost:4000/pageN. And I can't find _site/page2/ folder or _site/page3/ folder, but there is a _site/page/ folder!

I have no idea what's going wrong. I tried jekyll serve --watch --trace,jekyll serve, restart server, and so on, but no good. However, after I pushed my commits to github, It works on github! So, it seems like it's my local environment problem.

I'm new to jekyll and ruby, don't know how to debug this. Any suggestion will be appreciated.


回答1:


So, seems like it's a just known bug. https://github.com/mojombo/jekyll/pull/1063



来源:https://stackoverflow.com/questions/16814490/why-jekyll-pagination-not-working-locally

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!