From 7ec8425e0373a4015ebf805b09931458895ce2e0 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 10 Sep 2023 20:37:18 +0800 Subject: [PATCH 01/46] chore(release): 6.2.0 --- CHANGELOG.md | 16 ++++++++++++++++ jekyll-theme-chirpy.gemspec | 2 +- package.json | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9c5bd6..dc732bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [6.2.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.1.0...v6.2.0) (2023-09-10) + +### Features + +* **layout:** center the footer ([41b8f9f](https://github.com/cotes2020/jekyll-theme-chirpy/commit/41b8f9f519e5f5f69e9a123b38b06bade2271a82)) +* **posts:** render heading 4 in TOC ([#1023](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1023)) ([229c2a2](https://github.com/cotes2020/jekyll-theme-chirpy/commit/229c2a2e2b109fc2eca85be548f1dd97234e44c4)) +* **ui:** redesign the pagination button on home page ([62bcd60](https://github.com/cotes2020/jekyll-theme-chirpy/commit/62bcd601fcadc602c81672b1d4b937231396c3c0)) +* **ui:** update the twitter icon ([#1221](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1221)) ([aff7566](https://github.com/cotes2020/jekyll-theme-chirpy/commit/aff75667749769644f990d3dc9b0720c7d96d14d)) + +### Improvements + +* **core:** speed up the Jekyll build times ([#1163](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1163)) ([0d4103d](https://github.com/cotes2020/jekyll-theme-chirpy/commit/0d4103d47bc9cff93918bb09a2957737cc3c9fe0)) +* refactor using semantic HTML ([#1207](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1207)) ([505e314](https://github.com/cotes2020/jekyll-theme-chirpy/commit/505e314a3142c332e39365fbe2dac23df1bf0abe)), closes [#1196](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1196) +* **ui:** improve code snippet design ([4f86b04](https://github.com/cotes2020/jekyll-theme-chirpy/commit/4f86b04a8487ebbf4a6d0d70b0c3ece79e9269f3)) +* **ui:** improve web accessibility ([#447](https://github.com/cotes2020/jekyll-theme-chirpy/issues/447)) ([37c9764](https://github.com/cotes2020/jekyll-theme-chirpy/commit/37c976499ead51c1d88e8e8213366240a72adebc)) + ## [6.1.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.0.0...v6.1.0) (2023-07-02) ### Features diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec index 90ba319..aa57965 100644 --- a/jekyll-theme-chirpy.gemspec +++ b/jekyll-theme-chirpy.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "jekyll-theme-chirpy" - spec.version = "6.1.0" + spec.version = "6.2.0" spec.authors = ["Cotes Chung"] spec.email = ["cotes.chung@gmail.com"] diff --git a/package.json b/package.json index fa03060..232bd37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jekyll-theme-chirpy", - "version": "6.1.0", + "version": "6.2.0", "description": "A minimal, responsive and feature-rich Jekyll theme for technical writing.", "repository": { "type": "git", From 204cb44dc37b7493340ef3cf4ebb53937652dc87 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 11 Sep 2023 00:36:52 +0800 Subject: [PATCH 02/46] chore(release): 6.2.1 --- CHANGELOG.md | 6 ++++++ jekyll-theme-chirpy.gemspec | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc732bf..5091ac6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [6.2.1](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.2.0...v6.2.1) (2023-09-10) + +### Bug Fixes + +* **pwa:** installation failure caused by outdated cache entries ([4da7406](https://github.com/cotes2020/jekyll-theme-chirpy/commit/4da7406dfea112a4a2b1db5615ecf2672be6694f)) + ## [6.2.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.1.0...v6.2.0) (2023-09-10) ### Features diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec index aa57965..6a03cbf 100644 --- a/jekyll-theme-chirpy.gemspec +++ b/jekyll-theme-chirpy.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "jekyll-theme-chirpy" - spec.version = "6.2.0" + spec.version = "6.2.1" spec.authors = ["Cotes Chung"] spec.email = ["cotes.chung@gmail.com"] diff --git a/package.json b/package.json index 232bd37..c21eda4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jekyll-theme-chirpy", - "version": "6.2.0", + "version": "6.2.1", "description": "A minimal, responsive and feature-rich Jekyll theme for technical writing.", "repository": { "type": "git", From f079bb7f5bd9311b3e475000e6252dd0a3a64ea7 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 11 Sep 2023 02:32:35 +0800 Subject: [PATCH 03/46] chore(release): 6.2.2 --- CHANGELOG.md | 6 ++++++ jekyll-theme-chirpy.gemspec | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5091ac6..8c2610f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [6.2.2](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.2.1...v6.2.2) (2023-09-10) + +### Bug Fixes + +* **sidebar:** contact icons not stacking ([#1224](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1224)) ([273b389](https://github.com/cotes2020/jekyll-theme-chirpy/commit/273b389c512f13693ed6cdf57d256ac21deae97c)) + ## [6.2.1](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.2.0...v6.2.1) (2023-09-10) ### Bug Fixes diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec index 6a03cbf..7171205 100644 --- a/jekyll-theme-chirpy.gemspec +++ b/jekyll-theme-chirpy.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "jekyll-theme-chirpy" - spec.version = "6.2.1" + spec.version = "6.2.2" spec.authors = ["Cotes Chung"] spec.email = ["cotes.chung@gmail.com"] diff --git a/package.json b/package.json index c21eda4..f30828d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jekyll-theme-chirpy", - "version": "6.2.1", + "version": "6.2.2", "description": "A minimal, responsive and feature-rich Jekyll theme for technical writing.", "repository": { "type": "git", From bb589e8d31967cb9c800ea716e00d7b3b721f4e9 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 15 Sep 2023 01:13:20 +0800 Subject: [PATCH 04/46] style: prettify `utteranc` code snippet --- _includes/comments/utterances.html | 42 ++++++++++++++---------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/_includes/comments/utterances.html b/_includes/comments/utterances.html index afd7cd3..8a2b028 100644 --- a/_includes/comments/utterances.html +++ b/_includes/comments/utterances.html @@ -1,51 +1,49 @@ - + From b34661efd72e8697fd5b30ba7e55c86c7dd10338 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 15 Sep 2023 01:24:13 +0800 Subject: [PATCH 05/46] fix: avoid `utterances` initialization failure (#1234) This issue exists since Chirpy `v6.0.0` --- _includes/comments/utterances.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/_includes/comments/utterances.html b/_includes/comments/utterances.html index 8a2b028..34dddcd 100644 --- a/_includes/comments/utterances.html +++ b/_includes/comments/utterances.html @@ -8,16 +8,17 @@ > From e78f67d354f279985f6e317576d935a17493528a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 16 Sep 2023 23:02:21 +0800 Subject: [PATCH 06/46] build(gh): improve `Issue` / `Discussion` templates with form schema --- .github/DISCUSSION_TEMPLATE/general.yml | 26 +++++++++ .github/DISCUSSION_TEMPLATE/q-a.yml | 41 +++++++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 61 ---------------------- .github/ISSUE_TEMPLATE/bug_report.yml | 52 ++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 26 --------- .github/ISSUE_TEMPLATE/feature_request.yml | 38 ++++++++++++++ 6 files changed, 157 insertions(+), 87 deletions(-) create mode 100644 .github/DISCUSSION_TEMPLATE/general.yml create mode 100644 .github/DISCUSSION_TEMPLATE/q-a.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/DISCUSSION_TEMPLATE/general.yml b/.github/DISCUSSION_TEMPLATE/general.yml new file mode 100644 index 0000000..4c48661 --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/general.yml @@ -0,0 +1,26 @@ +body: + - type: checkboxes + attributes: + label: Checklist + description: Following the guidelines can make you more likely to get responses. + options: + - label: >- + I'm willing to follow the + [Contributing Guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md). + required: true + + - type: dropdown + attributes: + label: What is the topic? + options: + - Sharing tips and tricks + - Just chatting + validations: + required: true + + - type: textarea + attributes: + label: Description + description: Please describe in detail what you want to share. + validations: + required: true diff --git a/.github/DISCUSSION_TEMPLATE/q-a.yml b/.github/DISCUSSION_TEMPLATE/q-a.yml new file mode 100644 index 0000000..bea6955 --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/q-a.yml @@ -0,0 +1,41 @@ +body: + - type: checkboxes + attributes: + label: Checklist + description: Following the guidelines can make you more likely to get responses. + options: + - label: >- + I'm willing to follow the + [Contributing Guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md). + required: true + + - type: dropdown + id: download + attributes: + label: How did you create the site? + options: + - Generated from `chirpy-starter` + - Built from `jekyll-theme-chirpy` + + validations: + required: true + + - type: textarea + attributes: + label: Description + description: Please describe your need in detail. + validations: + required: true + + - type: textarea + attributes: + label: Operations you have already tried + description: Describe the effort you went through. + validations: + required: true + + - type: textarea + attributes: + label: Anything else? + description: | + Links? References? Or logs? Anything that will give us more context about the issue you are encountering! diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 2eb21a1..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -name: Bug Report -about: Create a report to help us improve ---- - -> **Tips**: Remember, contributions to this repository should follow the [contributing guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md). - -## Describe the bug - - - -## To Reproduce - -Steps to reproduce the behavior: - - -## Expected behavior - - - -## Logs/Screenshots - - - -## Environment - -| Command | Version | -|-----------------------------------|---------| -| `ruby -v` | | -| `gem -v` | | -| `bundle -v` | | -| `bundle exec jekyll -v` | | -| `bundle info jekyll-theme-chirpy` | | - - - - - -## Additional context - - diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..225a636 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,52 @@ +name: Bug Report +description: Create a report to help us improve +body: + - type: checkboxes + attributes: + label: Checklist + description: Following the guidelines can make you more likely to get responses. + options: + - label: >- + I'm willing to follow the + [Contributing Guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md). + required: true + + - type: textarea + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. + validations: + required: true + + - type: textarea + attributes: + label: Steps To Reproduce + description: Steps to reproduce the behavior. + placeholder: | + 1. In this environment... + 2. With this config... + 3. Run '...' + 4. See error... + validations: + required: true + + - type: textarea + attributes: + label: Expected Behavior + description: A concise description of what you expected to happen. + + - type: textarea + attributes: + label: Environment + value: | + - Ruby: + - Jekyll: + - Chirpy: + validations: + required: true + + - type: textarea + attributes: + label: Anything else? + description: | + Links? References? Or logs? Anything that will give us more context about the issue you are encountering! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 2a8d6d6..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Feature Request -about: Suggest an idea for this project -labels: enhancement ---- - -> **Tips**: Remember, contributions to this repository should follow the [contributing guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md). - -## Is your feature request related to a problem? Please describe - - - - -## Describe the solution you'd like - - - - -## Describe alternatives you've considered - - - - -## Additional context - - diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..55ff6e2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,38 @@ +name: Feature Request +description: Suggest an idea for this project +labels: + - enhancement +body: + - type: checkboxes + attributes: + label: Checklist + description: Following the guidelines can make you more likely to get responses. + options: + - label: >- + I'm willing to follow the + [Contributing Guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md). + required: true + + - type: textarea + attributes: + label: Is your feature request related to a problem? Please describe + description: A clear and concise description of what the problem is. + validations: + required: true + + - type: textarea + attributes: + label: Describe the solution you'd like + description: A clear and concise description of what you want to happen. + validations: + required: true + + - type: textarea + attributes: + label: Describe alternatives you've considered + description: A clear and concise description of any alternative solutions or features you've considered. + + - type: textarea + attributes: + label: Additional context + description: Add any other context or screenshots about the feature request here. From 13a3c3c906bb6c5a38314ea27b6cf3767df94b27 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 18 Sep 2023 03:26:02 +0800 Subject: [PATCH 07/46] perf(layout): improve margins for tail block (#1243) Keeps the margin of the elements in the tail area consistent regardless of the number of siblings, or if a - + {% endif %} diff --git a/assets/lib b/assets/lib index f80ba2f..13e6909 160000 --- a/assets/lib +++ b/assets/lib @@ -1 +1 @@ -Subproject commit f80ba2f1616496cba34f3fd3eef1564d8fa843cd +Subproject commit 13e6909cc40e1b09f33fab420d743dfa709e86bb From 2574118f40a956184705f87dea4d88e7c246a055 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:29:44 -0500 Subject: [PATCH 36/46] perf(ui): standardize metadata text styles (#1295) --- _sass/addon/commons.scss | 5 ++--- _sass/addon/module.scss | 6 +++++- _sass/colors/typography-dark.scss | 1 + _sass/colors/typography-light.scss | 1 + _sass/layout/post.scss | 16 ++++------------ 5 files changed, 13 insertions(+), 16 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index d54e76a..65d72c9 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -132,12 +132,11 @@ kbd { } footer { - font-size: 0.8rem; background-color: var(--main-bg); height: $footer-height; border-top: 1px solid var(--main-border-color); - @extend %text-color; + @extend %text-meta; a { @extend %text-highlight; @@ -382,7 +381,7 @@ main { } .post-meta { - font-size: 0.85rem; + @extend %text-meta; a { &:not([class]):hover { diff --git a/_sass/addon/module.scss b/_sass/addon/module.scss index 9119b3d..f1fdd84 100644 --- a/_sass/addon/module.scss +++ b/_sass/addon/module.scss @@ -123,10 +123,14 @@ } %text-highlight { - color: inherit; + color: var(--text-muted-hightlight-color); font-weight: 600; } +%text-meta { + font-size: 0.85rem; +} + %sup-fn-target { &:target { background-color: var(--footnote-target-bg); diff --git a/_sass/colors/typography-dark.scss b/_sass/colors/typography-dark.scss index 2142d33..1ccfa03 100644 --- a/_sass/colors/typography-dark.scss +++ b/_sass/colors/typography-dark.scss @@ -11,6 +11,7 @@ /* Common color */ --text-color: rgb(175, 176, 177); --text-muted-color: #868686; + --text-muted-hightlight-color: #aeaeae; --heading-color: #cccccc; --label-color: #a7a7a7; --blockquote-border-color: rgb(66, 66, 66); diff --git a/_sass/colors/typography-light.scss b/_sass/colors/typography-light.scss index f8c3891..e875aef 100644 --- a/_sass/colors/typography-light.scss +++ b/_sass/colors/typography-light.scss @@ -11,6 +11,7 @@ /* Common color */ --text-color: #34343c; --text-muted-color: #757575; + --text-muted-hightlight-color: inherit; --heading-color: #2a2a2a; --label-color: #585858; --blockquote-border-color: #eeeeee; diff --git a/_sass/layout/post.scss b/_sass/layout/post.scss index 955c958..72a4a46 100644 --- a/_sass/layout/post.scss +++ b/_sass/layout/post.scss @@ -22,10 +22,6 @@ padding-right: $pr; } -%text-color { - color: var(--text-color); -} - h1 + .post-meta { > span + span::before { @include dot; @@ -33,7 +29,7 @@ h1 + .post-meta { em, time { - color: var(--text-color); + @extend %text-highlight; } em { @@ -44,13 +40,10 @@ h1 + .post-meta { } .post-tail-wrapper { + @extend %text-meta; + margin-top: 6rem; border-bottom: 1px double var(--main-border-color); - font-size: 0.85rem; - - .post-tail-bottom a { - color: inherit; - } .license-wrapper { line-height: 1.2rem; @@ -64,7 +57,7 @@ h1 + .post-meta { } span:last-child { - font-size: 0.85rem; + @extend %text-meta; } } /* .license-wrapper */ @@ -320,7 +313,6 @@ h1 + .post-meta { .card { h4 { - @extend %text-color; @extend %text-clip; } } From 3fd3c571b5cfe6fc99a615eece6e43c360e62fb3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:34:38 -0500 Subject: [PATCH 37/46] build(deps-dev): bump the npm group with 4 updates (#1289) Updates the requirements on [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core), [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env), [rimraf](https://github.com/isaacs/rimraf) and [rollup](https://github.com/rollup/rollup) to permit the latest version. Updates `@babel/core` to 7.23.0 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.0/packages/babel-core) Updates `@babel/preset-env` to 7.22.20 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.22.20/packages/babel-preset-env) Updates `rimraf` to 5.0.5 - [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/rimraf/compare/v5.0.1...v5.0.5) Updates `rollup` to 3.29.4 - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v3.29.0...v3.29.4) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development dependency-group: npm - dependency-name: "@babel/preset-env" dependency-type: direct:development dependency-group: npm - dependency-name: rimraf dependency-type: direct:development dependency-group: npm - dependency-name: rollup dependency-type: direct:development dependency-group: npm ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f30828d..f900db2 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,13 @@ "fixlint": "npm run test -- --fix" }, "devDependencies": { - "@babel/core": "^7.22.17", + "@babel/core": "^7.23.0", "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/preset-env": "^7.22.15", + "@babel/preset-env": "^7.22.20", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-terser": "^0.4.3", - "rimraf": "^5.0.1", - "rollup": "^3.29.0", + "rimraf": "^5.0.5", + "rollup": "^3.29.4", "rollup-plugin-license": "^3.1.0", "stylelint": "^15.10.3", "stylelint-config-standard-scss": "^11.0.0" From 45c2a18884dd800b2d361a0c7fbd91bd6bc25163 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:13:08 -0500 Subject: [PATCH 38/46] chore(deps): update dependent libraries (#1296) - Updates `bootstrap` to 5.3.2 - Updates `dayjs` to 1.11.10 --- _data/origin/cors.yml | 12 ++++++------ assets/lib | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_data/origin/cors.yml b/_data/origin/cors.yml index 079fa0a..9dd641e 100644 --- a/_data/origin/cors.yml +++ b/_data/origin/cors.yml @@ -19,8 +19,8 @@ jquery: js: https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js bootstrap: - css: https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css - js: https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js + css: https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css + js: https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js toc: css: https://cdn.jsdelivr.net/npm/tocbot@4.21.1/dist/tocbot.min.css @@ -37,10 +37,10 @@ mermaid: dayjs: js: - common: https://cdn.jsdelivr.net/npm/dayjs@1.11.9/dayjs.min.js - locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.9/locale/:LOCALE.min.js - relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.9/plugin/relativeTime.min.js - localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.9/plugin/localizedFormat.min.js + common: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/dayjs.min.js + locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/locale/:LOCALE.min.js + relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/plugin/relativeTime.min.js + localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/plugin/localizedFormat.min.js magnific-popup: css: https://cdn.jsdelivr.net/npm/magnific-popup@1.1.0/dist/magnific-popup.min.css diff --git a/assets/lib b/assets/lib index 13e6909..fe66cdd 160000 --- a/assets/lib +++ b/assets/lib @@ -1 +1 @@ -Subproject commit 13e6909cc40e1b09f33fab420d743dfa709e86bb +Subproject commit fe66cdda15149023a7e2a104283dbae2c656f7e0 From 42bf39e21c9a497aecc3e9b4549e2fc3ba4a1e4a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:40:16 -0500 Subject: [PATCH 39/46] perf(ux): render background color before loading preview image (#1298) --- _sass/addon/commons.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index 65d72c9..d8e6b4a 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -315,9 +315,7 @@ sup { @extend %rounded; &:not(.no-bg) { - img { - background: var(--img-bg); - } + background: var(--img-bg); } img { From b7e9f3ec348fd2caa22370f2e6a07627610c0045 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 5 Oct 2023 06:04:14 +0800 Subject: [PATCH 40/46] docs: correct spelling in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 75cb3bb..fc6bb65 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ To learn how to use, develop, and upgrade the project, please refer to the [Wiki ## Contributing -Contributions (_pull requests_, _issues_, and _discussions_) are what make the open source community such an amazing place +Contributions (_pull requests_, _issues_, and _discussions_) are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. For details, see the "[Contributing Guidelines][contribute-guide]". @@ -66,7 +66,7 @@ Last but not least, thanks to [JetBrains][jetbrains] for providing the _Open Sou ## Sponsoring -If you like this project, or have built something through it, please consider supporting this project. Any support would be greatly appreciated! +If you like this project or have built something through it, please consider sponsoring it, and your support would be greatly appreciated. [![Ko-fi](https://img.shields.io/badge/Support_Me_on_Ko--fi-ff5e5b?logo=ko-fi&logoColor=white)][ko-fi]  [![Wechat Pay](https://img.shields.io/badge/Support_Me_on_WeChat-brightgreen?logo=wechat&logoColor=white)][donation]  From 753cd0499d6e8d1a62d1d4a45d0875f89ea442f6 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 6 Oct 2023 02:04:19 +0800 Subject: [PATCH 41/46] chore: remove console log from `copy link` button --- _javascript/modules/components/clipboard.js | 1 - 1 file changed, 1 deletion(-) diff --git a/_javascript/modules/components/clipboard.js b/_javascript/modules/components/clipboard.js index f4634cf..68f6afd 100644 --- a/_javascript/modules/components/clipboard.js +++ b/_javascript/modules/components/clipboard.js @@ -126,6 +126,5 @@ export function initClipboard() { btnCopyLink.on('mouseleave', function (e) { const target = $(e.target); target.tooltip('hide'); - console.log('mouse leave...'); }); } From 575dc87d838dc544d4d292e2fa54aba6d1bffdf1 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 6 Oct 2023 20:26:01 +0800 Subject: [PATCH 42/46] chore: update comments for configuration options `baseurl` and `url` Avoid newbies from misusing these two options --- _config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index 93d768d..05044ca 100644 --- a/_config.yml +++ b/_config.yml @@ -3,10 +3,6 @@ # Import the theme theme: jekyll-theme-chirpy -# Change the following value to '/PROJECT_NAME' ONLY IF your site type is GitHub Pages Project sites -# and doesn't have a custom domain. -baseurl: "" - # The language of the webpage › http://www.lingoes.net/en/translator/langcode.htm # If it has the same name as one of the files in folder `_data/locales`, the layout language will also be changed, # otherwise, the layout language will use the default value of 'en'. @@ -25,7 +21,8 @@ tagline: A text-focused Jekyll theme # it will display as the sub-title description: >- # used by seo meta and the atom feed A minimal, responsive and feature-rich Jekyll theme for technical writing. -# fill in the protocol & hostname for your site, e.g., 'https://username.github.io' +# Fill in the protocol & hostname for your site. +# e.g. 'https://username.github.io', note that it does not end with a '/'. url: "" github: @@ -114,6 +111,9 @@ pwa: paginate: 10 +# The base URL of your site +baseurl: "" + # ------------ The following options are not recommended to be modified ------------------ kramdown: From 50835b4c715a912d1d96fb164cda0120008a2628 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 8 Oct 2023 04:40:16 +0800 Subject: [PATCH 43/46] refactor: optimize meta font size --- _includes/related-posts.html | 4 ++-- _sass/addon/commons.scss | 4 ++-- _sass/addon/module.scss | 6 +++++- _sass/layout/post.scss | 5 +++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/_includes/related-posts.html b/_includes/related-posts.html index ebe98d0..1ba2f32 100644 --- a/_includes/related-posts.html +++ b/_includes/related-posts.html @@ -78,9 +78,9 @@
- {% include datetime.html date=post.date class="small" lang=include.lang %} + {% include datetime.html date=post.date lang=include.lang %}

{{ post.title }}

-
+

{% include no-linenos.html content=post.content %} {{ content | markdownify | strip_html | truncate: 200 | escape }} diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index d8e6b4a..528de00 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -136,7 +136,7 @@ footer { height: $footer-height; border-top: 1px solid var(--main-border-color); - @extend %text-meta; + @extend %text-xs; a { @extend %text-highlight; @@ -379,7 +379,7 @@ main { } .post-meta { - @extend %text-meta; + @extend %text-sm; a { &:not([class]):hover { diff --git a/_sass/addon/module.scss b/_sass/addon/module.scss index f1fdd84..d1b7103 100644 --- a/_sass/addon/module.scss +++ b/_sass/addon/module.scss @@ -127,10 +127,14 @@ font-weight: 600; } -%text-meta { +%text-sm { font-size: 0.85rem; } +%text-xs { + font-size: 0.8rem; +} + %sup-fn-target { &:target { background-color: var(--footnote-target-bg); diff --git a/_sass/layout/post.scss b/_sass/layout/post.scss index 72a4a46..f44ee89 100644 --- a/_sass/layout/post.scss +++ b/_sass/layout/post.scss @@ -40,7 +40,7 @@ h1 + .post-meta { } .post-tail-wrapper { - @extend %text-meta; + @extend %text-sm; margin-top: 6rem; border-bottom: 1px double var(--main-border-color); @@ -57,7 +57,7 @@ h1 + .post-meta { } span:last-child { - @extend %text-meta; + @extend %text-sm; } } /* .license-wrapper */ @@ -297,6 +297,7 @@ h1 + .post-meta { time { @extend %normal-font-style; + @extend %text-xs; color: var(--text-muted-color); } From d71711d2d32cff03aa85e5bdffefd858ca793468 Mon Sep 17 00:00:00 2001 From: Zheng Yuan <9320285+ZhengYuan-Public@users.noreply.github.com> Date: Sun, 8 Oct 2023 06:17:59 -0500 Subject: [PATCH 44/46] docs: add more content in Mathematics and fix some typos (#1306) 1. Add docs for block math and inline math 2. Change a grammar mistake at line 137, the single form should be used 3. Change the comma from Chinese to English for consistency of the doc. --------- Co-authored-by: Cotes Chung <11371340+cotes2020@users.noreply.github.com> --- _posts/2019-08-08-write-a-new-post.md | 28 +++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/_posts/2019-08-08-write-a-new-post.md b/_posts/2019-08-08-write-a-new-post.md index 4812cee..1da7b0d 100644 --- a/_posts/2019-08-08-write-a-new-post.md +++ b/_posts/2019-08-08-write-a-new-post.md @@ -107,9 +107,33 @@ math: true --- ``` +After enabling the mathematical feature, you can add math equations with the following syntax: + +- **Block math** should be added with `$$ math $$` with **mandatory** blank lines before and after `$$` +- **Inline math** (in lines) should be added with `$$ math $$` without any blank line before or after `$$` +- **Inline math** (in lists) should be added with `\$$ math $$` + +```markdown + + +$$ +LaTeX_math_expression +$$ + + + +"Lorem ipsum dolor sit amet, $$ LaTeX_math_expression $$ consectetur adipiscing elit." + + + +1. \$$ LaTeX_math_expression $$ +2. \$$ LaTeX_math_expression $$ +3. \$$ LaTeX_math_expression $$ +``` + ## Mermaid -[**Mermaid**](https://github.com/mermaid-js/mermaid) is a great diagrams generation tool. To enable it on your post, add the following to the YAML block: +[**Mermaid**](https://github.com/mermaid-js/mermaid) is a great diagram generation tool. To enable it on your post, add the following to the YAML block: ```yaml --- @@ -123,7 +147,7 @@ Then you can use it like other markdown languages: surround the graph code with ### Caption -Add italics to the next line of an image,then it will become the caption and appear at the bottom of the image: +Add italics to the next line of an image, then it will become the caption and appear at the bottom of the image: ```markdown ![img-description](/path/to/image) From e6e2984e7729750859bd649043de58e7bb24cc90 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 9 Oct 2023 21:12:43 +0800 Subject: [PATCH 45/46] chore(deps): update library versions See also: https://github.com/cotes2020/chirpy-static-assets/pull/11 --- _data/origin/cors.yml | 6 +++--- assets/lib | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_data/origin/cors.yml b/_data/origin/cors.yml index 9dd641e..a95ef6b 100644 --- a/_data/origin/cors.yml +++ b/_data/origin/cors.yml @@ -23,8 +23,8 @@ bootstrap: js: https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js toc: - css: https://cdn.jsdelivr.net/npm/tocbot@4.21.1/dist/tocbot.min.css - js: https://cdn.jsdelivr.net/npm/tocbot@4.21.1/dist/tocbot.min.js + css: https://cdn.jsdelivr.net/npm/tocbot@4.21.2/dist/tocbot.min.css + js: https://cdn.jsdelivr.net/npm/tocbot@4.21.2/dist/tocbot.min.js fontawesome: css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css @@ -33,7 +33,7 @@ search: js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js mermaid: - js: https://cdn.jsdelivr.net/npm/mermaid@10.4.0/dist/mermaid.min.js + js: https://cdn.jsdelivr.net/npm/mermaid@10.5.0/dist/mermaid.min.js dayjs: js: diff --git a/assets/lib b/assets/lib index fe66cdd..6e3fa73 160000 --- a/assets/lib +++ b/assets/lib @@ -1 +1 @@ -Subproject commit fe66cdda15149023a7e2a104283dbae2c656f7e0 +Subproject commit 6e3fa734685f099195b02da912ffa25c04913e41 From 7b7e69a44d7c8fb6961c9e2675aa361519649c55 Mon Sep 17 00:00:00 2001 From: DmitriyFrogo <65223198+DmitriyFrogo@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:54:04 +0300 Subject: [PATCH 46/46] chore(i18n): update Russian locale (#1308) --- _data/locales/ru-RU.yml | 46 +++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/_data/locales/ru-RU.yml b/_data/locales/ru-RU.yml index 4377300..185407c 100644 --- a/_data/locales/ru-RU.yml +++ b/_data/locales/ru-RU.yml @@ -3,14 +3,14 @@ # ----- Commons label ----- layout: - post: Публикация + post: Пост category: Категория tag: Тег # The tabs of sidebar tabs: # format: : - home: Домашняя страница + home: Главная categories: Категории tags: Теги archives: Архив @@ -19,8 +19,8 @@ tabs: # the text displayed in the search bar & search results search: hint: поиск - cancel: Отменить - no_results: Ох! Ничего не найдено. + cancel: Отмена + no_results: Упс! Ничего не найдено. panel: lastmod: Недавно обновлено @@ -30,48 +30,58 @@ panel: copyright: # Shown at the bottom of the post license: - template: Публикация защищена лицензией :LICENSE_NAME. + template: Авторский пост защищен лицензией :LICENSE_NAME. name: CC BY 4.0 link: https://creativecommons.org/licenses/by/4.0/ # Displayed in the footer brief: Некоторые права защищены. verbose: >- - Публикации на сайте защищены лицензией Creative Commons Attribution 4.0 International (CC BY 4.0), - если в тексте публикации не указано иное. + Если не указано иное, авторские посты на этом сайте защищены лицензией Creative Commons Attribution 4.0 International (CC BY 4.0). -meta: Powered by :PLATFORM with :THEME theme +meta: Использует тему :THEME для :PLATFORM not_found: - statment: Извините, эта ссылка указывает на ресурс который не существует. + statment: Извините, мы перепутали URL-адрес или он указывает на что-то несуществующее. notification: update_found: Доступна новая версия контента. - update: Обновлять + update: Обновить # ----- Posts related labels ----- post: written_by: Автор - posted: Время публикации + posted: Опубликовано updated: Обновлено words: слов pageview_measure: просмотров read_time: - unit: минут + unit: мин. prompt: чтения - relate_posts: Вам также может быть интересно + relate_posts: Похожие посты share: Поделиться button: - next: Предыдущая публикация - previous: Следующая публикация + next: Следующий пост + previous: Предыдущий пост copy_code: - succeed: Скопировано успешно! + succeed: Скопировано! share_link: title: Скопировать ссылку succeed: Ссылка успешно скопирована! +# Date time format. +# See: , +df: + post: + strftime: "%d.%m.%Y" + dayjs: "DD.MM.YYYY" + # categories page categories: - category_measure: категории - post_measure: публикации + category_measure: + singular: категория + plural: категории + post_measure: + singular: пост + plural: посты