jekyll-theme-chirpy 7.0.1 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/_data/locales/ar.yml +1 -1
- data/_data/locales/bg-BG.yml +1 -1
- data/_data/locales/cs-CZ.yml +1 -1
- data/_data/locales/de-DE.yml +2 -2
- data/_data/locales/el-GR.yml +1 -1
- data/_data/locales/en.yml +1 -1
- data/_data/locales/es-ES.yml +1 -1
- data/_data/locales/fi-FI.yml +1 -1
- data/_data/locales/fr-FR.yml +1 -1
- data/_data/locales/hu-HU.yml +1 -1
- data/_data/locales/id-ID.yml +1 -1
- data/_data/locales/it-IT.yml +1 -1
- data/_data/locales/ko-KR.yml +1 -1
- data/_data/locales/my-MM.yml +1 -1
- data/_data/locales/pt-BR.yml +1 -1
- data/_data/locales/ru-RU.yml +2 -2
- data/_data/locales/sl-SI.yml +1 -1
- data/_data/locales/sv-SE.yml +1 -1
- data/_data/locales/th.yml +1 -1
- data/_data/locales/tr-TR.yml +1 -1
- data/_data/locales/uk-UA.yml +1 -1
- data/_data/locales/vi-VN.yml +1 -1
- data/_data/locales/zh-CN.yml +1 -1
- data/_data/locales/zh-TW.yml +1 -1
- data/_data/origin/basic.yml +3 -3
- data/_data/origin/cors.yml +8 -8
- data/_includes/analytics/fathom.html +7 -0
- data/_includes/comments/giscus.html +7 -1
- data/_includes/js-selector.html +3 -4
- data/_sass/addon/commons.scss +32 -22
- data/_sass/addon/module.scss +7 -14
- data/_sass/addon/syntax.scss +5 -5
- data/_sass/addon/variables.scss +2 -1
- data/_sass/colors/syntax-dark.scss +1 -1
- data/_sass/colors/syntax-light.scss +1 -5
- data/_sass/colors/typography-dark.scss +7 -7
- data/_sass/colors/typography-light.scss +9 -9
- data/_sass/layout/categories.scss +1 -1
- data/_sass/layout/home.scss +2 -2
- data/_sass/layout/post.scss +2 -2
- data/assets/404.html +1 -1
- data/assets/js/data/swconf.js +18 -8
- data/assets/js/dist/app.min.js +5 -2
- data/assets/js/dist/categories.min.js +2 -2
- data/assets/js/dist/commons.min.js +2 -2
- data/assets/js/dist/home.min.js +2 -2
- data/assets/js/dist/misc.min.js +2 -2
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/sw.min.js +4 -2
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ff815d5dbeba09f4ae176a5431e6e151f061cc1f39a389f7ff979eb71ca44b9
|
|
4
|
+
data.tar.gz: 32a350e7854e34edd6e95096fcc7a2bda4303fc8d82e7045d384a90d9b9c14ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
[][ci]
|
|
10
|
+
[][codacy]
|
|
11
|
+
[][license]
|
|
12
|
+
[][gem]
|
|
13
|
+
[][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
|
-
|
|
46
|
+
statement: عذرا, الرابط التالي غير صالح أو انه يشير إلى صفحة غير موجودة.
|
|
47
47
|
|
|
48
48
|
notification:
|
|
49
49
|
update_found: يتوفر اصدار جديد للمحتوى.
|
data/_data/locales/bg-BG.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Създадено чрез :PLATFORM и :THEME тема
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
46
|
+
statement: Съжалявам, но на този URL адрес няма налично съдържание.
|
|
47
47
|
|
|
48
48
|
notification:
|
|
49
49
|
update_found: Налична е нова версия на съдържанието.
|
data/_data/locales/cs-CZ.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Použití :PLATFORM s motivem :THEME
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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.
|
data/_data/locales/de-DE.yml
CHANGED
|
@@ -42,7 +42,7 @@ copyright:
|
|
|
42
42
|
meta: Powered by :PLATFORM with :THEME theme
|
|
43
43
|
|
|
44
44
|
not_found:
|
|
45
|
-
|
|
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:
|
data/_data/locales/el-GR.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Αξιοποιώντας την :PLATFORM theme :THEME
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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
|
-
|
|
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.
|
data/_data/locales/es-ES.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Hecho con :PLATFORM usando el tema :THEME
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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.
|
data/_data/locales/fi-FI.yml
CHANGED
|
@@ -42,7 +42,7 @@ copyright:
|
|
|
42
42
|
meta: Käytetään :PLATFORM iä Teema :THEME
|
|
43
43
|
|
|
44
44
|
not_found:
|
|
45
|
-
|
|
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.
|
data/_data/locales/fr-FR.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Propulsé par :PLATFORM avec le thème :THEME
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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.
|
data/_data/locales/hu-HU.yml
CHANGED
|
@@ -45,7 +45,7 @@ copyright:
|
|
|
45
45
|
meta: Készítve :PLATFORM motorral :THEME témával
|
|
46
46
|
|
|
47
47
|
not_found:
|
|
48
|
-
|
|
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.
|
data/_data/locales/id-ID.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Didukung oleh :PLATFORM dengan tema :THEME
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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.
|
data/_data/locales/it-IT.yml
CHANGED
|
@@ -42,7 +42,7 @@ copyright:
|
|
|
42
42
|
|
|
43
43
|
meta: Servizio offerto da :PLATFORM con tema :THEME
|
|
44
44
|
not_found:
|
|
45
|
-
|
|
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.
|
data/_data/locales/ko-KR.yml
CHANGED
data/_data/locales/my-MM.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Powered by :PLATFORM with :THEME theme
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
46
|
+
statement: ဝမ်းနည်းပါသည်၊ ကျွန်ုပ်တို့သည် အဆိုပါ URL ကို မှားယွင်းစွာ နေရာချထားခြင်း သို့မဟုတ် ၎င်းသည် မရှိသောအရာကို ညွှန်ပြနေပါသည်။
|
|
47
47
|
|
|
48
48
|
notification:
|
|
49
49
|
update_found: အကြောင်းအရာဗားရှင်းအသစ်ကို ရနိုင်ပါပြီ။
|
data/_data/locales/pt-BR.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Feito com :PLATFORM usando o tema :THEME
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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.
|
data/_data/locales/ru-RU.yml
CHANGED
|
@@ -42,7 +42,7 @@ copyright:
|
|
|
42
42
|
meta: Использует тему :THEME для :PLATFORM
|
|
43
43
|
|
|
44
44
|
not_found:
|
|
45
|
-
|
|
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:
|
data/_data/locales/sl-SI.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Uporabljena :PLATFORM tema :THEME #Using the :PLATFORM theme :THEME
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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.
|
data/_data/locales/sv-SE.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Byggd med :PLATFORM och temat :THEME
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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
|
-
|
|
46
|
+
statement: ขออภัย เราวาง URL นั้นไว้ผิดที่ หรือมันชี้ไปยังสิ่งที่ไม่มีอยู่
|
|
47
47
|
|
|
48
48
|
notification:
|
|
49
49
|
update_found: มีเวอร์ชันใหม่ของเนื้อหา
|
data/_data/locales/tr-TR.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: :PLATFORM ve :THEME teması
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
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.
|
data/_data/locales/uk-UA.yml
CHANGED
|
@@ -43,7 +43,7 @@ copyright:
|
|
|
43
43
|
meta: Powered by :PLATFORM with :THEME theme
|
|
44
44
|
|
|
45
45
|
not_found:
|
|
46
|
-
|
|
46
|
+
statement: Вибачте, це посилання вказує на ресурс, що не існує.
|
|
47
47
|
|
|
48
48
|
notification:
|
|
49
49
|
update_found: Доступна нова версія вмісту.
|
data/_data/locales/vi-VN.yml
CHANGED
|
@@ -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
|
-
|
|
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.
|
data/_data/locales/zh-CN.yml
CHANGED
data/_data/locales/zh-TW.yml
CHANGED
data/_data/origin/basic.yml
CHANGED
|
@@ -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.
|
|
24
|
-
relativeTime: /assets/lib/dayjs/plugin/relativeTime.
|
|
25
|
-
localizedFormat: /assets/lib/dayjs/plugin/localizedFormat.
|
|
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
|
data/_data/origin/cors.yml
CHANGED
|
@@ -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.
|
|
24
|
-
js: https://cdn.jsdelivr.net/npm/tocbot@4.
|
|
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.
|
|
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@
|
|
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.
|
|
38
|
-
locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.
|
|
39
|
-
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.
|
|
40
|
-
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.
|
|
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
|
|
@@ -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':
|
|
38
|
+
'data-lang': lang,
|
|
33
39
|
'data-loading': 'lazy',
|
|
34
40
|
crossorigin: 'anonymous',
|
|
35
41
|
async: ''
|
data/_includes/js-selector.html
CHANGED
|
@@ -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 %}{{
|
|
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' |
|
|
95
|
+
<script defer src="{{ 'app.min.js' | relative_url }}"></script>
|
|
97
96
|
{% endif %}
|
|
98
97
|
|
|
99
98
|
<!-- Web Analytics -->
|
data/_sass/addon/commons.scss
CHANGED
|
@@ -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.
|
|
49
|
+
$size-factor: 0.25rem;
|
|
51
50
|
|
|
52
|
-
@if $i
|
|
53
|
-
$factor: 0.
|
|
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
|
-
|
|
63
|
+
& {
|
|
64
|
+
font-size: 1rem + (5 - $i) * $size-factor;
|
|
65
|
+
}
|
|
57
66
|
} @else {
|
|
58
|
-
font-size:
|
|
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:
|
|
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:
|
|
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:
|
|
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 {
|
data/_sass/addon/module.scss
CHANGED
|
@@ -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: $
|
|
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-
|
|
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
|
}
|
data/_sass/addon/syntax.scss
CHANGED
|
@@ -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:
|
|
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: $
|
|
264
|
+
border-radius: $radius-lg;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.code-header {
|
data/_sass/addon/variables.scss
CHANGED
|
@@ -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
|
-
$
|
|
19
|
+
$radius-sm: 6px !default;
|
|
20
|
+
$radius-lg: 10px !default;
|
|
20
21
|
$back2top-size: 2.75rem !default;
|
|
21
22
|
|
|
22
23
|
/* syntax highlight */
|