用途:个人博客,学习记录
install
npm install hexo-cli -g
hexo init <folder>
cd <folder>
npm install
config
# install next theme
cd <folder>
npm install hexo-theme-next
# vim _config.yml
...
# theme
theme: next
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: git
repository: git@github.com:yakir3/yakir3.github.io.git
branch: yakir-blog
deploy
# new post and generate
hexo new "k8s-network"
hexo generate
# start local server
hexo server
# deploy to git
npm install hexo-deployer-git --save
hexo deploy
Reference: