From 418099227222baac6c7dab74d40de751325ffd82 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Tue, 3 Dec 2024 22:22:20 +0800
Subject: [PATCH 1/6] style: add indentation to js code
---
_includes/pageviews/goatcounter.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/_includes/pageviews/goatcounter.html b/_includes/pageviews/goatcounter.html
index 20719b4..265b224 100644
--- a/_includes/pageviews/goatcounter.html
+++ b/_includes/pageviews/goatcounter.html
@@ -8,14 +8,14 @@
const url = `https://{{ site.analytics.goatcounter.id }}.goatcounter.com/counter/${encodeURIComponent(uri)}.json`;
fetch(url)
- .then((response) => response.json())
- .then((data) => {
- const count = data.count.replace(/\s/g, '');
- pv.innerText = new Intl.NumberFormat().format(count);
- })
- .catch((error) => {
- pv.innerText = '1';
- });
+ .then((response) => response.json())
+ .then((data) => {
+ const count = data.count.replace(/\s/g, '');
+ pv.innerText = new Intl.NumberFormat().format(count);
+ })
+ .catch((error) => {
+ pv.innerText = '1';
+ });
}
});
From 8280adb901b9d15cc1bc18009553aae8746121d8 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Tue, 3 Dec 2024 22:41:28 +0800
Subject: [PATCH 2/6] fix(toc): resume fade up animation in desktop mode
(#2085)
---
_includes/toc.html | 2 +-
_javascript/modules/components/toc/toc-desktop.js | 5 ++++-
_sass/pages/_post.scss | 5 +----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/_includes/toc.html b/_includes/toc.html
index 883bf13..4dccb2a 100644
--- a/_includes/toc.html
+++ b/_includes/toc.html
@@ -2,7 +2,7 @@
{% if enable_toc %}
-
+
{{- site.data.locales[include.lang].panel.toc -}}
diff --git a/_javascript/modules/components/toc/toc-desktop.js b/_javascript/modules/components/toc/toc-desktop.js
index 5021a72..0aaba48 100644
--- a/_javascript/modules/components/toc/toc-desktop.js
+++ b/_javascript/modules/components/toc/toc-desktop.js
@@ -15,8 +15,11 @@ export class TocDesktop {
}
static init() {
- if (document.getElementById('toc-wrapper')) {
+ const $tocWrapper = document.getElementById('toc-wrapper');
+
+ if ($tocWrapper) {
tocbot.init(this.options);
+ $tocWrapper.classList.remove('invisible');
}
}
}
diff --git a/_sass/pages/_post.scss b/_sass/pages/_post.scss
index 19adf3f..caa2fe6 100644
--- a/_sass/pages/_post.scss
+++ b/_sass/pages/_post.scss
@@ -234,14 +234,11 @@ header {
@keyframes fade-up {
from {
opacity: 0;
- position: relative;
- top: 2rem;
+ margin-top: 4rem;
}
to {
opacity: 1;
- position: relative;
- top: 0;
}
}
From 7ea3545ba3748a25cd234bbaaed3a4e47055ed97 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Thu, 5 Dec 2024 21:09:07 +0800
Subject: [PATCH 3/6] refactor: reduce the height of the TOC bottom overlay in
desktop mode
---
_includes/toc.html | 2 +-
_sass/pages/_post.scss | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/_includes/toc.html b/_includes/toc.html
index 4dccb2a..0f87726 100644
--- a/_includes/toc.html
+++ b/_includes/toc.html
@@ -2,7 +2,7 @@
{% if enable_toc %}
-
+
{{- site.data.locales[include.lang].panel.toc -}}
diff --git a/_sass/pages/_post.scss b/_sass/pages/_post.scss
index caa2fe6..9348c56 100644
--- a/_sass/pages/_post.scss
+++ b/_sass/pages/_post.scss
@@ -260,7 +260,7 @@ header {
-webkit-animation: fade-up 0.8s;
animation: fade-up 0.8s;
overflow-y: auto;
- max-height: calc(100vh - 2rem);
+ max-height: 100vh;
scrollbar-width: none;
margin-top: 2rem;
@@ -333,7 +333,7 @@ header {
position: fixed;
bottom: 0;
width: 15%;
- height: 3.25rem;
+ height: 2.25rem;
margin-left: -1px;
background: linear-gradient(transparent, var(--main-bg) 70%);
}
From 976e1a184b3dbe08991e8a50db4d5d7f8a0b7090 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Thu, 5 Dec 2024 21:28:37 +0800
Subject: [PATCH 4/6] fix(build): exclude `purgecss.js` from output files
(#2090)
---
_config.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/_config.yml b/_config.yml
index 7a9b11a..71617fb 100644
--- a/_config.yml
+++ b/_config.yml
@@ -212,8 +212,8 @@ exclude:
- tools
- README.md
- LICENSE
- - "*.config.js"
- - package*.json
+ - "*.js"
+ - "package*.json"
jekyll-archives:
enabled: [categories, tags]
From 7630356a94668fa77df41189b0a952bc4582eb04 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Thu, 5 Dec 2024 13:33:44 +0000
Subject: [PATCH 5/6] chore(release): 7.2.1
## [7.2.1](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.2.0...v7.2.1) (2024-12-05)
### Bug Fixes
* **build:** exclude `purgecss.js` from output files ([#2090](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2090)) ([976e1a1](https://github.com/cotes2020/jekyll-theme-chirpy/commit/976e1a184b3dbe08991e8a50db4d5d7f8a0b7090))
* correct the import condition for theme script ([#2075](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2075)) ([a16aa7d](https://github.com/cotes2020/jekyll-theme-chirpy/commit/a16aa7d41e3c3cb28649bfa1361e8bcb91b9ca47))
* ensure pageviews are fetched after DOM is loaded ([#2071](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2071)) ([b4019f3](https://github.com/cotes2020/jekyll-theme-chirpy/commit/b4019f3517e4a3284df51567d29938cb12bf3acc))
* **toc:** resume fade up animation in desktop mode ([#2085](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2085)) ([8280adb](https://github.com/cotes2020/jekyll-theme-chirpy/commit/8280adb901b9d15cc1bc18009553aae8746121d8))
---
docs/CHANGELOG.md | 9 +++++++++
jekyll-theme-chirpy.gemspec | 2 +-
package.json | 2 +-
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 135e1eb..e42ea62 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -1,5 +1,14 @@
# Changelog
+## [7.2.1](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.2.0...v7.2.1) (2024-12-05)
+
+### Bug Fixes
+
+* **build:** exclude `purgecss.js` from output files ([#2090](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2090)) ([976e1a1](https://github.com/cotes2020/jekyll-theme-chirpy/commit/976e1a184b3dbe08991e8a50db4d5d7f8a0b7090))
+* correct the import condition for theme script ([#2075](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2075)) ([a16aa7d](https://github.com/cotes2020/jekyll-theme-chirpy/commit/a16aa7d41e3c3cb28649bfa1361e8bcb91b9ca47))
+* ensure pageviews are fetched after DOM is loaded ([#2071](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2071)) ([b4019f3](https://github.com/cotes2020/jekyll-theme-chirpy/commit/b4019f3517e4a3284df51567d29938cb12bf3acc))
+* **toc:** resume fade up animation in desktop mode ([#2085](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2085)) ([8280adb](https://github.com/cotes2020/jekyll-theme-chirpy/commit/8280adb901b9d15cc1bc18009553aae8746121d8))
+
## [7.2.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.1.1...v7.2.0) (2024-11-28)
### Features
diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec
index 54124e0..2d61ecb 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 = "7.2.0"
+ spec.version = "7.2.1"
spec.authors = ["Cotes Chung"]
spec.email = ["cotes.chung@gmail.com"]
diff --git a/package.json b/package.json
index 7000238..17cb2c3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "jekyll-theme-chirpy",
- "version": "7.2.0",
+ "version": "7.2.1",
"description": "A minimal, responsive, and feature-rich Jekyll theme for technical writing.",
"repository": {
"type": "git",
From 981ddba30e57934f9056b8d468f0d17db131e1e8 Mon Sep 17 00:00:00 2001
From: cheese
Date: Thu, 5 Dec 2024 14:38:06 +0100
Subject: [PATCH 6/6] feat(i18n): add Dutch locale (#2076)
---
_data/locales/nl-NL.yml | 90 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
create mode 100644 _data/locales/nl-NL.yml
diff --git a/_data/locales/nl-NL.yml b/_data/locales/nl-NL.yml
new file mode 100644
index 0000000..d7e8016
--- /dev/null
+++ b/_data/locales/nl-NL.yml
@@ -0,0 +1,90 @@
+# The layout text of site
+
+# ----- Commons label -----
+
+layout:
+ post: Post
+ category: Categorie
+ tag: Tag
+
+# The tabs of sidebar
+tabs:
+ # format: :
+ home: Startpagina
+ categories: Categorieën
+ tags: Tags
+ archives: Archief
+ about: Over
+
+# the text displayed in the search bar & search results
+search:
+ hint: Zoek
+ cancel: Annuleer
+ no_results: Oops! Geen resultaat gevonden.
+
+panel:
+ lastmod: Recent Bijgewerkt
+ trending_tags: Trending Tags
+ toc: Inhoud
+
+copyright:
+ # Shown at the bottom of the post
+ license:
+ template: Alle posts zijn onder :LICENSE_NAME gepubliceerd door de auteur.
+ name: CC BY 4.0
+ link: https://creativecommons.org/licenses/by/4.0/
+
+ # Displayed in the footer
+ brief: Sommige rechten voorbehouden.
+ verbose: >-
+ Tenzij anders vermeld, alle posts zijn onder de
+ Creative Commons Attribution 4.0 International (CC BY 4.0) gepubliceerd door de auteur.
+
+meta: Gebruikt :THEME
+
+not_found:
+ statement: Sorry, we hebben de URL verkeerd geplaatst of hij verwijst naar iets dat niet bestaat.
+
+notification:
+ update_found: Nieuwe versie van inhoud beschikbaar.
+ update: Update
+
+# ----- Posts related labels -----
+post:
+ written_by: Door
+ posted: Posted
+ updated: Bijgewerkt
+ words: woorden
+ pageview_measure: Gelezen
+ read_time:
+ unit: min
+ prompt: lees
+ relate_posts: Verder Lezen
+ share: Deel
+ button:
+ next: Volgende
+ previous: Vorige
+ copy_code:
+ succeed: Gekopieerd!
+ share_link:
+ title: Link kopiëren
+ succeed: Succesvol gekopieerd!
+
+# Date time format.
+# See: ,
+df:
+ post:
+ strftime: "%b %e, %Y"
+ dayjs: "ll"
+ archives:
+ strftime: "%b"
+ dayjs: "MMM"
+
+# categories page
+categories:
+ category_measure:
+ singular: categorie
+ plural: categorieën
+ post_measure:
+ singular: post
+ plural: posts