Hexo写博客
branch,url,git,博客2016-11-10
Install hexo-deployer-git.
$ npm install hexo-deployer-git –save
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’) )
hexo g
hexo d
hexo new “new article”
打开之后我们会看到:
title: new article
date: 2014-11-01 20:10:33
tags:
---
文件的开头是属性,采用统一的yaml格式,用三条短横线分隔。下面是文章正文。
文章的正文支持markdown格式,
新建、删除或修改文章后,不需要重启hexo server,刷新一下即可预览。