Migrant the blog to hexo.
The concerns that delayed my decision are as follows:
The hexo site is generated in local. The site has to be uploaded after being generated.
The source and the public site are actually two different git repos.
The final kick is the astonishing slow and pretty theme Phase. At first, I just want to try and test this theme. I migranted previous jekyll-style markdown files to a Phase-themed hexo site. Though the theme is slow in some PCs or browsers, the migrant process is pretty smooth. The themes are actually abundent comparing with jekyll themes. Then, I continued the migrant and finished it.
I did a little fix to the
- The duoshuo fix.
I don’t know why previous setting is not working. Therefore, I rewrite it as it is now.
cover theme, the jiathis uid is not exposed in `_config.yml`. Now it is in
And also a page switch
page.share is added. This
addthis share can be disabled by setting
- Add multiple icons for the site
This idea is inspired by the jekyll HMFAYSAL OMEGA theme. Many icons are added to the site header file. It shows proper icons in different Apple devices.
- Automatic deploying to github. The whole deploy process is done automatically after generating. It is also convinient to change to a different repo. I always test on site, not local, because it is actually very different in local. Even you are sure it is fine in local, it still goes wrong in github. I love this feature.
- Gallery (
photos: -img1 -img2) page support.
- Changing different theme is easy and independent to the content. All themes are stored in the
themes/themename. When using jekyll, changing themes means manually replace all files, images, independent pages and other configure.
- Chinese resources are abundent. The inventor and many users of hexo are Chinese. Therefore, many problems have already been solved.
- The source and the public are stored in separate repos. The good part is that it protect your source. The bad part of it is that you can not learn from others.
- Fancy box (Image gallery in page) support, MathJax (latex equation) support, Jiathis (social share) support, and Duoshuo (social comments) support.
The fine tuning of this site will be on-going for a while. As for now, I am pretty satisfied.