上瘾了继续搞

本地搜索系统

  1. 安装依赖:前往博客根目录,打开cmd命令窗口执行
1
npm install hexo-generator-search --save
  1. 注入配置
1
2
3
4
search:
path: search.xml
field: post
content: true
  1. 主题yml中
1
2
3
local_search:
- enable: false
+ enable: true

重新编译运行即可

1
hexo cl && hexo generate

GITHUB

  1. Githhub

  2. setting

  3. email,这个不要勾选

首页中tag,categories等问题

参考

  1. Hexo使用攻略-添加分类及标签 - 简书
  2. https://www.cnblogs.com/an-shiguang/p/18269048#_label3_0_1_6

1.打开命令行,进入博客所在文件夹。执行命令

1
$ hexo new page categories

2.将index.md中添加

1
2
type: "tags"        #注意是type,不是tag
type: "categories"

3.为博客文章添加tag、categories

配置hexo-butterfly-categories-card

参考链接

https://akilar.top/posts/a9131002/
代码应放在站点yml文件中