jekyll-theme-chirpy 7.0.1 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -5
  3. data/_data/locales/ar.yml +1 -1
  4. data/_data/locales/bg-BG.yml +1 -1
  5. data/_data/locales/cs-CZ.yml +1 -1
  6. data/_data/locales/de-DE.yml +2 -2
  7. data/_data/locales/el-GR.yml +1 -1
  8. data/_data/locales/en.yml +1 -1
  9. data/_data/locales/es-ES.yml +1 -1
  10. data/_data/locales/fi-FI.yml +1 -1
  11. data/_data/locales/fr-FR.yml +1 -1
  12. data/_data/locales/hu-HU.yml +1 -1
  13. data/_data/locales/id-ID.yml +1 -1
  14. data/_data/locales/it-IT.yml +1 -1
  15. data/_data/locales/ko-KR.yml +1 -1
  16. data/_data/locales/my-MM.yml +1 -1
  17. data/_data/locales/pt-BR.yml +1 -1
  18. data/_data/locales/ru-RU.yml +2 -2
  19. data/_data/locales/sl-SI.yml +1 -1
  20. data/_data/locales/sv-SE.yml +1 -1
  21. data/_data/locales/th.yml +1 -1
  22. data/_data/locales/tr-TR.yml +1 -1
  23. data/_data/locales/uk-UA.yml +1 -1
  24. data/_data/locales/vi-VN.yml +1 -1
  25. data/_data/locales/zh-CN.yml +1 -1
  26. data/_data/locales/zh-TW.yml +1 -1
  27. data/_data/origin/basic.yml +3 -3
  28. data/_data/origin/cors.yml +8 -8
  29. data/_includes/analytics/fathom.html +7 -0
  30. data/_includes/comments/giscus.html +7 -1
  31. data/_includes/js-selector.html +3 -4
  32. data/_sass/addon/commons.scss +32 -22
  33. data/_sass/addon/module.scss +7 -14
  34. data/_sass/addon/syntax.scss +5 -5
  35. data/_sass/addon/variables.scss +2 -1
  36. data/_sass/colors/syntax-dark.scss +1 -1
  37. data/_sass/colors/syntax-light.scss +1 -5
  38. data/_sass/colors/typography-dark.scss +7 -7
  39. data/_sass/colors/typography-light.scss +9 -9
  40. data/_sass/layout/categories.scss +1 -1
  41. data/_sass/layout/home.scss +2 -2
  42. data/_sass/layout/post.scss +2 -2
  43. data/assets/404.html +1 -1
  44. data/assets/js/data/swconf.js +18 -8
  45. data/assets/js/dist/app.min.js +5 -2
  46. data/assets/js/dist/categories.min.js +2 -2
  47. data/assets/js/dist/commons.min.js +2 -2
  48. data/assets/js/dist/home.min.js +2 -2
  49. data/assets/js/dist/misc.min.js +2 -2
  50. data/assets/js/dist/page.min.js +2 -2
  51. data/assets/js/dist/post.min.js +2 -2
  52. data/assets/js/dist/sw.min.js +4 -2
  53. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f83cc59375f7c9f129d54ba64314e08fd9273a23b575082c3d01f1d06a7b9092
4
- data.tar.gz: fa6fbc01460cc9c6e904211a252e6fdf8d8f86946726775ca25de9ffd56deade
3
+ metadata.gz: 2ff815d5dbeba09f4ae176a5431e6e151f061cc1f39a389f7ff979eb71ca44b9
4
+ data.tar.gz: 32a350e7854e34edd6e95096fcc7a2bda4303fc8d82e7045d384a90d9b9c14ce
5
5
  SHA512:
