Configure Academic Page in Jekyll + Blog in Hexo together
Difficult situations:
- The Academic page is powered by Jekyll, while the blog website is powered by Hexo.
- And they are maintained in two separated repositories on Github.
- Besides
[username].github.io, I have a domainjyzhu.top, and want to use my custom domain. - All in all, I hope to visit the academic page is at jyzhu.top, while visit the blog is at jyzhu.top/blog.
Now let's configure.
Rename the blog repo as
blog; rename the academic page repo as[username].github.io.Edit the blog's Hexo config file:
1
2url: https://jyzhu.top/blog
root: /blog/While no need to move all the files into a subfolder
blogof your repo.The Jekyll config is simple. Nothing needs to specify.
Edit the Github repo settings. Set the academic repo's custom domain as
jyzhu.top. ACNAMEfile will be automatically added in the root. Now obviously, thejyzhu.topsuccessfully refers to the academic page.Then you know what, everything is done! Because all other repos with github page turns on, are automatically mapped to subpaths of
[username].github.ioby Github. Then coz[username].github.iois mapped to[url], everything will be there, including[url]/blogfor theblogrepo.
TODO
The hexo-douban plugin cannot render styles now. Need to fix.
Update:
- updated hexo-douban to the latest version
- edit the file path of
loading.gifin theindex.jsof this plugin
then it seems ok now.