This is my github page, a place where I take notes on the stuff I learned from the courses I took and through-out my work.
Hexo is pretty easy to set up.
One problem I encounter is that when I run:1
$ hexo server
I got the following error:1
ERROR Local hexo not found
It turns out it’s because my node version is too low…
Everything works after I updated my node version.
When trying to deploy after adding a new post, the github page does not update.
It seems that a hexo clean
is needed before running hexo depoly
.
To start hexo server on a different port, use hexo server -p <port>
.
Some useful links:
- https://gist.github.com/btfak/18938572f5df000ebe06fbd1872e4e39
- https://www.jianshu.com/p/42aa637f614a
Process of creating a blog:
cd <path to blog/blog_init>
hexo new post <title>
hexo generate
- Use
hexo server
to check the generated page hexo deploy
to deploy the change to github