Hexo is a fast, simple and powerful blog framework. And we can use Markdown to write it, so it is very efficient. I migrate the old blogs to this theme.
Install Hexo
Using npm to install it.
|
|
Set up for first using it
Make a directory for blog:
|
|
Init for Hexo:
|
|
Update _config.yml
file in work directory for github info:
|
|
Then run the following command to take effect:
|
|
Install Theme
Ref: https://github.com/litten/hexo-theme-yilia
|
|
Modify _config.yml
in root dir:
|
|
Next, how to write blogs.
Write a blog
Create a blog:
|
|
It will create a .md
file in blog/source/_post
directory, edit and write it.
Clean Folder:
|
|
Generate static page to public folder:
|
|
Deploy to github:
|
|
Reference
Links: https://hexo.io/docs/