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