6
- metadata.gz: d8bcbb054832e147d319758c7c008c216fecfdcb24a2e98b2198d56adcc3f440f2fb67ccade0d9bb483eb9f15e9ad2b7a278acbffa4ec6c796f00323d29d9ad8
7
- data.tar.gz: acb5630ae598c372086fc637e6ae039eb8d796fa3492e990b41b6a4e0b1231a78f6e2f28a6d559c9ce2a2b8b4f42b785f17d42f7b92beb7205782e28ad3496ec
6
+ metadata.gz: fb461ad55b3cff7e3f17c0ea386c06fdb63f9b7f8473f0989be21bdeb9149435d93ef4074f6e6039c70eb271fdecc8d16103626c66933dd9a43f78da5618b63b
7
+ data.tar.gz: 4fa6ab293ba18f21a4a206a7e0ef497a3578acfe640c270a1ef972a2974ff6ae034c97e7314c4006a76632bdb68af0a94144753386bf9eb8c71924f6b649bf69
data/README.md CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  A minimal, responsive, and feature-rich Jekyll theme for technical writing.
8
8
 
9
- [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)][gem] 
10
- [![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg?branch=master&event=push)][ci] 
11
- [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)][codacy] 
12
- [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)][license] 
13
- [![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
9
+ [![CI](https://img.shields.io/github/actions/workflow/status/cotes2020/jekyll-theme-chirpy/ci.yml?logo=github)][ci] 
10
+ [![Codacy Badge](https://img.shields.io/codacy/grade/4e556876a3c54d5e8f2d2857c4f43894?logo=codacy)][codacy] 
11
+ [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy?color=goldenrod)][license] 
12
+ [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?&logo=RubyGems&logoColor=ghostwhite&label=gem&color=orange)][gem] 
13
+ [![Open in Dev Containers](https://img.shields.io/badge/Dev_Containers-Open-deepskyblue?logo=linuxcontainers)][open-container]
14
14
 
15
15
  [**Live Demo** →][demo]
16
16
 
@@ -72,6 +72,7 @@ This project is published under [MIT License][license].
72
72
  [ci]: https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster
73
73
  [codacy]: https://app.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
74
74
  [license]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE
75
+ [open-container]: https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/cotes2020/jekyll-theme-chirpy
75
76
  [jekyllrb]: https://jekyllrb.com/
76
77
  [clipartmax]: https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/
77
78
  [demo]: https://cotes2020.github.io/chirpy-demo/
data/_data/locales/ar.yml CHANGED
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: باستخدام :PLATFORM السمة :THEME
44
44
 
45
45
  not_found:
46
- statment: عذرا, الرابط التالي غير صالح أو انه يشير إلى صفحة غير موجودة.
46
+ statement: عذرا, الرابط التالي غير صالح أو انه يشير إلى صفحة غير موجودة.
47
47
 
48
48
  notification:
49
49
  update_found: يتوفر اصدار جديد للمحتوى.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Създадено чрез :PLATFORM и :THEME тема
44
44
 
45
45
  not_found:
46
- statment: Съжалявам, но на този URL адрес няма налично съдържание.
46
+ statement: Съжалявам, но на този URL адрес няма налично съдържание.
47
47
 
48
48
  notification:
49
49
  update_found: Налична е нова версия на съдържанието.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Použití :PLATFORM s motivem :THEME
44
44
 
45
45
  not_found:
46
- statment: Omlouváme se, adresu URL jsme špatně umístili nebo odkazuje na něco, co neexistuje.
46
+ statement: Omlouváme se, adresu URL jsme špatně umístili nebo odkazuje na něco, co neexistuje.
47
47
 
48
48
  notification:
49
49
  update_found: Je k dispozici nová verze obsahu.
@@ -42,7 +42,7 @@ copyright:
42
42
  meta: Powered by :PLATFORM with :THEME theme
43
43
 
44
44
  not_found:
45
- statment: Entschuldigung, dieser Link verweist auf keine vorhandene Ressource.
45
+ statement: Entschuldigung, dieser Link verweist auf keine vorhandene Ressource.
46
46
 
47
47
  notification:
48
48
  update_found: Eine neue Version ist verfügbar.
@@ -76,7 +76,7 @@ df:
76
76
  post:
77
77
  strftime: "%d.%m.%Y"
78
78
  dayjs: "DD.MM.YYYY"
79
-
79
+
80
80
  # categories page
81
81
  categories:
82
82
  category_measure:
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Αξιοποιώντας την :PLATFORM theme :THEME
44
44
 
45
45
  not_found:
46
- statment: Συγνώμη, έχουμε τοποθετήσει λάθος αυτήν την διεύθυνση URL ή υποδεικνύει κάτι που δεν υπάρχει.
46
+ statement: Συγνώμη, έχουμε τοποθετήσει λάθος αυτήν την διεύθυνση URL ή υποδεικνύει κάτι που δεν υπάρχει.
47
47
 
48
48
  notification:
49
49
  update_found: Υπάρχει διαθέσιμη μια νέα έκδοση του περιεχομένου.
data/_data/locales/en.yml CHANGED
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Using the :THEME theme for :PLATFORM.
44
44
 
45
45
  not_found:
46
- statment: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
46
+ statement: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
47
47
 
48
48
  notification:
49
49
  update_found: A new version of content is available.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Hecho con :PLATFORM usando el tema :THEME
44
44
 
45
45
  not_found:
46
- statment: Lo sentimos, hemos perdido esa URL o apunta a algo que no existe.
46
+ statement: Lo sentimos, hemos perdido esa URL o apunta a algo que no existe.
47
47
 
48
48
  notification:
49
49
  update_found: Hay una nueva versión de contenido disponible.
@@ -42,7 +42,7 @@ copyright:
42
42
  meta: Käytetään :PLATFORM iä Teema :THEME
43
43
 
44
44
  not_found:
45
- statment: Valitettavasti tällä URL-osoitteella ei ole saatavilla sisältöä.
45
+ statement: Valitettavasti tällä URL-osoitteella ei ole saatavilla sisältöä.
46
46
 
47
47
  notification:
48
48
  update_found: Uusi versio sisällöstä on saatavilla.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Propulsé par :PLATFORM avec le thème :THEME
44
44
 
45
45
  not_found:
46
- statment: Désolé, nous avons égaré cette URL ou elle pointe vers quelque chose qui n'existe pas.
46
+ statement: Désolé, nous avons égaré cette URL ou elle pointe vers quelque chose qui n'existe pas.
47
47
 
48
48
  notification:
49
49
  update_found: Une nouvelle version du contenu est disponible.
@@ -45,7 +45,7 @@ copyright:
45
45
  meta: Készítve :PLATFORM motorral :THEME témával
46
46
 
47
47
  not_found:
48
- statment: Sajnáljuk, az URL-t rosszul helyeztük el, vagy valami nem létezőre mutat.
48
+ statement: Sajnáljuk, az URL-t rosszul helyeztük el, vagy valami nem létezőre mutat.
49
49
 
50
50
  notification:
51
51
  update_found: Elérhető a tartalom új verziója.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Didukung oleh :PLATFORM dengan tema :THEME
44
44
 
45
45
  not_found:
46
- statment: Maaf, kami gagal menemukan URL itu atau memang mengarah ke sesuatu yang tidak ada.
46
+ statement: Maaf, kami gagal menemukan URL itu atau memang mengarah ke sesuatu yang tidak ada.
47
47
 
48
48
  notification:
49
49
  update_found: Versi konten baru tersedia.
@@ -42,7 +42,7 @@ copyright:
42
42
 
43
43
  meta: Servizio offerto da :PLATFORM con tema :THEME
44
44
  not_found:
45
- statment: Ci scusiamo, non è stato possibile trovare l'URL in questione. Potrebbe puntare ad una pagina non esistente.
45
+ statement: Ci scusiamo, non è stato possibile trovare l'URL in questione. Potrebbe puntare ad una pagina non esistente.
46
46
 
47
47
  notification:
48
48
  update_found: Nuova versione del contenuto disponibile.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Powered by :PLATFORM with :THEME theme
44
44
 
45
45
  not_found:
46
- statment: 해당 URL은 존재하지 않습니다.
46
+ statement: 해당 URL은 존재하지 않습니다.
47
47
 
48
48
  notification:
49
49
  update_found: 새 버전의 콘텐츠를 사용할 수 있습니다.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Powered by :PLATFORM with :THEME theme
44
44
 
45
45
  not_found:
46
- statment: ဝမ်းနည်းပါသည်၊ ကျွန်ုပ်တို့သည် အဆိုပါ URL ကို မှားယွင်းစွာ နေရာချထားခြင်း သို့မဟုတ် ၎င်းသည် မရှိသောအရာကို ညွှန်ပြနေပါသည်။
46
+ statement: ဝမ်းနည်းပါသည်၊ ကျွန်ုပ်တို့သည် အဆိုပါ URL ကို မှားယွင်းစွာ နေရာချထားခြင်း သို့မဟုတ် ၎င်းသည် မရှိသောအရာကို ညွှန်ပြနေပါသည်။
47
47
 
48
48
  notification:
49
49
  update_found: အကြောင်းအရာဗားရှင်းအသစ်ကို ရနိုင်ပါပြီ။
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Feito com :PLATFORM usando o tema :THEME
44
44
 
45
45
  not_found:
46
- statment: Desculpe, a página não foi encontrada.
46
+ statement: Desculpe, a página não foi encontrada.
47
47
 
48
48
  notification:
49
49
  update_found: Uma nova versão do conteúdo está disponível.
@@ -42,7 +42,7 @@ copyright:
42
42
  meta: Использует тему :THEME для :PLATFORM
43
43
 
44
44
  not_found:
45
- statment: Извините, мы перепутали URL-адрес или он указывает на что-то несуществующее.
45
+ statement: Извините, мы перепутали URL-адрес или он указывает на что-то несуществующее.
46
46
 
47
47
  notification:
48
48
  update_found: Доступна новая версия контента.
@@ -76,7 +76,7 @@ df:
76
76
  post:
77
77
  strftime: "%d.%m.%Y"
78
78
  dayjs: "DD.MM.YYYY"
79
-
79
+
80
80
  # categories page
81
81
  categories:
82
82
  category_measure:
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Uporabljena :PLATFORM tema :THEME #Using the :PLATFORM theme :THEME
44
44
 
45
45
  not_found:
46
- statment: Oprostite, hiperpovezava je neustrezna ali vsebina ne obstajata. #Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
46
+ statement: Oprostite, hiperpovezava je neustrezna ali vsebina ne obstajata. #Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
47
47
 
48
48
  notification:
49
49
  update_found: Novejša različica vsebine je na voljo. #A new version of content is available.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Byggd med :PLATFORM och temat :THEME
44
44
 
45
45
  not_found:
46
- statment: Ursäkta, vi har tappat bort den här webbadressen eller så pekar den på något som inte längre finns.
46
+ statement: Ursäkta, vi har tappat bort den här webbadressen eller så pekar den på något som inte längre finns.
47
47
 
48
48
  notification:
49
49
  update_found: Det finns en ny version av innehållet.
data/_data/locales/th.yml CHANGED
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: กำลังใช้ธีมของ :PLATFORM ชื่อ :THEME
44
44
 
45
45
  not_found:
46
- statment: ขออภัย เราวาง URL นั้นไว้ผิดที่ หรือมันชี้ไปยังสิ่งที่ไม่มีอยู่
46
+ statement: ขออภัย เราวาง URL นั้นไว้ผิดที่ หรือมันชี้ไปยังสิ่งที่ไม่มีอยู่
47
47
 
48
48
  notification:
49
49
  update_found: มีเวอร์ชันใหม่ของเนื้อหา
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: :PLATFORM ve :THEME teması
44
44
 
45
45
  not_found:
46
- statment: Üzgünüz, bu linki yanlış yerleştirdik veya var olmayan bir şeye işaret ediyor.
46
+ statement: Üzgünüz, bu linki yanlış yerleştirdik veya var olmayan bir şeye işaret ediyor.
47
47
 
48
48
  notification:
49
49
  update_found: İçeriğin yeni bir sürümü mevcut.
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Powered by :PLATFORM with :THEME theme
44
44
 
45
45
  not_found:
46
- statment: Вибачте, це посилання вказує на ресурс, що не існує.
46
+ statement: Вибачте, це посилання вказує на ресурс, що не існує.
47
47
 
48
48
  notification:
49
49
  update_found: Доступна нова версія вмісту.
@@ -42,7 +42,7 @@ copyright:
42
42
  meta: Trang web này được tạo bởi :PLATFORM với chủ đề :THEME
43
43
 
44
44
  not_found:
45
- statment: Xin lỗi, chúng tôi đã đặt nhầm URL hoặc đường dẫn trỏ đến một trang nào đó không tồn tại.
45
+ statement: Xin lỗi, chúng tôi đã đặt nhầm URL hoặc đường dẫn trỏ đến một trang nào đó không tồn tại.
46
46
 
47
47
  notification:
48
48
  update_found: Đã có phiên bản mới của nội dung.
@@ -42,7 +42,7 @@ copyright:
42
42
  meta: 本站采用 :PLATFORM 主题 :THEME
43
43
 
44
44
  not_found:
45
- statment: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。
45
+ statement: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。
46
46
 
47
47
  notification:
48
48
  update_found: 发现新版本的内容。
@@ -42,7 +42,7 @@ copyright:
42
42
  meta: 本網站使用 :PLATFORM 產生,採用 :THEME 主題
43
43
 
44
44
  not_found:
45
- statment: 抱歉,您可能正在存取一個已被移動的 URL,或者它從未存在。
45
+ statement: 抱歉,您可能正在存取一個已被移動的 URL,或者它從未存在。
46
46
 
47
47
  notification:
48
48
  update_found: 發現新版本更新。
@@ -20,9 +20,9 @@ mermaid:
20
20
  dayjs:
21
21
  js:
22
22
  common: /assets/lib/dayjs/dayjs.min.js
23
- locale: /assets/lib/dayjs/locale/en.min.js
24
- relativeTime: /assets/lib/dayjs/plugin/relativeTime.min.js
25
- localizedFormat: /assets/lib/dayjs/plugin/localizedFormat.min.js
23
+ locale: /assets/lib/dayjs/locale/en.js
24
+ relativeTime: /assets/lib/dayjs/plugin/relativeTime.js
25
+ localizedFormat: /assets/lib/dayjs/plugin/localizedFormat.js
26
26
 
27
27
  glightbox:
28
28
  css: /assets/lib/glightbox/glightbox.min.css
@@ -20,24 +20,24 @@ webfonts: https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Sour
20
20
  # Libraries
21
21
 
22
22
  toc:
23
- css: https://cdn.jsdelivr.net/npm/tocbot@4.27.20/dist/tocbot.min.css
24
- js: https://cdn.jsdelivr.net/npm/tocbot@4.27.20/dist/tocbot.min.js
23
+ css: https://cdn.jsdelivr.net/npm/tocbot@4.29.0/dist/tocbot.min.css
24
+ js: https://cdn.jsdelivr.net/npm/tocbot@4.29.0/dist/tocbot.min.js
25
25
 
26
26
  fontawesome:
27
- css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css
27
+ css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/all.min.css
28
28
 
29
29
  search:
30
30
  js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js
31
31
 
32
32
  mermaid:
33
- js: https://cdn.jsdelivr.net/npm/mermaid@10.9.0/dist/mermaid.min.js
33
+ js: https://cdn.jsdelivr.net/npm/mermaid@11.0.2/dist/mermaid.min.js
34
34
 
35
35
  dayjs:
36
36
  js:
37
- common: https://cdn.jsdelivr.net/npm/dayjs@1.11.11/dayjs.min.js
38
- locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.11/locale/:LOCALE.min.js
39
- relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.11/plugin/relativeTime.min.js
40
- localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.11/plugin/localizedFormat.min.js
37
+ common: https://cdn.jsdelivr.net/npm/dayjs@1.11.13/dayjs.min.js
38
+ locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.13/locale/:LOCALE.js
39
+ relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.13/plugin/relativeTime.js
40
+ localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.13/plugin/localizedFormat.js
41
41
 
42
42
  glightbox:
43
43
  css: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/css/glightbox.min.css
@@ -0,0 +1,7 @@
1
+ <!-- Fathom -->
2
+ <script
3
+ src="https://cdn.usefathom.com/script.js"
4
+ data-site="{{ site.analytics.fathom.id }}"
5
+ defer>
6
+ </script>
7
+ <!-- End Fathom Code -->
@@ -17,6 +17,12 @@
17
17
  initTheme = darkTheme;
18
18
  }
19
19
 
20
+ let lang = '{{ site.comments.giscus.lang | default: lang }}';
21
+ {%- comment -%} https://github.com/giscus/giscus/tree/main/locales {%- endcomment -%}
22
+ if (lang.length > 2 && !lang.startsWith('zh')) {
23
+ lang = lang.slice(0, 2);
24
+ }
25
+
20
26
  let giscusAttributes = {
21
27
  src: 'https://giscus.app/client.js',
22
28
  'data-repo': '{{ site.comments.giscus.repo}}',
@@ -29,7 +35,7 @@
29
35
  'data-emit-metadata': '0',
30
36
  'data-theme': initTheme,
31
37
  'data-input-position': '{{ site.comments.giscus.input_position | default: 'bottom' }}',
32
- 'data-lang': '{{ site.comments.giscus.lang | default: lang }}',
38
+ 'data-lang': lang,
33
39
  'data-loading': 'lazy',
34
40
  crossorigin: 'anonymous',
35
41
  async: ''
@@ -6,8 +6,6 @@
6
6
 
7
7
  <!-- layout specified -->
8
8
 
9
- {% assign js_dist = '/assets/js/dist/' %}
10
-
11
9
  {% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %}
12
10
  {% assign urls = urls | append: ',' | append: site.data.origin[type]['lazy-polyfill'].js %}
13
11
 
@@ -62,7 +60,8 @@
62
60
  {% assign js = 'commons' %}
63
61
  {% endcase %}
64
62
 
65
- {% capture script %}{{ js_dist }}{{ js }}.min.js{% endcapture %}
63
+ {% capture script %}/assets/js/dist/{{ js }}.min.js{% endcapture %}
64
+
66
65
  <script src="{{ script | relative_url }}"></script>
67
66
 
68
67
  {% if page.math %}
@@ -93,7 +92,7 @@
93
92
  {% if jekyll.environment == 'production' %}
94
93
  <!-- PWA -->
95
94
  {% if site.pwa.enabled %}
96
- <script defer src="{{ 'app.min.js' | prepend: js_dist | relative_url }}"></script>
95
+ <script defer src="{{ 'app.min.js' | relative_url }}"></script>
97
96
  {% endif %}
98
97
 
99
98
  <!-- Web Analytics -->
@@ -1,6 +1,8 @@
1
1
  /* The common styles */
2
2
 
3
3
  html {
4
+ font-size: 16px;
5
+
4
6
  @media (prefers-color-scheme: light) {
5
7
  &:not([data-mode]),
6
8
  &[data-mode='light'] {
@@ -22,8 +24,6 @@ html {
22
24
  @include light-scheme;
23
25
  }
24
26
  }
25
-
26
- font-size: 16px;
27
27
  }
28
28
 
29
29
  body {
@@ -42,20 +42,29 @@ body {
42
42
  @extend %heading;
43
43
 
44
44
  @if $i > 1 {
45
- @extend %section;
46
45
  @extend %anchor;
47
46
  }
48
47
 
49
48
  @if $i < 5 {
50
- $factor: 0.18rem;
49
+ $size-factor: 0.25rem;
51
50
 
52
- @if $i == 1 {
53
- $factor: 0.23rem;
51
+ @if $i > 1 {
52
+ $size-factor: 0.18rem;
53
+
54
+ main & {
55
+ @if $i == 2 {
56
+ margin: 2.5rem 0 1.25rem;
57
+ } @else {
58
+ margin: 2rem 0 1rem;
59
+ }
60
+ }
54
61
  }
55
62
 
56
- font-size: 1rem + (5 - $i) * $factor;
63
+ & {
64
+ font-size: 1rem + (5 - $i) * $size-factor;
65
+ }
57
66
  } @else {
58
- font-size: 1rem;
67
+ font-size: 1.05rem;
59
68
  }
60
69
  }
61
70
  }
@@ -80,9 +89,10 @@ img {
80
89
  }
81
90
 
82
91
  blockquote {
83
- border-left: 5px solid var(--blockquote-border-color);
92
+ border-left: 0.125rem solid var(--blockquote-border-color);
84
93
  padding-left: 1rem;
85
94
  color: var(--blockquote-text-color);
95
+ margin-top: 0.5rem;
86
96
 
87
97
  > p:last-child {
88
98
  margin-bottom: 0;
@@ -107,14 +117,14 @@ blockquote {
107
117
  }
108
118
  }
109
119
 
110
- @include prompt('tip', '\f0eb', 'regular');
111
- @include prompt('info', '\f06a');
120
+ @include prompt('tip', '\f0eb', $fa-style: 'regular');
121
+ @include prompt('info', '\f06a', $rotate: 180);
112
122
  @include prompt('warning', '\f06a');
113
123
  @include prompt('danger', '\f071');
114
124
  }
115
125
 
116
126
  kbd {
117
- font-family: inherit;
127
+ font-family: Lato, sans-serif;
118
128
  display: inline-block;
119
129
  vertical-align: middle;
120
130
  line-height: 1.3rem;
@@ -124,7 +134,7 @@ kbd {
124
134
  padding-top: 0.1rem;
125
135
  color: var(--kbd-text-color);
126
136
  background-color: var(--kbd-bg-color);
127
- border-radius: 0.25rem;
137
+ border-radius: $radius-sm;
128
138
  border: solid 1px var(--kbd-wrap-color);
129
139
  box-shadow: inset 0 -2px 0 var(--kbd-wrap-color);
130
140
  }
@@ -218,13 +228,13 @@ i {
218
228
 
219
229
  #access-lastmod {
220
230
  a {
231
+ color: inherit;
232
+
221
233
  &:hover {
222
234
  @extend %link-hover;
223
235
  }
224
236
 
225
237
  @extend %no-bottom-border;
226
-
227
- color: inherit;
228
238
  }
229
239
  }
230
240
 
@@ -682,15 +692,15 @@ $btn-mb: 0.5rem;
682
692
  background: var(--sidebar-bg);
683
693
  border-right: 1px solid var(--sidebar-border-color);
684
694
 
695
+ /* Hide scrollbar for IE, Edge and Firefox */
696
+ -ms-overflow-style: none; /* IE and Edge */
697
+ scrollbar-width: none; /* Firefox */
698
+
685
699
  /* Hide scrollbar for Chrome, Safari and Opera */
686
700
  &::-webkit-scrollbar {
687
701
  display: none;
688
702
  }
689
703
 
690
- /* Hide scrollbar for IE, Edge and Firefox */
691
- -ms-overflow-style: none; /* IE and Edge */
692
- scrollbar-width: none; /* Firefox */
693
-
694
704
  %sidebar-link-hover {
695
705
  &:hover {
696
706
  color: var(--sidebar-active-color);
@@ -1036,6 +1046,9 @@ search {
1036
1046
  padding-bottom: 3rem;
1037
1047
 
1038
1048
  a {
1049
+ font-size: 1.4rem;
1050
+ line-height: 2.5rem;
1051
+
1039
1052
  &:hover {
1040
1053
  @extend %link-hover;
1041
1054
  }
@@ -1043,9 +1056,6 @@ search {
1043
1056
  @extend %link-color;
1044
1057
  @extend %no-bottom-border;
1045
1058
  @extend %heading;
1046
-
1047
- font-size: 1.4rem;
1048
- line-height: 2.5rem;
1049
1059
  }
1050
1060
 
1051
1061
  > article {
@@ -10,17 +10,6 @@
10
10
  font-family: $font-family-heading;
11
11
  }
12
12
 
13
- %section {
14
- main & {
15
- margin-top: 2.5rem;
16
- margin-bottom: 1.25rem;
17
-
18
- &:focus {
19
- outline: none; /* avoid outline in Safari */
20
- }
21
- }
22
- }
23
-
24
13
  %anchor {
25
14
  .anchor {
26
15
  font-size: 80%;
@@ -92,7 +81,7 @@
92
81
  }
93
82
 
94
83
  %rounded {
95
- border-radius: $base-radius;
84
+ border-radius: $radius-lg;
96
85
  }
97
86
 
98
87
  %img-caption {
@@ -123,7 +112,7 @@
123
112
  }
124
113
 
125
114
  %text-highlight {
126
- color: var(--text-muted-hightlight-color);
115
+ color: var(--text-muted-highlight-color);
127
116
  font-weight: 600;
128
117
  }
129
118
 
@@ -187,7 +176,7 @@
187
176
  transform: translateX(-50%);
188
177
  }
189
178
 
190
- @mixin prompt($type, $fa-content, $fa-style: 'solid') {
179
+ @mixin prompt($type, $fa-content, $fa-style: 'solid', $rotate: 0) {
191
180
  &.prompt-#{$type} {
192
181
  background-color: var(--prompt-#{$type}-bg);
193
182
 
@@ -195,6 +184,10 @@
195
184
  content: $fa-content;
196
185
  color: var(--prompt-#{$type}-icon-color);
197
186
  font: var(--fa-font-#{$fa-style});
187
+
188
+ @if $rotate != 0 {
189
+ transform: rotate(#{$rotate}deg);
190
+ }
198
191
  }
199
192
  }
200
193
  }
@@ -50,13 +50,13 @@ html {
50
50
  @extend %rounded;
51
51
  @extend %code-snippet-bg;
52
52
 
53
+ overflow: auto;
54
+ padding-bottom: 0.75rem;
55
+
53
56
  @at-root figure#{&} {
54
57
  @extend %code-snippet-bg;
55
58
  }
56
59
 
57
- overflow: auto;
58
- padding-bottom: 0.75rem;
59
-
60
60
  pre {
61
61
  margin-bottom: 0;
62
62
  font-size: $code-font-size;
@@ -104,7 +104,7 @@ code {
104
104
  font-size: $code-font-size;
105
105
  padding: 3px 5px;
106
106
  word-break: break-word;
107
- border-radius: 4px;
107
+ border-radius: $radius-sm;
108
108
  background-color: var(--inline-code-bg);
109
109
  }
110
110
 
@@ -261,7 +261,7 @@ div {
261
261
  .content > & {
262
262
  @include ml-mr(0);
263
263
 
264
- border-radius: $base-radius;
264
+ border-radius: $radius-lg;
265
265
  }
266
266
 
267
267
  .code-header {
@@ -16,7 +16,8 @@ $search-max-width: 200px !default;
16
16
  $footer-height: 5rem !default;
17
17
  $footer-height-large: 6rem !default; /* screen width: < 850px */
18
18
  $main-content-max-width: 1250px !default;
19
- $base-radius: 0.625rem !default;
19
+ $radius-sm: 6px !default;
20
+ $radius-lg: 10px !default;
20
21
  $back2top-size: 2.75rem !default;
21
22
 
22
23
  /* syntax highlight */