Hexo+Github+Next 搭建个人博客

1. 在 github 建立 repository
2. 安装 node.jsgit
3. 安装 hexo

从G盘输入cmd,回车,输入以下命令

1
2
3
4
npm install hexo-cli -g
hexo init Eaphy's-Blog //文件夹名字
cd Eaphy's-Blog
npm install

4. 安装 Next

1
2
cd Eaphy's-Blog
git clone https://github.com/iissnan/hexo-theme-next themes/next

5. 配置博客

编辑站点中 _config.yml ,启用 next 主题,切换中文语言

1
theme: next
1
language: zh-CN

编辑主题中 _config.yml ,选择 Pisces Scheme

1
2
3
#scheme: Muse
#scheme: Mist
scheme: Pisces

6.拉取仓库代码到本地

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 拉取代码

cd Eaphy's-Blog

git clone https://github.com/eaphy/eaphy.github.io.git ./public

hexo g

# 提交代码

cd public

git add .

git commit -m "first commit"

git push
0%