hexo+github搭建个人博客
2016-10-27 12:55
274 查看
hexo
nodejs的博客框架。
1.npm install -g hexo2.搭建:hexo init
3.生成hexo静态文件 hexo generate
4.启动服务 hexo server
关联到github
1.创建仓库名(your_user_name.github.io)。2.修改根目录下: _config.yml文件(冒号后面要加空格)
deploy:
type: git
repository: https://github.com/baishiup/baishiup.github.io.git
branch: master
3.安装部署模块
npm install hexo-deployer-git –save
4.执行部署
hexo deploy
搞定 https://baishiup.github.io/
发布文件:hexo new “title” , 就会生成新md文件在souce/_post里。对博客文件进行操作(发布,修改)后,hexo g重新生成静态文件,hexo d 发布。
相关文章推荐
- 零基础免费搭建个人博客-hexo+github
- 使用Hexo搭建Github个人静态博客
- 使用GitHub + Hexo搭建个人博客(一)- 安装
- github+hexo+node.js搭建个人博客基本过程及遇到的问题
- Hexo搭建Github Pages托管的静态个人博客
- 使用GitHub + Hexo搭建个人博客(五)- Ubuntu升级后hexo命令失效
- 使用GitHub + Hexo搭建个人博客(八)- Hexo异常:/usr/bin/env: node: 没有那个文件或目录
- 使用GitHub + Hexo搭建个人博客(六)- GitHub配置域名(Godaddy)
- github+hexo+node.js搭建个人博客基本过程及遇到的问题
- Hexo搭建Github Pages托管的静态个人博客
- 使用hexo在github上搭建个人博客
- Hexo+github 搭建个人博客(一)
- 使用hexo和github pages搭建个人博客
- 通过GitHub和Hexo搭建个人博客
- 使用GitHub + Hexo搭建个人博客(七)- 基本配置
- 零基础免费搭建个人博客-hexo+github
- 使用 Github Pages 和 Hexo 搭建个人博客
- 通过GitHub和Hexo搭建个人博客
- 使用GitHub + Hexo搭建个人博客(十)- 发表新博客
- 使用GitHub + Hexo搭建个人博客(四)- 第1个Hexo项目