Octopress博客页面不显示帖子

时间:2015-12-24 21:03:55

标签: blogs octopress

我是Octopress的新手。我创建了一个自定义的about-me like page作为主页(source/index.md),并将默认的source/index.html移至/source/blog/index.html

在我的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

1 个答案:

答案 0 :(得分:0)

我忘了更改_config.yml中的行 paginate_path: "posts/:num"paginate_path: "blog/posts/:num"。这解决了问题。