From 511eed6ef1da0563d86493cf37ebbba509f0c557 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 24 Jul 2022 12:44:31 +0800 Subject: [PATCH] :art: Style: change the version badge style form flat-square to flat --- CHANGELOG.md | 1 + README.md | 7 +++---- README.zh-cn.md | 7 +++---- assets/svg/version.template.svg | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b890059..c08cc8ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ All notable changes to this project will be documented in this file. - :truck: Perf: subdivide FixIt initialization - :art: Style: add theme colors variables and add common color styles - :art: Style: add scroll bar for auto toc ([#136](https://github.com/Lruihao/FixIt/issues/136)) +- :art: Style: change the version badge style form flat-square to flat - :memo: Docs: revise theme documentations - :heavy_plus_sign: Feat: add theme core configuration settings file - :wrench: Feat(cdn): add unpkg cdn support diff --git a/README.md b/README.md index d66cec40..1a25e20b 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ # FixIt Theme | Hugo -[![GitHub release (latest by date)](https://img.shields.io/github/v/release/Lruihao/FixIt?style=flat-square)](https://github.com/Lruihao/FixIt/releases) -[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/Lruihao/FixIt/v0.2.10?style=flat-square)](https://github.com/Lruihao/FixIt/compare/v0.2.10...master) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.84.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) -[![License](https://img.shields.io/github/license/Lruihao/FixIt?style=flat-square)](https://github.com/Lruihao/FixIt/blob/master/LICENSE) +[![GitHub release (latest by date)](https://img.shields.io/github/v/release/Lruihao/FixIt?style=flat)](https://github.com/Lruihao/FixIt/releases) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.84.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) +[![License](https://img.shields.io/github/license/Lruihao/FixIt?style=flat)](https://github.com/Lruihao/FixIt/blob/master/LICENSE) English README | [简体中文说明](https://github.com/Lruihao/FixIt/blob/master/README.zh-cn.md) diff --git a/README.zh-cn.md b/README.zh-cn.md index 3c7b301e..8fc249c7 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -1,9 +1,8 @@ # FixIt 主题 | Hugo -[![GitHub release (latest by date)](https://img.shields.io/github/v/release/Lruihao/FixIt?style=flat-square)](https://github.com/Lruihao/FixIt/releases) -[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/Lruihao/FixIt/v0.2.10?style=flat-square)](https://github.com/Lruihao/FixIt/compare/v0.2.10...master) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.84.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) -[![License](https://img.shields.io/github/license/Lruihao/FixIt?style=flat-square)](https://github.com/Lruihao/FixIt/blob/master/LICENSE) +[![GitHub release (latest by date)](https://img.shields.io/github/v/release/Lruihao/FixIt?style=flat)](https://github.com/Lruihao/FixIt/releases) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.84.0-ff4088?style=flat&logo=hugo)](https://gohugo.io/) +[![License](https://img.shields.io/github/license/Lruihao/FixIt?style=flat)](https://github.com/Lruihao/FixIt/blob/master/LICENSE) [English README](https://github.com/Lruihao/FixIt/blob/master/README.md) | 简体中文说明 diff --git a/assets/svg/version.template.svg b/assets/svg/version.template.svg index 0a057911..02ffa3b0 100644 --- a/assets/svg/version.template.svg +++ b/assets/svg/version.template.svg @@ -1,4 +1,4 @@ -{{- /* https://img.shields.io/badge/$label-$version-$color?style=flat-square&labelColor=403c3d */ -}} +{{- /* https://img.shields.io/badge/$label-$version-$color?style=flat&labelColor=403c3d */ -}} {{- $labelLength := strings.RuneCount .label | mul 64 | add 100 -}} {{- $versionLength := strings.RuneCount .version | mul 60 -}} {{- $width := add $labelLength $versionLength | add 200 -}}