我正在尝试升级一个章鱼的问题。通过使用SEO工具分析我的博客,我注意到(博客和类别之间)缺少一个"/“:
http://www.myblog.com/blogcategories/linux我还注意到,在octopress/public/categories文件夹中,为我的博客的每个类别创建了一个包含一个index.html文件的文件夹,即:
octopress/public/categories/linux/index.html在第22行,我看到:
<link rel="canonical" href="http://myblog.com/blogcategories/linux">这就是我问题的根源。
我想知道Octopress中的哪个模块生成了这个文件,我的错误可能是什么?
我在_config.yml中声明了以下参数:
category_dir: categories发布于 2014-07-02 03:39:00
我不确定这是否完全解决了你的问题,但我发现这个网站有很多章鱼黑客。侧边栏中有一个关于类别的部分:http://www.narga.net/improve-octopress-advanced-tweaks-tips/
侧栏类别列表这个插件提供了侧栏中显示的类别列表和帖子计数。
将plugins/tag_cloud.rb.
tag_cloud.rb保存到plugins/tag_cloud.rb.category_list.html to source/_includes/custom/asides/category_list.html._config.yml中的_config.yml:default_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]https://stackoverflow.com/questions/21684113
复制相似问题