利用hexo和github搭建静态blog

試著忘記壹切 提交于 2019-12-04 05:03:18

###1. 本地安装

###2. 从github上导入

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

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

  • npm install//创建node_modules目录

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

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

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

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

###常见错误

  1. hexo d发布时提示'ERROR Deployer not found: git '
    npm install hexo-deployer-git --save
    再确认下_config.yml中的type是不是git
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!