Install hexo-deployer-git.git
$ npm install hexo-deployer-git --savegithub
deploy:
type: git
repo: repository url
branch: [branch]
message: [message]面试
repo GitHub/Bitbucket/Coding/GitLab repository URL
branch Branch name. The deployer will detect the branch automatically if you are using GitHub or GitCafe.
message Customize commit message (Default to Site updated: now('YYYY-MM-DD HH:mm:ss') )npm
hexo g
hexo d微信
hexo new "new article"markdown
打开以后咱们会看到:hexo
title: new article date: 2014-11-01 20:10:33 tags: ---
文件的开头是属性,采用统一的yaml格式,用三条短横线分隔。下面是文章正文。
文章的正文支持markdown格式,
新建、删除或修改文章后,不须要重启hexo server,刷新一下便可预览。ssh
欢迎关注《IT面试题汇总》微信订阅号。天天推送经典面试题和面试心得技巧
===============================url