搭建博客教程预览
1. node 环境下 npm install hexo -g
2. 本地文件里 hexo init
3. npm install
4. 再webstrom中打开
5. 开启服务器 hexo -s g
6. hexo new "标题",建立一篇新的文章
7. hexo generate 编译
8. 在服务器地址访问自己的本地博客。
9. 远程部署:
在deploy:属性下,修改如下代码
type: git
repository: https://github下存储你的博客的库链接(xxx.github.io)
branch: master
10. 下载安装git支持:npm install hexo-deployer-git --save
11. 推送到github :hexo d -g
12.输入xxx.github.io访问即可