hexo-theme-keep主题的设置
WangSen Lv1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
安装hexo-theme-keep主题
git clone https://github.com/XPoet/hexo-theme-keep themes/keep

修改配置文件主题设置为keep
theme: keep


开启标签功能
theme-keep配置文件开启
tag:
enable: true
根目录运行命令,生成tags首页文件
hexo n page tags


开启搜索功能
Hexo 之 Local Search
Hexo提供的Local Search,原理是通过hexo-generator-search插件在本地生成一个search.xml文件,搜索的时候从这个文件中根据关键字检索出相应的链接。
安装步骤
安装 hexo-generator-search
在站点的根目录下执行以下命令:
npm install hexo-generator-search --save

安装 hexo-generator-searchdb
在站点的根目录下执行以下命令:
npm install hexo-generator-searchdb --save


github代码提交
remote: error: GH007: Your push would publish a private email address.
在GitHub的你账号网页上右上角,个人的登录退出的位置,找到setting:
setting->emails->Keep my email address private,把这一项去掉勾选即可。