Hexo startup for exist blog
Clone repo and install hexo
- First install nodejs & git
- Clone blog folder:
git clone https://codeup.aliyun.com/xxxxxxxxxx/blog.git
- Install hexo
cd blog
rm package-lock.json
npm install
Generate ssh key
ssh-keygen -t rsa -C "your email address" |
It will generate ~/.ssh/id_rsa.pub file, paste the file’s content to your github SSH key.
Hexo commands:
- Startup a local server, view the blog on http://localhost:4000/
npx hexo server
- create new blog, you will find the new blog md file in _posts folder
npx hexo new "Blog title"
- genarate web site
npx hexo g
- deploy web site
npx hexo d
