Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shenxianpeng/blog

Xianpeng Shen's Blog
https://github.com/shenxianpeng/blog

automation blog blog-article blogger cicd devops hexo shenxianpeng

Last synced: 5 days ago
JSON representation

Xianpeng Shen's Blog

Awesome Lists containing this project

README

        

# Xianpeng Shen's Blog

[![Test and SonarScan](https://github.com/shenxianpeng/blog/actions/workflows/CI.yml/badge.svg)](https://github.com/shenxianpeng/blog/actions/workflows/CI.yml)
[![CodeQL](https://github.com/shenxianpeng/blog/workflows/CodeQL/badge.svg)](https://github.com/shenxianpeng/blog/actions?query=workflow%3ACodeQL)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=shenxianpeng_blog&metric=alert_status)](https://sonarcloud.io/dashboard?id=shenxianpeng_blog)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5067/badge)](https://bestpractices.coreinfrastructure.org/projects/5067)
![Website](https://img.shields.io/website?url=https%3A%2F%2Fshenxianpeng.github.io%2F)
[![Netlify Status](https://api.netlify.com/api/v1/badges/93d6583c-4dfd-4e07-a606-1d0108eb39fe/deploy-status)](https://app.netlify.com/sites/shenxianpeng-blog/deploys)

微信公众号「DevOps攻城狮」- 专注于分享CI/CD、DevOps领域知识。

![欢迎扫码关注](source/about/index/qrcode.jpg)

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](https://github.com/shenxianpeng/blog/issues).

## Start web with Docker

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

## Start web on host

### Installation

```bash
git clone https://github.com/shenxianpeng/blog.git
cd blog
sudo make deps # Install dependencies
```

### Build and run

```bash
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, push your changes to remote repository, CI will publish it automatically 🚀

A new commit will be pushed to the blog static files [repository](https://github.com/shenxianpeng/shenxianpeng.github.io)

## Format tools

Format tools for publishing to other medium platforms

* [Convert to Markdown](http://blog.didispace.com/tools/online-markdown/)
* [Markdown Nice](https://www.mdnice.com/)

## Licenses

[GPL-3.0](https://github.com/shenxianpeng/blog/blob/master/LICENSE) © [Hexo](https://hexo.io)

[署名-非商业性使用-相同方式共享 3.0 中国大陆 (CC BY-NC-SA 3.0 CN)](https://creativecommons.org/licenses/by-nc-sa/3.0/cn/deed.zh)

[Attribution-NonCommercial-ShareAlike 3.0 China Mainland (CC BY-NC-SA 3.0 CN)](https://creativecommons.org/licenses/by-nc-sa/3.0/cn/deed.en)

![Blog views](https://gpvc.arturio.dev/blog)