Skip to content

shenxianpeng/blog

Repository files navigation

Peter Shen's Blog

Test and SonarScan CodeQL Quality Gate CII Best Practices Website Netlify Status

微信公众号「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.

Start web with Docker

git clone https://github.com/shenxianpeng/blog.git
cd blog
docker-compose up -d

Start web on host

Installation

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

Build and run

make server     # Start server
make help       # Help for make

Create and publish new post

Posts are saved by folder, with the hierarchy of year/month.

Creating an post with following steps:

  1. Running command hexo new "post"(the post name MUST lowercase) can generate post.md under source/_drafts
  2. Then update post.md, and fields such as tags, categories or author
  3. Once it's ready to post, move post.md to source/_post/2022/01/ and run hexo 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

Format tools for publishing to other medium platforms

Licenses

GPL-3.0 © Hexo

署名-非商业性使用-相同方式共享 3.0 中国大陆 (CC BY-NC-SA 3.0 CN)

Attribution-NonCommercial-ShareAlike 3.0 China Mainland (CC BY-NC-SA 3.0 CN)

Blog views