Migrate your blog from github issue to Hexo.
You need to complete the setup of Hexo first, see Hexo Setup.
$ hexo init <folder>
$ cd <folder>
$ npm install
$ npm install hexo-migrator-github-issue --save
Execute the following command after installed. owner/repo
is the github owner and repo of issue.
$ hexo migrate github-issue owner/repo [--publish]
It will migrate owner/repo issue to hexo, there are some specific issue label is supported:
If you specify the front-matter in the issue content, like:
---
cover: http://demo.jpeg
top: 1
---
# Title
Hello World!
The front-matter will be transparently added in your post writings.
Note that, the front-matter in the issue content has the highest priority, that means the internal front-matter which generated by migrator (such as, title
, tags
, number
, date
) will also be replaced.
hexo migrate github-issue Yikun/yikun.github.com
It will migrate Yikun/yikun.github.com issue to hexo.
Welcome to submit the issue and pull request.