BlueXIII's Blog

热爱技术,持续学习

0%

Hexo搭建

官网

https://hexo.io

安装

1
npm install -g hexo-cli

配置

1
hexo init hexo-blog

vi _config.yml

1
2
3
4
deploy:
type: git
repo: https://your-repo.git
branch: master

生成静态页

1
hexo g

本机测试

1
hexo s

上传

1
hexo d

主题

1
git clone https://github.com/theme-next/hexo-theme-next themes/next

RSS

1
npm install --save hexo-generator-feed
1
2
3
4
5
6
7
8
9
social:
GitHub: https://your-repo.git
简书: https://your-blog
social_icons:
enable: true
icons_only: false
transition: false
GitHub: github
简书: book

侧边栏社交链接

1
2
3
4
5
6
7
8
9
social:
GitHub: https://your-repo.git
简书: https://your-blog
social_icons:
enable: true
icons_only: false
transition: false
GitHub: github
简书: book

参考文档