Hexo-Keep
Nico Two

Welcome to my blog by Hexo! If you want to have your own blog space, this article will teach it.

Quick Start

1.安装Hexo

1
$ npm install hexo-cli -g

2.初始化博客

1
$ hexo init blog

3.安装keep主题

1
2
3
$ cd blog
$ npm install hexo-theme-keep
$ npm update hexo-theme-keep // 更新主题

4.配置主题

1
$ touch blog/source/_data/keep.yml

https://keep-docs.xpoet.cn/basis/get-start/starter-template.html

5.插件

5.1搜索插件

1
2
3
4
5
6
7
$ npm install hexo-generator-searchdb
// 在 Hexo 配置文件 _config.yml 里添加如下配置
search:
path: search.json
field: post
content: true
format: striptags

5.2评论插件Giscus

5.3RSS订阅

1
2
3
4
5
6
7
8
$ cd blog
$ npm install hexo-generator-feed

// 在 Hexo 配置文件 _config.yml 里添加如下配置
feed:
type: atom
path: rss/atom.xml
limit: 20

6.创建文章

1
$ hexo new "Hexo-Keep"

7.启动服务预览

1
$ hexo server

8.生成静态文件

1
2
$ hexo clean
$ hexo generate

9.提交GitHub Pages

1
$ git commit

[参考链接]:

https://hexo.io

https://keep-docs.xpoet.cn

 Comments
Comment plugin failed to load
Loading comment plugin
Powered by Hexo & Theme Keep