mirror of
https://github.com/NohamR/knowledge-kit.git
synced 2026-05-26 13:41:32 +00:00
35 lines
754 B
Markdown
35 lines
754 B
Markdown
---
|
||
title: 开始hexo博客之旅
|
||
date: 2017-10-10 14:04:27
|
||
tags: home
|
||
---
|
||
|
||
|
||
### 首先列一下关键的几个步骤,网站的教程特别多。要看的自己搜一搜
|
||
|
||
1、下载安装node环境
|
||
2、本机配置git环境
|
||
3、node安装hexo环境
|
||
4、下载自己细化的主题,我选择的是next主题
|
||
5、更改next主题文件夹下的 _config.yml 文件,做一些常用设置的更改
|
||
6、开始写文章,格式采用markdown语法,写完后发布一下 hexo d
|
||
|
||
|
||
### 开启订阅
|
||
|
||
1、下载安装hexo插件 npm install hexo-generator-feed --save
|
||
2、修改根目录_config.yml配置
|
||
```
|
||
# RSS
|
||
plugin: hexo-generator-feed
|
||
#Feed Atom
|
||
feed:
|
||
type: atom
|
||
path: atom.xml
|
||
limit: 20
|
||
```
|
||
3、修改主题_config.yml配置
|
||
```
|
||
rss: /atom.xml
|
||
```
|