2015-12-24 128 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"。這解決了問題。

相關問題