Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github Jekyll分页仅在本地工作,不在实时服务器上工作_Github_Jekyll - Fatal编程技术网

Github Jekyll分页仅在本地工作,不在实时服务器上工作

Github Jekyll分页仅在本地工作,不在实时服务器上工作,github,jekyll,Github,Jekyll,我一直在和杰基尔玩,在当地一切都很好。但是,一旦推送到Github并从Gitpages运行,my posts页面的分页就无法正常工作。它正在分页。我得到了一个下一个箭头,但一旦单击,您将停留在同一页面上,因此我猜它无法正确生成页面 我的配置看起来像: name: Sitename description: "A description of your site" root: / permalink: /posts/:year/:month/:day/:title markdown: redca

我一直在和杰基尔玩,在当地一切都很好。但是,一旦推送到Github并从Gitpages运行,my posts页面的分页就无法正常工作。它正在分页。我得到了一个下一个箭头,但一旦单击,您将停留在同一页面上,因此我猜它无法正确生成页面

我的配置看起来像:

name: Sitename
description: "A description of your site"

root: /
permalink: /posts/:year/:month/:day/:title
markdown: redcarpet
pygments: true

paginate: 8          # Posts per page on the blog index
paginate_path: "posts/page:num"

navigation:
- text: Posts
  url: /posts/
- text: Archive
  url: /archive/
- text: About
  url: /about/
我是否需要将我的根目录设置为与运行Github不同的目录?我试过了

https://github.com/username/projectname.github.io
然而,仍然没有任何效果。谢谢你的帮助。我还检查了我运行的是最新版本的Jekyll


指向我的repo的链接:

我发现分页无法正确生成的原因是我使用的自定义rakefile。这是为了帮助自动发布我的网站。我使用的自定义文件来自:


我正在调查到底是什么导致了这个问题,但是对于任何使用同样的耙铲的人——无论多么不可能——我会尝试发布我的发现

我会检查您是否在终端中使用最新版本的Jekyll run sudo gem update Jekyll。在github上发布到您的存储库的链接可能有助于我们发现问题。当然,我会使用重定向到的链接来更新问题,并且似乎有效。是吗?我发现了错误,我会更新一个答案,因为有人可能会犯和我一样的错误