首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Octopress中类别的错误路径

Octopress中类别的错误路径
EN

Stack Overflow用户
提问于 2014-02-11 01:35:03
回答 1查看 38关注 0票数 0

我正在尝试升级一个章鱼的问题。通过使用SEO工具分析我的博客,我注意到(博客和类别之间)缺少一个"/“:

代码语言:javascript
复制
http://www.myblog.com/blogcategories/linux

我还注意到,在octopress/public/categories文件夹中,为我的博客的每个类别创建了一个包含一个index.html文件的文件夹,即:

代码语言:javascript
复制
octopress/public/categories/linux/index.html

在第22行,我看到:

代码语言:javascript
复制
<link rel="canonical" href="http://myblog.com/blogcategories/linux">

这就是我问题的根源。

我想知道Octopress中的哪个模块生成了这个文件,我的错误可能是什么?

我在_config.yml中声明了以下参数:

代码语言:javascript
复制
category_dir: categories
EN

回答 1

Stack Overflow用户

发布于 2014-07-02 03:39:00

我不确定这是否完全解决了你的问题,但我发现这个网站有很多章鱼黑客。侧边栏中有一个关于类别的部分:http://www.narga.net/improve-octopress-advanced-tweaks-tips/

侧栏类别列表这个插件提供了侧栏中显示的类别列表和帖子计数。

plugins/tag_cloud.rb.

  • Save中的
  • tag_cloud.rb保存到plugins/tag_cloud.rb.
  • Save category_list.html to source/_includes/custom/asides/category_list.html.
  • Append to _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]
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21684113

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档