2015-12-24 131 views
0

我是Octopress的新手。我创建了一个像页面一样的主页(source/index.md),并将默认source/index.html移动到/source/blog/index.htmlOctopress博客页面不显示帖子

在我的Rakefile中,我将blog_index_dirsource更改为source/blog

source/blog/index.html我将对/archives的引用更改为/blog/archives

source/_includes/custom/navigation.html我将博客和档案的链接更改为/blog/blog/archives

我还没有部署我的网站,因为我仍在使用它,但是当我使用rake watch和Pow查看它时,我的帖子显示在最近的帖子下的侧边栏中,但没有帖子显示在博客中页。

为我的网站的源代码是在https://github.com/benlindsay/blog

回答

0

我忘了从 paginate_path: "posts/:num" 改变_config.yml行至 paginate_path: "blog/posts/:num"。这解决了问题。

相关问题