1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-06-21 23:38:39 +00:00

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
This commit is contained in:
Cotes Chung
2026-06-17 23:20:12 +08:00
committed by GitHub
parent ceb2a41463
commit 7496dd41fa
51 changed files with 541 additions and 153 deletions
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: يتوفر اصدار جديد للمحتوى.
update: تحديث
theme:
light: فاتح
dark: داكن
system: النظام
# ----- Posts related labels -----
post:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: Налична е нова версия на съдържанието.
update: Обнови
theme:
light: Светла
dark: Тъмна
system: Системна
# ----- Posts related labels -----
post:
+5
View File
@@ -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:
+5
View File
@@ -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:
+5
View File
@@ -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:
+5
View File
@@ -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:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: ޔޫ ވާރޝަން ހުރިހާ.
update: އޮޕްޑޭޓް
theme:
light: އަލި
dark: އަނދިރި
system: ސިސްޓަމް
# ----- Posts related labels -----
post:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: Υπάρχει διαθέσιμη μια νέα έκδοση του περιεχομένου.
update: Ενημέρωση
theme:
light: Φωτεινό
dark: Σκοτεινό
system: Σύστημα
# ----- Posts related labels -----
post:
+5
View File
@@ -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:
+5
View File
@@ -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:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: نسخه جدیدی از محتوا موجود است.
update: به‌روزرسانی
theme:
light: روشن
dark: تیره
system: سیستم
# ----- Posts related labels -----
post:
+5
View File
@@ -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:
+5
View File
@@ -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:
+5
View File
@@ -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:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: Versi konten baru tersedia.
update: Perbarui
theme:
light: Terang
dark: Gelap
system: Sistem
# ----- Posts related labels -----
post:
+5
View File
@@ -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:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: 新しいバージョンが利用可能です。
update: 更新
theme:
light: ライト
dark: ダーク
system: システム
# ----- Posts related labels -----
post:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: 새 버전의 콘텐츠를 사용할 수 있습니다.
update: 업데이트
theme:
light: 라이트
dark: 다크
system: 시스템
# ----- Posts related labels -----
post:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: وەشانێکی نوێی ناوەڕۆک بەردەستە.
update: نوێکردنەوە
theme:
light: ڕووناک
dark: تاریک
system: سیستەم
# ----- Posts related labels -----
post:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: အကြောင်းအရာဗားရှင်းအသစ်ကို ရနိုင်ပါပြီ။
update: အပ်ဒိတ်
theme:
light: အလင်း
dark: အမှောင်
system: စနစ်
# ----- Posts related labels -----
post:
+5
View File
@@ -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
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: نوې نسخه شتون لري.
update: تازه
theme:
light: روښانه
dark: تیاره
system: سیستم
# ----- Posts related labels -----
post:
+5
View File
@@ -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:
+5
View File
@@ -48,6 +48,11 @@ notification:
update_found: Доступна новая версия контента.
update: Обновить
theme:
light: Светлая
dark: Темная
system: Системная
# ----- Posts related labels -----
post:
+5
View File
@@ -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:
+5
View File
@@ -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:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: มีเวอร์ชันใหม่ของเนื้อหา
update: อัปเดต
theme:
light: สว่าง
dark: มืด
system: ระบบ
# ----- Posts related labels -----
post:
+5
View File
@@ -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:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: Доступна нова версія вмісту.
update: Оновлення
theme:
light: Світла
dark: Темна
system: Системна
# ----- Posts related labels -----
post:
+5
View File
@@ -49,6 +49,11 @@ notification:
update_found: نیا مواد دستیاب ہے۔
update: اپ ڈیٹ
theme:
light: روشن
dark: تاریک
system: سسٹم
# ----- Posts related labels -----
post:
+5
View File
@@ -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:
+5
View File
@@ -48,6 +48,11 @@ notification:
update_found: 发现新版本的内容。
update: 更新
theme:
light: 浅色
dark: 深色
system: 跟随系统
# ----- Posts related labels -----
post:
+5
View File
@@ -48,6 +48,11 @@ notification:
update_found: 發現新版本更新。
update: 更新
theme:
light: 淺色
dark: 深色
system: 跟隨系統
# ----- Posts related labels -----
post: