利用hexo和github搭建静态blog

###1. 本地安装html

###2. 从github上导入node

  • hexo init //在文件夹下建立相应文件

INFO You are almost done! Don't forget to run 'npm install' before you start blogging with Hexo!git

  • npm install//建立node_modules目录github

  • 修改目录下的_config.yml文件npm

#Deployment
##Docs: http://hexo.io/docs/deployment.html
deploy:hexo

如下是新增 type: git//注意冒号后的空格 repository: git@github.com:name/name.git//ssh格式而不是https格式,本地多个key的时候注意主机名
branch: masterssh

ssh -T git@github.com//本地多个key的时候,注意测试的主机名测试

###常见错误code

  1. hexo d发布时提示'ERROR Deployer not found: git '
    npm install hexo-deployer-git --save
    再确认下_config.yml中的type是否是git
相关文章
相关标签/搜索