您的位置:首页 > 编程语言

hexo+github搭建个人博客

2016-10-27 12:55 274 查看

hexo

nodejs的博客框架。

1.npm install -g hexo

2.搭建: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 发布。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  github 博客