8000 GitHub - shenxianpeng/blog: Xianpeng Shen's Blog
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

shenxianpeng/blog

Repository files navigation

Xianpeng 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 don't hesitate 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
sudo make deps  # Install dependencies

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 a post with the 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, push your changes to the remote repository, and CI will publish it automatically 🚀

A new commit will be pushed to the blog static files repository

Format tools

Format tools for publishing to other medium platforms

Licenses

署名—非商业性使用—相同方式共享 4.0 协议国际版

Attribution-NonCommercial-ShareAlike 4.0 International

0