2014-02-10 52 views
0

我試圖用octopress升級一個問題。 通過分析我的博客與搜索引擎優化工具,我注意到一個「/」丟失(博客和類別之間):Octopress中類別的錯誤路徑

http://www.myblog.com/blogcategories/linux 

我也注意到,在octopress /大衆/類別的文件夾,每個類別我的博客中,一個文件夾與一個index.html文件創建,即:

octopress/public/categories/linux/index.html 

在22rd線,我看到:

<link rel="canonical" href="http://myblog.com/blogcategories/linux"> 

這是我的問題的根源。
我想知道Octopress中哪個模塊生成這個文件,可能是我的錯誤?
我_config.yml以下參數聲明:

category_dir: categories 

回答

0

我不知道這是否能夠徹底解決您的問題,但我發現這個網站有很多octopress黑客。有一個關於在側邊欄的類別部分:http://www.narga.net/improve-octopress-advanced-tweaks-tips/

邊欄類別列表 此插件提供在側邊欄顯示的類別列表和崗位數。

  • tag_cloud.rb保存到plugins/tag_cloud.rb
  • 保存category_list.htmlsource/_includes/custom/asides/category_list.html
  • 追加到default_asides_config.yml
  • 添加到_config.ymldefault_asides: [asides/recent_posts.html, asides/github.html, asides/twitter.html, asides/delicious.html, asides/pinboard.html, asides/googleplus.html, custom/asides/category_list.html]