-- 官网:https://hexo.io
Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown(或其他渲染引擎)解析文章,在几秒内,即可利用靓丽的主题生成静态网页。
一、首先根据官网的流程安装
$ npm install -g hexo-cli
二、建站
$ hexo init test $ cd test $ npm install
三、写作
$ hexo new [layout] <title>
布局 | 路径 |
---|---|
post |
source/_posts |
page |
source |
draft |
source/_drafts |
四、部署
通过git部署到github:
1. 安装 hexo-deployer-git
$ npm install hexo-deployer-git --save
2. 修改配置
deploy: type: git repo: https://github.com/Trybst/trybst.github.io.git branch: master message: test
3.提交到git
$ hexo d