进入Hexo项目的根目录中,使用npm/yarn添加依赖
shellnpm install hexo-toc #当你使用npm时 # or yarn add hexo-toc #当你使用yarn时
之后在根目录中的_config.yml添加:
yml#目录 toc: maxDepth: 3 #目录层级 class: toc slugify: transliteration decodeEntities: false anchor: position: after symbol: '#' style: header-anchor #基础样式
进入Hexo项目的根目录中,使用npm/yarn添加依赖
shellnpm install hexo-generator-feed #当你使用npm时 # or yarn add hexo-generator-feed #当你使用yarn时
之后在根目录中的_config.yml添加:
yml#目录 toc: maxDepth: 3 #目录层级 class: toc slugify: transliteration decodeEntities: false anchor: position: after symbol: '#' style: header-anchor #基础样式
如果已经构建过项目,请先进入项目根目录下运行,清除缓存
shellhexo clean
yml# RSS support feed: enable: true type: rss2 # 与path关联 path: rss2.xml # 与type关联 limit: 140 hub: content: true content_limit: 140 content_limit_delim: ' ' order_by: -date icon: https://avatars.githubusercontent.com/u/23006024?v=4 #RSS 展示的图标 autodiscovery: true
如果已经构建过项目,请先进入项目根目录下运行,清除缓存
shellhexo clean
然后进行正常的hexo的生成和测试
shellhexo g & hexo s