微信公众号「DevOps攻城狮」- 专注于分享CI/CD、DevOps领域知识。
Share knowledge in the fields of CI/CD and DevOps. Blog URL: https://shenxianpeng.github.io
If you find any mistakes or questions, please feel free to ask via issues.
git clone https://github.com/shenxianpeng/blog.git
cd blog
docker-compose up -d
git clone https://github.com/shenxianpeng/blog.git
cd blog
npm install # Install dependencies
npm install -g hexo-cli # Install hexo cli
npm install hexo-deployer-git --save # Install hexo deploy
make server # Start server
make help # Help for make
Posts are saved by folder, with the hierarchy of year/month.
Creating an post with following steps:
- Running command
hexo new "post"
(the post name MUST lowercase) can generatepost.md
undersource/_drafts
- Then update
post.md
, and fields such astags
,categories
orauthor
- Once it's ready to post, move
post.md
tosource/_post/2022/01/
and runhexo s
to see how it looks like
If some all look good, run this following command to publish 🚀
make publish
A new commit will be pushed to the blog static files repository
Format tools for publishing to other medium platforms
署名-非商业性使用-相同方式共享 3.0 中国大陆 (CC BY-NC-SA 3.0 CN)
Attribution-NonCommercial-ShareAlike 3.0 China Mainland (CC BY-NC-SA 3.0 CN)