hexo.io 官网
安装 hexohtml
``` npm install -g hexo-cli ```
hexo init blog #blog 是文件夹名字,随便起 cd blog npm install hexo d
在github仓库里面建立一个 最好以本身github名字为前缀的仓库 好比个人名字是wsdo 我建立一个仓库名字为 wsdo.github.io https://github.com/wsdo/wsdo.github.io.git
假如组织的名字是 itguide 仓库的名字是: itguide.github.io https://github.com/itguide/itguide.github.io 请输入代码
项目git初始化 cd blog/public 在这个文件夹地下初始化 git init git add . git commit -am"init" git push origin master git checkout -b git-pages git push origin git-pages 在github 上面若是有git-pages分支,这个仓库就会开启,git page 而后就能够使用 https://wsdo.github.io/ 这个域名来访问
10.png-28.6kBgit
hexo new "文章的标题" 在项目里面打开 source/_posts/ 里面的md文件就是要写文章 hexo g #把本身写文章生成html静态文件 推送到git仓库,也能够配置,自动化发布 使用hexo g 自动化发布 而后推送到github 让你们访问
ybuluo.com/stark/sckwmmrtbst1y3tegeeb9nol/10.pnggithub