Hexo + github pages 搭建个人博客
一 Hexo
啥是 Hexo
Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown(或其他渲染引擎)解析文章,在几秒内,即可利用靓丽的主题生成静态网页。
官方文档
https://hexo.io/zh-cn/docs/setup
1.1 安装
前提 先安装
Node.js (Should be at least nodejs 6.9)
Git
安装
1 | npm install -g hexo-cli |
1.2 使用
初始化
1
2
3$ hexo init <folder>
$ cd <folder>
$ npm install生成静态文件
1
hexo g
运行
1
hexo s
部署
1
hexo deploy
2 Github Pages
先安装插件
1 | npm install hexo-deployer-git --save |
2.1 问题记录
1 | and the repository exists. |