为什么jekyll分页在本地不起作用? [英] why jekyll pagination not working locally?

查看:115
本文介绍了为什么jekyll分页在本地不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始在github页面上使用jekyll.我的存储库是 https://github.com/yejinxin/yejinxin.github.io .

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

我在Cygwin进行本地开发.直到我尝试对索引帖子进行分页时,它的效果都很好.我遵循了文档,在我的_config.yml中设置分页:5,并且在.而且我找不到_site/page2/文件夹或_site/page3/文件夹,但是有一个_site/page/文件夹!

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!

我不知道怎么了.我尝试了jekyll serve --watch --tracejekyll serve,重新启动服务器等,但效果不佳.但是,在我将提交推送到github之后,它就可以在github上运行了!因此,这似乎是我的本地环境问题.

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.

我是jekyll和ruby的新手,不知道如何调试它.任何建议将不胜感激.

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

推荐答案

所以,这似乎是一个已知的错误. https://github.com/mojombo/jekyll/pull/1063

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

这篇关于为什么jekyll分页在本地不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