From f20ed1c4b1adc02df35a91ca2f0420e6e8be7e58 Mon Sep 17 00:00:00 2001 From: Shen Lin Date: Sat, 28 Mar 2026 10:44:48 +0800 Subject: [PATCH 01/18] chore: ignore hidden system files and editor backups (#2704) --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 7dd7cefd9..562f4e59b 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,8 @@ package-lock.json # Misc _sass/vendors assets/js/dist + +# Hidden system files +*~ +.DS_Store +Thumbs.db From 6245dec754507cfc35fe3db6b90e7bf4dded5e94 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 4 Apr 2026 01:36:04 +0800 Subject: [PATCH 02/18] docs: improve readme --- README.md | 53 ++++++++++++++++++++++++++--------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 7e57b2a52..f17f52253 100644 --- a/README.md +++ b/README.md @@ -20,53 +20,52 @@ ## Features -- Dark Theme -- Localized UI language -- Pinned Posts on Home Page -- Hierarchical Categories -- Trending Tags -- Table of Contents -- Last Modified Date -- Syntax Highlighting -- Mathematical Expressions -- Mermaid Diagrams & Flowcharts -- Dark Mode Images -- Embed Media -- Comment Systems -- Built-in Search -- Atom Feeds -- PWA -- Web Analytics -- SEO & Performance Optimization +- **Design & UX** - Responsive layout, Dark/Light modes, Localized UI language, + and Dark mode images. +- **Content Management** - Pinned posts, Hierarchical categories, Trending tags, + Auto-generated Table of Contents, and Last modified dates. +- **Rich Text Support** - Syntax highlighting, Mathematical expressions, Mermaid + diagrams & flowcharts, and Embedded media. +- **Interactivity & Outreach** - Built-in search, Multiple comment systems, and + Atom feeds. +- **System & Optimization** - PWA support, integrated Web analytics, and + advanced SEO performance. ## Documentation -To learn how to use, develop, and upgrade the project, please refer to the [Wiki][wiki]. +To learn how to use, develop, and upgrade the project, please refer to the +[Wiki][wiki]. ## Contributing -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]". +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, please refer to our [Contributing Guidelines][contribute-guide]. ## Credits ### Contributors -Thanks to [all the contributors][contributors] involved in the development of the project! +Thanks to [all the contributors][contributors] involved in the development of +the project! -[![all-contributors](https://contrib.rocks/image?repo=cotes2020/jekyll-theme-chirpy&columns=16)][contributors] +[![all-contributors](https://contrib.rocks/image?repo=cotes2020/jekyll-theme-chirpy&columns=16&max=112)][contributors] — Made with [contrib.rocks](https://contrib.rocks) ### Third-Party Assets -This project is built on the [Jekyll][jekyllrb] ecosystem and some [great libraries][lib], and is developed using [VS Code][vscode] as well as tools provided by [JetBrains][jetbrains] under a non-commercial open-source software license. +This project is built on the [Jekyll][jekyllrb] ecosystem and integrates several +[great libraries][lib]. It is developed using [VS Code][vscode] and tools +provided by [JetBrains][jetbrains] under a non-commercial open-source software +license. -The avatar and favicon for the project's website are from [ClipartMAX][clipartmax]. +The avatar and favicon for the project's website are sourced from +[ClipartMAX][clipartmax]. ## License -This project is published under [MIT License][license]. +This project is published under the [MIT License][license]. [gem]: https://rubygems.org/gems/jekyll-theme-chirpy [ci]: https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster From 2685b91957d0207c2d31dab828430c78a2fcc3d0 Mon Sep 17 00:00:00 2001 From: lynkos Date: Thu, 9 Apr 2026 12:29:33 -0400 Subject: [PATCH 03/18] fix: prevent Firefox from opening blank page on `mailto` links (#2642) --- _includes/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 1cd0ee8a7..ed35424ef 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -68,7 +68,7 @@ {%- endunless -%} {%- assign email = site.social.email | split: '@' -%} {%- capture url -%} - javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@') + javascript:void(location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')) {%- endcapture -%} {% when 'rss' %} {% assign url = '/feed.xml' | relative_url %} From 6bd446ccdedbe37752cf24b1866e1e2dd9cb82c8 Mon Sep 17 00:00:00 2001 From: Alexander Fuks Date: Wed, 6 May 2026 18:31:32 +0400 Subject: [PATCH 04/18] feat: add edit this post link (#2517) --- _config.yml | 10 ++++++++++ _data/locales/ar.yml | 1 + _data/locales/bg-BG.yml | 1 + _data/locales/ca-ES.yml | 1 + _data/locales/cs-CZ.yml | 1 + _data/locales/da-DK.yml | 1 + _data/locales/de-DE.yml | 1 + _data/locales/dv‑MV.yml | 1 + _data/locales/el-GR.yml | 1 + _data/locales/en.yml | 1 + _data/locales/es-ES.yml | 1 + _data/locales/fa-IR.yml | 1 + _data/locales/fi-FI.yml | 1 + _data/locales/fr-FR.yml | 1 + _data/locales/hu-HU.yml | 1 + _data/locales/id-ID.yml | 1 + _data/locales/it-IT.yml | 1 + _data/locales/ja-JP.yml | 1 + _data/locales/ko-KR.yml | 1 + _data/locales/ku-IQ.yml | 1 + _data/locales/my-MM.yml | 1 + _data/locales/nl-NL.yml | 1 + _data/locales/ps‑AF.yml | 1 + _data/locales/pt-BR.yml | 1 + _data/locales/ru-RU.yml | 1 + _data/locales/sl-SI.yml | 1 + _data/locales/sv-SE.yml | 1 + _data/locales/th.yml | 1 + _data/locales/tr-TR.yml | 1 + _data/locales/uk-UA.yml | 1 + _data/locales/ur-PK.yml | 1 + _data/locales/vi-VN.yml | 1 + _data/locales/zh-CN.yml | 1 + _data/locales/zh-TW.yml | 1 + _includes/post-edit.html | 23 +++++++++++++++++++++++ _layouts/post.html | 25 +++++++++++++++---------- _sass/pages/_post.scss | 10 ++++++++++ 37 files changed, 91 insertions(+), 10 deletions(-) create mode 100644 _includes/post-edit.html diff --git a/_config.yml b/_config.yml index 09eb8f5ae..57a665a11 100644 --- a/_config.yml +++ b/_config.yml @@ -108,6 +108,16 @@ social_preview_image: # string, local or CORS resources # boolean type, the global switch for TOC in posts. toc: true +actions: + # Display "Edit this post" action on each post page to encourage contributions. + edit_post: + enabled: false # set to true to display the "Edit this post" action. + url: "" # repository base URL, e.g. https://github.com/cotes2020/jekyll-theme-chirpy/edit/master + # Use dynamic or static URL for the edit link. + # If `static_url` is false, the post's path will be appended to the `url` above as the final edit link. + # Set to true if the URL should remain unchanged, which means each post will share the same edit link. + static_url: false # [ true | false ] + comments: # Global switch for the post-comment system. Keeping it empty means disabled. provider: # [disqus | utterances | giscus] diff --git a/_data/locales/ar.yml b/_data/locales/ar.yml index a79e02009..78e6f9427 100644 --- a/_data/locales/ar.yml +++ b/_data/locales/ar.yml @@ -60,6 +60,7 @@ post: read_time: unit: دقيقة prompt: قراءة + edit: حرر هذا المنشور relate_posts: إقرأ المزيد share: شارك button: diff --git a/_data/locales/bg-BG.yml b/_data/locales/bg-BG.yml index 3fb060fda..5b50a3ee2 100644 --- a/_data/locales/bg-BG.yml +++ b/_data/locales/bg-BG.yml @@ -60,6 +60,7 @@ post: read_time: unit: мин prompt: четиво + edit: Редактирай тази публикация relate_posts: Още за четене share: Споделете button: diff --git a/_data/locales/ca-ES.yml b/_data/locales/ca-ES.yml index e3d5b39ce..7e68f451c 100644 --- a/_data/locales/ca-ES.yml +++ b/_data/locales/ca-ES.yml @@ -60,6 +60,7 @@ post: read_time: unit: min prompt: " de lectura" + edit: Edita aquesta entrada relate_posts: Entrades relacionades share: Compartir button: diff --git a/_data/locales/cs-CZ.yml b/_data/locales/cs-CZ.yml index cf93f614a..41b31d61f 100644 --- a/_data/locales/cs-CZ.yml +++ b/_data/locales/cs-CZ.yml @@ -60,6 +60,7 @@ post: read_time: unit: minut prompt: čtení + edit: Uprav tento příspěvek relate_posts: Další čtení share: Sdílet button: diff --git a/_data/locales/da-DK.yml b/_data/locales/da-DK.yml index 4b41fb389..3b841750c 100644 --- a/_data/locales/da-DK.yml +++ b/_data/locales/da-DK.yml @@ -60,6 +60,7 @@ post: read_time: unit: min prompt: læsetid + edit: Rediger dette opslag relate_posts: Læs videre share: Del button: diff --git a/_data/locales/de-DE.yml b/_data/locales/de-DE.yml index 6c9d91d46..8e26b617a 100644 --- a/_data/locales/de-DE.yml +++ b/_data/locales/de-DE.yml @@ -59,6 +59,7 @@ post: read_time: unit: Minuten prompt: Lesezeit + edit: Diesen Eintrag bearbeiten relate_posts: Weiterlesen share: Teilen button: diff --git a/_data/locales/dv‑MV.yml b/_data/locales/dv‑MV.yml index 680ca1f8b..a808fd611 100644 --- a/_data/locales/dv‑MV.yml +++ b/_data/locales/dv‑MV.yml @@ -60,6 +60,7 @@ post: read_time: unit: މިނެޓް prompt: އިސްކާރު + edit: މި ޕޯސްޓް އެޑިޓް ކުރު relate_posts: އެއްޗެހި ފަހުރަށްދަން share: ސެއާރް button: diff --git a/_data/locales/el-GR.yml b/_data/locales/el-GR.yml index b6d2a8663..48d25f743 100644 --- a/_data/locales/el-GR.yml +++ b/_data/locales/el-GR.yml @@ -60,6 +60,7 @@ post: read_time: unit: Λεπτά prompt: διαβάσματος + edit: Επεξεργασία αυτής της δημοσίευσης relate_posts: Περισσότερα share: Κοινοποιήστε button: diff --git a/_data/locales/en.yml b/_data/locales/en.yml index 152d090ac..d35362e02 100644 --- a/_data/locales/en.yml +++ b/_data/locales/en.yml @@ -60,6 +60,7 @@ post: read_time: unit: min prompt: read + edit: Edit this post relate_posts: Further Reading share: Share button: diff --git a/_data/locales/es-ES.yml b/_data/locales/es-ES.yml index 8f8d149ea..d989b5b51 100644 --- a/_data/locales/es-ES.yml +++ b/_data/locales/es-ES.yml @@ -60,6 +60,7 @@ post: read_time: unit: min prompt: " de lectura" + edit: Edita esta entrada relate_posts: Lecturas adicionales share: Compartir button: diff --git a/_data/locales/fa-IR.yml b/_data/locales/fa-IR.yml index 7a33deb12..0d990a8ee 100644 --- a/_data/locales/fa-IR.yml +++ b/_data/locales/fa-IR.yml @@ -60,6 +60,7 @@ post: read_time: unit: "دقیقه " prompt: " زمان مطالعه" + edit: ویرایش این پست relate_posts: بیشتر بخوانید share: اشتراک‌گذاری button: diff --git a/_data/locales/fi-FI.yml b/_data/locales/fi-FI.yml index 60c986205..b8b1c196f 100644 --- a/_data/locales/fi-FI.yml +++ b/_data/locales/fi-FI.yml @@ -59,6 +59,7 @@ post: read_time: unit: minuuttia prompt: lukea + edit: Muokkaa tätä julkaisua relate_posts: Jatka lukemista share: Jaa button: diff --git a/_data/locales/fr-FR.yml b/_data/locales/fr-FR.yml index dce83c9f4..c4884c3c9 100644 --- a/_data/locales/fr-FR.yml +++ b/_data/locales/fr-FR.yml @@ -60,6 +60,7 @@ post: read_time: unit: min prompt: lire + edit: Modifier cet article relate_posts: Autres lectures share: Partager button: diff --git a/_data/locales/hu-HU.yml b/_data/locales/hu-HU.yml index be3a31b7d..3c379f658 100644 --- a/_data/locales/hu-HU.yml +++ b/_data/locales/hu-HU.yml @@ -61,6 +61,7 @@ post: read_time: unit: perc prompt: elolvasni + edit: Szerkesztés relate_posts: További olvasnivaló share: Megosztás button: diff --git a/_data/locales/id-ID.yml b/_data/locales/id-ID.yml index d772ec34f..337e4c008 100644 --- a/_data/locales/id-ID.yml +++ b/_data/locales/id-ID.yml @@ -60,6 +60,7 @@ post: read_time: unit: menit prompt: baca + edit: Sunting entri ini relate_posts: Postingan Lainya share: Bagikan button: diff --git a/_data/locales/it-IT.yml b/_data/locales/it-IT.yml index c8dfb447c..e1137a996 100644 --- a/_data/locales/it-IT.yml +++ b/_data/locales/it-IT.yml @@ -59,6 +59,7 @@ post: read_time: unit: min prompt: lettura + edit: Modifica questo post relate_posts: Continua a leggere share: Condividi button: diff --git a/_data/locales/ja-JP.yml b/_data/locales/ja-JP.yml index 8e016b997..68891dcb1 100644 --- a/_data/locales/ja-JP.yml +++ b/_data/locales/ja-JP.yml @@ -60,6 +60,7 @@ post: read_time: unit: 分 prompt: で読めます + edit: この投稿を編集 relate_posts: さらに読む share: シェア button: diff --git a/_data/locales/ko-KR.yml b/_data/locales/ko-KR.yml index 82976349c..ed45a75c0 100644 --- a/_data/locales/ko-KR.yml +++ b/_data/locales/ko-KR.yml @@ -60,6 +60,7 @@ post: read_time: unit: 분 prompt: 읽는 시간 + edit: 이 글 편집 relate_posts: 관련된 글 share: 공유하기 button: diff --git a/_data/locales/ku-IQ.yml b/_data/locales/ku-IQ.yml index bcc53565f..61cd3cd21 100644 --- a/_data/locales/ku-IQ.yml +++ b/_data/locales/ku-IQ.yml @@ -60,6 +60,7 @@ post: read_time: unit: خولەک prompt: خوێندنەوە + edit: ئەم بابەتە دەستکاری بکە relate_posts: بابەتی پەیوەندیدار share: بڵاوکردنەوە button: diff --git a/_data/locales/my-MM.yml b/_data/locales/my-MM.yml index d5bf728f9..5559aea0a 100644 --- a/_data/locales/my-MM.yml +++ b/_data/locales/my-MM.yml @@ -60,6 +60,7 @@ post: read_time: unit: မိနစ် prompt: ဖတ်ပါမည် + edit: ဤပို့စ်ကို တည်းဖြတ်ပါ relate_posts: နောက်ထပ်ဖတ်ရန် share: မျှဝေရန် button: diff --git a/_data/locales/nl-NL.yml b/_data/locales/nl-NL.yml index d7e8016d0..691fb75c7 100644 --- a/_data/locales/nl-NL.yml +++ b/_data/locales/nl-NL.yml @@ -59,6 +59,7 @@ post: read_time: unit: min prompt: lees + edit: Bewerk dit bericht relate_posts: Verder Lezen share: Deel button: diff --git a/_data/locales/ps‑AF.yml b/_data/locales/ps‑AF.yml index fca687723..fa2c19246 100644 --- a/_data/locales/ps‑AF.yml +++ b/_data/locales/ps‑AF.yml @@ -60,6 +60,7 @@ post: read_time: unit: دقیقې prompt: لوستل + edit: دغه لیکنه سمول relate_posts: نوره لوستنه share: شریکول button: diff --git a/_data/locales/pt-BR.yml b/_data/locales/pt-BR.yml index 7ca60a74b..22de99ae6 100644 --- a/_data/locales/pt-BR.yml +++ b/_data/locales/pt-BR.yml @@ -60,6 +60,7 @@ post: read_time: unit: min prompt: " de leitura" + edit: Editar esta postagem relate_posts: Leia também share: Compartilhar button: diff --git a/_data/locales/ru-RU.yml b/_data/locales/ru-RU.yml index 868ba9578..de9e0165b 100644 --- a/_data/locales/ru-RU.yml +++ b/_data/locales/ru-RU.yml @@ -59,6 +59,7 @@ post: read_time: unit: мин. prompt: чтения + edit: Редактировать этот пост relate_posts: Похожие посты share: Поделиться button: diff --git a/_data/locales/sl-SI.yml b/_data/locales/sl-SI.yml index 4d9434d44..9b3ea4696 100644 --- a/_data/locales/sl-SI.yml +++ b/_data/locales/sl-SI.yml @@ -60,6 +60,7 @@ post: read_time: unit: min prompt: beri #read + edit: Uredi to objavo #Edit this post relate_posts: Nadaljnje branje #Further Reading share: Deli #Share button: diff --git a/_data/locales/sv-SE.yml b/_data/locales/sv-SE.yml index decb59cf3..77e6fe6b8 100644 --- a/_data/locales/sv-SE.yml +++ b/_data/locales/sv-SE.yml @@ -60,6 +60,7 @@ post: read_time: unit: min prompt: läsning + edit: Redigera detta inlägg relate_posts: Mer läsning share: Dela button: diff --git a/_data/locales/th.yml b/_data/locales/th.yml index a3f41a0e1..c9560fc86 100644 --- a/_data/locales/th.yml +++ b/_data/locales/th.yml @@ -60,6 +60,7 @@ post: read_time: unit: นาที prompt: อ่าน + edit: แก้ไขโพสต์นี้ relate_posts: อ่านต่อ share: แชร์ button: diff --git a/_data/locales/tr-TR.yml b/_data/locales/tr-TR.yml index 768f57cd1..4a08722e3 100644 --- a/_data/locales/tr-TR.yml +++ b/_data/locales/tr-TR.yml @@ -60,6 +60,7 @@ post: read_time: unit: dakikada prompt: okunabilir + edit: Bu gönderiyi düzenle relate_posts: Benzer Gönderiler share: Paylaş button: diff --git a/_data/locales/uk-UA.yml b/_data/locales/uk-UA.yml index 8fef52e85..f337187d6 100644 --- a/_data/locales/uk-UA.yml +++ b/_data/locales/uk-UA.yml @@ -60,6 +60,7 @@ post: read_time: unit: хвилин prompt: читання + edit: Редагувати цей пост relate_posts: Вас також може зацікавити share: Поділитися button: diff --git a/_data/locales/ur-PK.yml b/_data/locales/ur-PK.yml index e5184df17..081bc2086 100644 --- a/_data/locales/ur-PK.yml +++ b/_data/locales/ur-PK.yml @@ -60,6 +60,7 @@ post: read_time: unit: منٹ prompt: پڑھیں + edit: اس تحریر میں ترمیم کریں relate_posts: مزید مطالعہ share: شیئر button: diff --git a/_data/locales/vi-VN.yml b/_data/locales/vi-VN.yml index 6c2ceffde..48b767e8b 100644 --- a/_data/locales/vi-VN.yml +++ b/_data/locales/vi-VN.yml @@ -59,6 +59,7 @@ post: read_time: unit: phút prompt: đọc + edit: Chỉnh sửa bài viết này relate_posts: Bài viết liên quan share: Chia sẻ button: diff --git a/_data/locales/zh-CN.yml b/_data/locales/zh-CN.yml index 5c1341018..9a3b2fb67 100644 --- a/_data/locales/zh-CN.yml +++ b/_data/locales/zh-CN.yml @@ -59,6 +59,7 @@ post: read_time: unit: 分钟 prompt: 阅读 + edit: 编辑此文 relate_posts: 相关文章 share: 分享 button: diff --git a/_data/locales/zh-TW.yml b/_data/locales/zh-TW.yml index 33a4330bb..ad4ea6898 100644 --- a/_data/locales/zh-TW.yml +++ b/_data/locales/zh-TW.yml @@ -59,6 +59,7 @@ post: read_time: unit: 分鐘 prompt: 閱讀 + edit: 編輯此文 relate_posts: 相關文章 share: 分享 button: diff --git a/_includes/post-edit.html b/_includes/post-edit.html new file mode 100644 index 000000000..a97890e19 --- /dev/null +++ b/_includes/post-edit.html @@ -0,0 +1,23 @@ + + +{% assign enabled = site.actions.edit_post.enabled %} +{% assign url = site.actions.edit_post.url %} +{% assign static_url = site.actions.edit_post.static_url %} + +{% unless static_url %} + {% assign url = url | append: '/' | append: page.path %} +{% endunless %} + +{% if enabled %} +
+ {% assign edit = site.data.locales[include.lang].post.edit %} + + + {{ edit }} + +
+{% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index 698c86cf6..3f26c724c 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -126,16 +126,21 @@ script_includes:
- - {% if page.categories.size > 0 %} - - {% endif %} +
+ + {% if page.categories.size > 0 %} + + {% endif %} + + + {% include post-edit.html lang=lang %} +
{% if page.tags.size > 0 %} diff --git a/_sass/pages/_post.scss b/_sass/pages/_post.scss index 5ba78d977..31f7a8e2f 100644 --- a/_sass/pages/_post.scss +++ b/_sass/pages/_post.scss @@ -148,6 +148,16 @@ header { } } +.post-edit { + line-height: 1.2rem; + + > a { + &:hover { + @extend %link-hover; + } + } +} + .post-navigation { @include bp.lt(bp.get(lg)) { @include mx.pl-pr(0); From 2cfb4bba8801d46bcc86cf7f21ab1d4d3c1a47c1 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 15 May 2026 15:01:34 +0800 Subject: [PATCH 05/18] chore: update github issue template --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 7b513fb58..6d64e468a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -53,7 +53,7 @@ body: value: | - Ruby: - Jekyll: - - Chirpy: + - Chirpy: validations: required: true From 1344e9024621a7ed9f1282d23b3d19502bc4041a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 15 May 2026 15:17:06 +0800 Subject: [PATCH 06/18] docs: update readme --- README.md | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index f17f52253..b5ef1a7d7 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ A minimal, responsive, and feature-rich Jekyll theme for technical writing. - [![CI](https://img.shields.io/github/actions/workflow/status/cotes2020/jekyll-theme-chirpy/ci.yml?logo=github)][ci]  - [![Codacy Badge](https://img.shields.io/codacy/grade/4e556876a3c54d5e8f2d2857c4f43894?logo=codacy)][codacy]  - [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy?color=goldenrod)][license]  - [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?&logo=RubyGems&logoColor=ghostwhite&label=gem&color=orange)][gem]  - [![Open in Dev Containers](https://img.shields.io/badge/Dev_Containers-Open-deepskyblue?logo=linuxcontainers)][open-container] + [![CI][badge-ci]][ci]  + [![Codacy Badge][badge-codacy]][codacy]  + [![GitHub license][badge-license]][license]  + [![Gem Version][badge-gem]][gem]  + [![Open in Dev Containers][badge-open-container]][open-container] [**Live Demo** →][demo] @@ -45,28 +45,23 @@ For details, please refer to our [Contributing Guidelines][contribute-guide]. ## Credits -### Contributors +This project is built on the [Jekyll][jekyllrb] ecosystem and integrates a +collection of [excellent libraries][lib]. Its avatar and favicon are sourced +from [ClipartMAX][clipartmax]. -Thanks to [all the contributors][contributors] involved in the development of -the project! +Furthermore, thanks to everyone who contributed to the development of this project! -[![all-contributors](https://contrib.rocks/image?repo=cotes2020/jekyll-theme-chirpy&columns=16&max=112)][contributors] - — Made with [contrib.rocks](https://contrib.rocks) - -### Third-Party Assets - -This project is built on the [Jekyll][jekyllrb] ecosystem and integrates several -[great libraries][lib]. It is developed using [VS Code][vscode] and tools -provided by [JetBrains][jetbrains] under a non-commercial open-source software -license. - -The avatar and favicon for the project's website are sourced from -[ClipartMAX][clipartmax]. +[![all-contributors][contributors-avatar]][contributors] ## License -This project is published under the [MIT License][license]. +This project is licensed under the [MIT License][license]. +[badge-ci]: https://img.shields.io/github/actions/workflow/status/cotes2020/jekyll-theme-chirpy/ci.yml?logo=github +[badge-codacy]: https://img.shields.io/codacy/grade/4e556876a3c54d5e8f2d2857c4f43894?logo=codacy +[badge-license]: https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy?color=goldenrod +[badge-gem]: https://img.shields.io/gem/v/jekyll-theme-chirpy?&logo=RubyGems&logoColor=ghostwhite&label=gem&color=orange +[badge-open-container]: https://img.shields.io/badge/Dev_Containers-Open-deepskyblue?logo=linuxcontainers [gem]: https://rubygems.org/gems/jekyll-theme-chirpy [ci]: https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster [codacy]: https://app.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade @@ -78,6 +73,5 @@ This project is published under the [MIT License][license]. [wiki]: https://github.com/cotes2020/jekyll-theme-chirpy/wiki [contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md [contributors]: https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors +[contributors-avatar]: https://contrib.rocks/image?repo=cotes2020/jekyll-theme-chirpy&columns=16&max=112 [lib]: https://github.com/cotes2020/chirpy-static-assets -[vscode]: https://code.visualstudio.com/ -[jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy From 97a537e692e5c61b0ccbb0da66433399c4521110 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 15 May 2026 15:22:19 +0800 Subject: [PATCH 07/18] chore(deps): bump mathjax from 3.2.2 to 4.x --- _data/origin/cors.yml | 2 +- _includes/js-selector.html | 1 - _sass/base/_base.scss | 5 +++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_data/origin/cors.yml b/_data/origin/cors.yml index 8e0c0ba85..0f1cf18b1 100644 --- a/_data/origin/cors.yml +++ b/_data/origin/cors.yml @@ -51,4 +51,4 @@ clipboard: js: https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js mathjax: - js: https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-chtml.js + js: https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js diff --git a/_includes/js-selector.html b/_includes/js-selector.html index 5a80532f8..cdd60e7dc 100644 --- a/_includes/js-selector.html +++ b/_includes/js-selector.html @@ -67,7 +67,6 @@ {% if page.math %} - {% endif %} diff --git a/_sass/base/_base.scss b/_sass/base/_base.scss index b512a484c..80c84827e 100644 --- a/_sass/base/_base.scss +++ b/_sass/base/_base.scss @@ -391,8 +391,9 @@ main { /* MathJax */ mjx-container { - overflow-y: hidden; - min-width: auto !important; + a { + display: inline-block; + } } @media (hover: hover) { From 832b24729d17da0dbe26bf237993df633594c0c6 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 15 May 2026 15:38:08 +0800 Subject: [PATCH 08/18] refactor(deps): update CDN URLs to follow production best practices (#2740) --- _data/origin/cors.yml | 28 ++++++++++++++-------------- _includes/head.html | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/_data/origin/cors.yml b/_data/origin/cors.yml index 0f1cf18b1..e40cc357d 100644 --- a/_data/origin/cors.yml +++ b/_data/origin/cors.yml @@ -20,35 +20,35 @@ webfonts: https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Sour # Libraries toc: - css: https://cdn.jsdelivr.net/npm/tocbot@4.36.4/dist/tocbot.min.css - js: https://cdn.jsdelivr.net/npm/tocbot@4.36.4/dist/tocbot.min.js + css: https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.css + js: https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js fontawesome: - css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.2.0/css/all.min.css + css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7/css/all.min.css search: - js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js + js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1/dest/simple-jekyll-search.min.js mermaid: - js: https://cdn.jsdelivr.net/npm/mermaid@11.13.0/dist/mermaid.min.js + js: https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js dayjs: js: - common: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/dayjs.min.js - locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/locale/:LOCALE.js - relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/plugin/relativeTime.js - localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/plugin/localizedFormat.js + common: https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js + locale: https://cdn.jsdelivr.net/npm/dayjs@1/locale/:LOCALE.js + relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js + localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1/plugin/localizedFormat.js glightbox: - css: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/css/glightbox.min.css - js: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/js/glightbox.min.js + css: https://cdn.jsdelivr.net/npm/glightbox@3/dist/css/glightbox.min.css + js: https://cdn.jsdelivr.net/npm/glightbox@3/dist/js/glightbox.min.js lazy-polyfill: - css: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.min.css - js: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.umd.min.js + css: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2/dist/loading-attribute-polyfill.min.css + js: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2/dist/loading-attribute-polyfill.umd.min.js clipboard: - js: https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js + js: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js mathjax: js: https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js diff --git a/_includes/head.html b/_includes/head.html index 3ad52fd9b..82f101525 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -83,7 +83,7 @@ {% unless jekyll.environment == 'production' %} - + {% endunless %} From fb3aa94c1f2b2ed99e863e9b7440dcbf8a15614d Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 16 May 2026 14:37:04 +0800 Subject: [PATCH 09/18] chore: remove funding --- .github/FUNDING.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index fed8764eb..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -ko_fi: coteschung From 38232120b729de653bfb42909a8dad047559438d Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 16 May 2026 14:39:58 +0800 Subject: [PATCH 10/18] fix(pwa): avoid iOS status bar overlapping PWA content (#2173) Fixes #2173 --- _includes/head.html | 2 -- assets/img/favicons/site.webmanifest | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 82f101525..048904c47 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,8 +2,6 @@ - - Date: Sat, 23 May 2026 23:00:48 +0800 Subject: [PATCH 11/18] fix(giscus): synchronize theme state during lazy loading (#2742) Previously, theme switch events were lost if triggered before the Giscus iframe was fully loaded (e.g., when deferred by lazy loading or before the client script executed). This resulted in Giscus rendering with the outdated initial theme once it finally appeared in the viewport. This commit handles these edge cases by: 1. Updating the `data-theme` attribute on the Giscus script node if the iframe hasn't been created yet. 2. Modifying the `theme` query parameter in the iframe's `src` URL if it is currently in a pending/lazy-loading state. --- _includes/comments/giscus.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/_includes/comments/giscus.html b/_includes/comments/giscus.html index 805847202..2d5f7e7bf 100644 --- a/_includes/comments/giscus.html +++ b/_includes/comments/giscus.html @@ -39,16 +39,25 @@ addEventListener('message', (event) => { if (event.source === window && event.data && event.data.id === Theme.ID) { const newTheme = themeMapper[Theme.visualState]; - const message = { setConfig: { theme: newTheme } }; - const giscus = - document.getElementsByClassName('giscus-frame')[0].contentWindow; - giscus.postMessage({ giscus: message }, 'https://giscus.app'); + const iframe = document.querySelector('.giscus-frame'); + + if (!iframe) { + return; + } + + if (iframe.classList.contains('giscus-frame--loading')) { + let url = new URL(iframe.src); + url.searchParams.set('theme', newTheme); + iframe.src = url.toString(); + } + + iframe.contentWindow.postMessage({ giscus: message }, 'https://giscus.app'); } }); })(); From 7496dd41fa053c4636a82027fe3fb3e38357e385 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 17 Jun 2026 23:20:12 +0800 Subject: [PATCH 12/18] feat(theme): persist user theme preferences (#2756) - Migrate theme persistence from `sessionStorage` to `localStorage` - Rename theme HTML attribute to `data-bs-theme` for Bootstrap compatibility - Trim and compile CSS according to the chosen theme mode --- _data/locales/ar.yml | 5 + _data/locales/bg-BG.yml | 5 + _data/locales/ca-ES.yml | 5 + _data/locales/cs-CZ.yml | 5 + _data/locales/da-DK.yml | 5 + _data/locales/de-DE.yml | 5 + _data/locales/dv‑MV.yml | 5 + _data/locales/el-GR.yml | 5 + _data/locales/en.yml | 5 + _data/locales/es-ES.yml | 5 + _data/locales/fa-IR.yml | 5 + _data/locales/fi-FI.yml | 5 + _data/locales/fr-FR.yml | 5 + _data/locales/hu-HU.yml | 5 + _data/locales/id-ID.yml | 5 + _data/locales/it-IT.yml | 5 + _data/locales/ja-JP.yml | 5 + _data/locales/ko-KR.yml | 5 + _data/locales/ku-IQ.yml | 5 + _data/locales/my-MM.yml | 5 + _data/locales/nl-NL.yml | 5 + _data/locales/ps‑AF.yml | 5 + _data/locales/pt-BR.yml | 5 + _data/locales/ru-RU.yml | 5 + _data/locales/sl-SI.yml | 5 + _data/locales/sv-SE.yml | 5 + _data/locales/th.yml | 5 + _data/locales/tr-TR.yml | 5 + _data/locales/uk-UA.yml | 5 + _data/locales/ur-PK.yml | 5 + _data/locales/vi-VN.yml | 5 + _data/locales/zh-CN.yml | 5 + _data/locales/zh-TW.yml | 5 + _data/origin/cors.yml | 3 + _includes/comments/disqus.html | 4 +- _includes/comments/giscus.html | 9 +- _includes/comments/utterances.html | 8 +- _includes/head.html | 2 +- _includes/sidebar.html | 52 ++++- _javascript/modules/components/img-popup.js | 10 +- _javascript/modules/components/mermaid.js | 14 +- _javascript/modules/components/mode-toggle.js | 41 +++- _javascript/theme.js | 196 ++++++++++-------- _layouts/default.html | 11 +- _sass/abstracts/_mixins.scss | 6 + _sass/abstracts/_variables.scss | 6 + _sass/base/_base.scss | 43 ++-- _sass/layout/_sidebar.scss | 102 ++++++++- _sass/themes/_dark.scss | 9 +- _sass/themes/_light.scss | 9 +- assets/css/jekyll-theme-chirpy.scss | 4 + 51 files changed, 541 insertions(+), 153 deletions(-) diff --git a/_data/locales/ar.yml b/_data/locales/ar.yml index 78e6f9427..7a10aa151 100644 --- a/_data/locales/ar.yml +++ b/_data/locales/ar.yml @@ -49,6 +49,11 @@ notification: update_found: يتوفر اصدار جديد للمحتوى. update: تحديث +theme: + light: فاتح + dark: داكن + system: النظام + # ----- Posts related labels ----- post: diff --git a/_data/locales/bg-BG.yml b/_data/locales/bg-BG.yml index 5b50a3ee2..1c8ab32e9 100644 --- a/_data/locales/bg-BG.yml +++ b/_data/locales/bg-BG.yml @@ -49,6 +49,11 @@ notification: update_found: Налична е нова версия на съдържанието. update: Обнови +theme: + light: Светла + dark: Тъмна + system: Системна + # ----- Posts related labels ----- post: diff --git a/_data/locales/ca-ES.yml b/_data/locales/ca-ES.yml index 7e68f451c..ea0ea130b 100644 --- a/_data/locales/ca-ES.yml +++ b/_data/locales/ca-ES.yml @@ -49,6 +49,11 @@ notification: update_found: Hi ha una nova versió de contingut disponible. update: Actualitzar +theme: + light: Clar + dark: Fosc + system: Sistema + # ----- Posts related labels ----- post: diff --git a/_data/locales/cs-CZ.yml b/_data/locales/cs-CZ.yml index 41b31d61f..a2689efdd 100644 --- a/_data/locales/cs-CZ.yml +++ b/_data/locales/cs-CZ.yml @@ -49,6 +49,11 @@ notification: update_found: Je k dispozici nová verze obsahu. update: Aktualizace +theme: + light: Světlý + dark: Tmavý + system: Systém + # ----- Posts related labels ----- post: diff --git a/_data/locales/da-DK.yml b/_data/locales/da-DK.yml index 3b841750c..73c350343 100644 --- a/_data/locales/da-DK.yml +++ b/_data/locales/da-DK.yml @@ -49,6 +49,11 @@ notification: update_found: En ny version af indholdet er fundet! update: Opdater +theme: + light: Lys + dark: Mørk + system: System + # ----- Posts related labels ----- post: diff --git a/_data/locales/de-DE.yml b/_data/locales/de-DE.yml index 8e26b617a..fe5940b0f 100644 --- a/_data/locales/de-DE.yml +++ b/_data/locales/de-DE.yml @@ -48,6 +48,11 @@ notification: update_found: Eine neue Version ist verfügbar. update: Neue Version +theme: + light: Hell + dark: Dunkel + system: System + # ----- Posts related labels ----- post: diff --git a/_data/locales/dv‑MV.yml b/_data/locales/dv‑MV.yml index a808fd611..a0158c852 100644 --- a/_data/locales/dv‑MV.yml +++ b/_data/locales/dv‑MV.yml @@ -49,6 +49,11 @@ notification: update_found: ޔޫ ވާރޝަން ހުރިހާ. update: އޮޕްޑޭޓް +theme: + light: އަލި + dark: އަނދިރި + system: ސިސްޓަމް + # ----- Posts related labels ----- post: diff --git a/_data/locales/el-GR.yml b/_data/locales/el-GR.yml index 48d25f743..5df549e97 100644 --- a/_data/locales/el-GR.yml +++ b/_data/locales/el-GR.yml @@ -49,6 +49,11 @@ notification: update_found: Υπάρχει διαθέσιμη μια νέα έκδοση του περιεχομένου. update: Ενημέρωση +theme: + light: Φωτεινό + dark: Σκοτεινό + system: Σύστημα + # ----- Posts related labels ----- post: diff --git a/_data/locales/en.yml b/_data/locales/en.yml index d35362e02..e453b121b 100644 --- a/_data/locales/en.yml +++ b/_data/locales/en.yml @@ -49,6 +49,11 @@ notification: update_found: A new version of content is available. update: Update +theme: + light: Light + dark: Dark + system: System + # ----- Posts related labels ----- post: diff --git a/_data/locales/es-ES.yml b/_data/locales/es-ES.yml index d989b5b51..a8390c372 100644 --- a/_data/locales/es-ES.yml +++ b/_data/locales/es-ES.yml @@ -49,6 +49,11 @@ notification: update_found: Hay una nueva versión de contenido disponible. update: Actualizar +theme: + light: Claro + dark: Oscuro + system: Sistema + # ----- Posts related labels ----- post: diff --git a/_data/locales/fa-IR.yml b/_data/locales/fa-IR.yml index 0d990a8ee..6cc27cd02 100644 --- a/_data/locales/fa-IR.yml +++ b/_data/locales/fa-IR.yml @@ -49,6 +49,11 @@ notification: update_found: نسخه جدیدی از محتوا موجود است. update: به‌روزرسانی +theme: + light: روشن + dark: تیره + system: سیستم + # ----- Posts related labels ----- post: diff --git a/_data/locales/fi-FI.yml b/_data/locales/fi-FI.yml index b8b1c196f..889ac7215 100644 --- a/_data/locales/fi-FI.yml +++ b/_data/locales/fi-FI.yml @@ -48,6 +48,11 @@ notification: update_found: Uusi versio sisällöstä on saatavilla. update: Päivitä +theme: + light: Vaalea + dark: Tumma + system: Järjestelmä + # ----- Posts related labels ----- post: diff --git a/_data/locales/fr-FR.yml b/_data/locales/fr-FR.yml index c4884c3c9..2925a7412 100644 --- a/_data/locales/fr-FR.yml +++ b/_data/locales/fr-FR.yml @@ -49,6 +49,11 @@ notification: update_found: Une nouvelle version du contenu est disponible. update: Mise à jour +theme: + light: Clair + dark: Sombre + system: Système + # ----- Posts related labels ----- post: diff --git a/_data/locales/hu-HU.yml b/_data/locales/hu-HU.yml index 3c379f658..a14756b78 100644 --- a/_data/locales/hu-HU.yml +++ b/_data/locales/hu-HU.yml @@ -50,6 +50,11 @@ notification: update_found: Elérhető a tartalom új verziója. update: Frissítés +theme: + light: Világos + dark: Sötét + system: Rendszer + # ----- Posts related labels ----- post: diff --git a/_data/locales/id-ID.yml b/_data/locales/id-ID.yml index 337e4c008..0f1bb2f9e 100644 --- a/_data/locales/id-ID.yml +++ b/_data/locales/id-ID.yml @@ -49,6 +49,11 @@ notification: update_found: Versi konten baru tersedia. update: Perbarui +theme: + light: Terang + dark: Gelap + system: Sistem + # ----- Posts related labels ----- post: diff --git a/_data/locales/it-IT.yml b/_data/locales/it-IT.yml index e1137a996..671ff1ca5 100644 --- a/_data/locales/it-IT.yml +++ b/_data/locales/it-IT.yml @@ -48,6 +48,11 @@ notification: update_found: Nuova versione del contenuto disponibile. update: Aggiornamento +theme: + light: Chiaro + dark: Scuro + system: Sistema + # ----- Posts related labels ----- post: diff --git a/_data/locales/ja-JP.yml b/_data/locales/ja-JP.yml index 68891dcb1..c271e3326 100644 --- a/_data/locales/ja-JP.yml +++ b/_data/locales/ja-JP.yml @@ -49,6 +49,11 @@ notification: update_found: 新しいバージョンが利用可能です。 update: 更新 +theme: + light: ライト + dark: ダーク + system: システム + # ----- Posts related labels ----- post: diff --git a/_data/locales/ko-KR.yml b/_data/locales/ko-KR.yml index ed45a75c0..48af8bc27 100644 --- a/_data/locales/ko-KR.yml +++ b/_data/locales/ko-KR.yml @@ -49,6 +49,11 @@ notification: update_found: 새 버전의 콘텐츠를 사용할 수 있습니다. update: 업데이트 +theme: + light: 라이트 + dark: 다크 + system: 시스템 + # ----- Posts related labels ----- post: diff --git a/_data/locales/ku-IQ.yml b/_data/locales/ku-IQ.yml index 61cd3cd21..1d809b81e 100644 --- a/_data/locales/ku-IQ.yml +++ b/_data/locales/ku-IQ.yml @@ -49,6 +49,11 @@ notification: update_found: وەشانێکی نوێی ناوەڕۆک بەردەستە. update: نوێکردنەوە +theme: + light: ڕووناک + dark: تاریک + system: سیستەم + # ----- Posts related labels ----- post: diff --git a/_data/locales/my-MM.yml b/_data/locales/my-MM.yml index 5559aea0a..e497636ba 100644 --- a/_data/locales/my-MM.yml +++ b/_data/locales/my-MM.yml @@ -49,6 +49,11 @@ notification: update_found: အကြောင်းအရာဗားရှင်းအသစ်ကို ရနိုင်ပါပြီ။ update: အပ်ဒိတ် +theme: + light: အလင်း + dark: အမှောင် + system: စနစ် + # ----- Posts related labels ----- post: diff --git a/_data/locales/nl-NL.yml b/_data/locales/nl-NL.yml index 691fb75c7..e39281b49 100644 --- a/_data/locales/nl-NL.yml +++ b/_data/locales/nl-NL.yml @@ -49,6 +49,11 @@ notification: update_found: Nieuwe versie van inhoud beschikbaar. update: Update +theme: + light: Licht + dark: Donker + system: Systeem + # ----- Posts related labels ----- post: written_by: Door diff --git a/_data/locales/ps‑AF.yml b/_data/locales/ps‑AF.yml index fa2c19246..0ea9ac23f 100644 --- a/_data/locales/ps‑AF.yml +++ b/_data/locales/ps‑AF.yml @@ -49,6 +49,11 @@ notification: update_found: نوې نسخه شتون لري. update: تازه +theme: + light: روښانه + dark: تیاره + system: سیستم + # ----- Posts related labels ----- post: diff --git a/_data/locales/pt-BR.yml b/_data/locales/pt-BR.yml index 22de99ae6..ec7fb35b9 100644 --- a/_data/locales/pt-BR.yml +++ b/_data/locales/pt-BR.yml @@ -49,6 +49,11 @@ notification: update_found: Uma nova versão do conteúdo está disponível. update: atualização +theme: + light: Claro + dark: Escuro + system: Sistema + # ----- Posts related labels ----- post: diff --git a/_data/locales/ru-RU.yml b/_data/locales/ru-RU.yml index de9e0165b..8842bb813 100644 --- a/_data/locales/ru-RU.yml +++ b/_data/locales/ru-RU.yml @@ -48,6 +48,11 @@ notification: update_found: Доступна новая версия контента. update: Обновить +theme: + light: Светлая + dark: Темная + system: Системная + # ----- Posts related labels ----- post: diff --git a/_data/locales/sl-SI.yml b/_data/locales/sl-SI.yml index 9b3ea4696..61a932897 100644 --- a/_data/locales/sl-SI.yml +++ b/_data/locales/sl-SI.yml @@ -49,6 +49,11 @@ notification: update_found: Novejša različica vsebine je na voljo. #A new version of content is available. update: Posodobi #Update +theme: + light: Svetla + dark: Temna + system: Sistemska + # ----- Posts related labels ----- post: diff --git a/_data/locales/sv-SE.yml b/_data/locales/sv-SE.yml index 77e6fe6b8..5882a8b4f 100644 --- a/_data/locales/sv-SE.yml +++ b/_data/locales/sv-SE.yml @@ -49,6 +49,11 @@ notification: update_found: Det finns en ny version av innehållet. update: Uppdatera sidan +theme: + light: Ljust + dark: Mörkt + system: System + # ----- Posts related labels ----- post: diff --git a/_data/locales/th.yml b/_data/locales/th.yml index c9560fc86..6b54739ae 100644 --- a/_data/locales/th.yml +++ b/_data/locales/th.yml @@ -49,6 +49,11 @@ notification: update_found: มีเวอร์ชันใหม่ของเนื้อหา update: อัปเดต +theme: + light: สว่าง + dark: มืด + system: ระบบ + # ----- Posts related labels ----- post: diff --git a/_data/locales/tr-TR.yml b/_data/locales/tr-TR.yml index 4a08722e3..bb9ac9946 100644 --- a/_data/locales/tr-TR.yml +++ b/_data/locales/tr-TR.yml @@ -49,6 +49,11 @@ notification: update_found: İçeriğin yeni bir sürümü mevcut. update: Güncelle +theme: + light: Açık + dark: Koyu + system: Sistem + # ----- Posts related labels ----- post: diff --git a/_data/locales/uk-UA.yml b/_data/locales/uk-UA.yml index f337187d6..e2cbbff40 100644 --- a/_data/locales/uk-UA.yml +++ b/_data/locales/uk-UA.yml @@ -49,6 +49,11 @@ notification: update_found: Доступна нова версія вмісту. update: Оновлення +theme: + light: Світла + dark: Темна + system: Системна + # ----- Posts related labels ----- post: diff --git a/_data/locales/ur-PK.yml b/_data/locales/ur-PK.yml index 081bc2086..e25522076 100644 --- a/_data/locales/ur-PK.yml +++ b/_data/locales/ur-PK.yml @@ -49,6 +49,11 @@ notification: update_found: نیا مواد دستیاب ہے۔ update: اپ ڈیٹ +theme: + light: روشن + dark: تاریک + system: سسٹم + # ----- Posts related labels ----- post: diff --git a/_data/locales/vi-VN.yml b/_data/locales/vi-VN.yml index 48b767e8b..b82ec50f1 100644 --- a/_data/locales/vi-VN.yml +++ b/_data/locales/vi-VN.yml @@ -48,6 +48,11 @@ notification: update_found: Đã có phiên bản mới của nội dung. update: Cập nhật +theme: + light: Sáng + dark: Tối + system: Hệ thống + # ----- Posts related labels ----- post: diff --git a/_data/locales/zh-CN.yml b/_data/locales/zh-CN.yml index 9a3b2fb67..8cbfe1fac 100644 --- a/_data/locales/zh-CN.yml +++ b/_data/locales/zh-CN.yml @@ -48,6 +48,11 @@ notification: update_found: 发现新版本的内容。 update: 更新 +theme: + light: 浅色 + dark: 深色 + system: 跟随系统 + # ----- Posts related labels ----- post: diff --git a/_data/locales/zh-TW.yml b/_data/locales/zh-TW.yml index ad4ea6898..7afeb420a 100644 --- a/_data/locales/zh-TW.yml +++ b/_data/locales/zh-TW.yml @@ -48,6 +48,11 @@ notification: update_found: 發現新版本更新。 update: 更新 +theme: + light: 淺色 + dark: 深色 + system: 跟隨系統 + # ----- Posts related labels ----- post: diff --git a/_data/origin/cors.yml b/_data/origin/cors.yml index e40cc357d..719d8fbe4 100644 --- a/_data/origin/cors.yml +++ b/_data/origin/cors.yml @@ -19,6 +19,9 @@ webfonts: https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Sour # Libraries +bootstrap: + css: https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css + toc: css: https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.css js: https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js diff --git a/_includes/comments/disqus.html b/_includes/comments/disqus.html index fd12a3c72..0fb676606 100644 --- a/_includes/comments/disqus.html +++ b/_includes/comments/disqus.html @@ -19,7 +19,7 @@ {%- comment -%} Auto switch theme {%- endcomment -%} function reloadDisqus(event) { - if (event.source === window && event.data && event.data.id === Theme.ID) { + if (event.source === window && event.data && event.data.id === Theme.eventId) { {%- comment -%} Disqus hasn't been loaded {%- endcomment -%} if (typeof DISQUS === 'undefined') { return; @@ -33,7 +33,7 @@ addDisqus(); - if (Theme.switchable) { + if (Theme.isToggleable) { addEventListener('message', reloadDisqus); } diff --git a/_includes/comments/giscus.html b/_includes/comments/giscus.html index 2d5f7e7bf..ddaf64706 100644 --- a/_includes/comments/giscus.html +++ b/_includes/comments/giscus.html @@ -1,8 +1,8 @@