jekyll-theme-chirpy 7.1.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/locales/fr-FR.yml +3 -3
- data/_data/locales/hu-HU.yml +20 -7
- data/_data/origin/cors.yml +4 -4
- data/_includes/analytics/cloudflare.html +0 -1
- data/_includes/analytics/fathom.html +2 -3
- data/_includes/analytics/google.html +1 -1
- data/_includes/analytics/matomo.html +6 -7
- data/_includes/comments/disqus.html +36 -29
- data/_includes/comments/giscus.html +14 -30
- data/_includes/comments/utterances.html +26 -37
- data/_includes/head.html +25 -4
- data/_includes/js-selector.html +3 -23
- data/_includes/jsdelivr-combine.html +4 -4
- data/_includes/search-loader.html +22 -20
- data/_includes/sidebar.html +1 -3
- data/_includes/toc-status.html +10 -0
- data/_includes/toc.html +4 -8
- data/_layouts/default.html +8 -4
- data/_layouts/home.html +26 -19
- data/_layouts/post.html +29 -2
- data/_sass/abstracts/_breakpoints.scss +73 -0
- data/_sass/abstracts/_index.scss +4 -0
- data/_sass/abstracts/_mixins.scss +80 -0
- data/_sass/{addon/module.scss → abstracts/_placeholders.scss} +22 -55
- data/_sass/{addon/variables.scss → abstracts/_variables.scss} +0 -4
- data/_sass/base/_base.scss +476 -0
- data/_sass/base/_index.scss +4 -0
- data/_sass/base/_reset.scss +41 -0
- data/_sass/{addon/syntax.scss → base/_syntax.scss} +46 -85
- data/_sass/base/_typography.scss +266 -0
- data/_sass/components/_buttons.scss +51 -0
- data/_sass/components/_index.scss +2 -0
- data/_sass/components/_popups.scss +172 -0
- data/_sass/layout/_footer.scss +36 -0
- data/_sass/layout/_index.scss +4 -0
- data/_sass/layout/_panel.scss +70 -0
- data/_sass/layout/_sidebar.scss +258 -0
- data/_sass/layout/_topbar.scss +86 -0
- data/_sass/main.bundle.scss +2 -2
- data/_sass/main.scss +4 -13
- data/_sass/{layout/archives.scss → pages/_archives.scss} +12 -16
- data/_sass/{layout/categories.scss → pages/_categories.scss} +5 -6
- data/_sass/{layout/category-tag.scss → pages/_category-tag.scss} +11 -20
- data/_sass/{layout/home.scss → pages/_home.scss} +54 -70
- data/_sass/pages/_index.scss +7 -0
- data/_sass/{layout/post.scss → pages/_post.scss} +183 -45
- data/_sass/pages/_search.scss +184 -0
- data/_sass/{layout/tags.scss → pages/_tags.scss} +7 -3
- data/_sass/{colors/typography-dark.scss → themes/_dark.scss} +163 -7
- data/_sass/themes/_light.scss +313 -0
- data/_sass/vendors/_bootstrap.scss +5 -0
- data/assets/css/jekyll-theme-chirpy.scss +1 -1
- data/assets/feed.xml +1 -1
- data/assets/js/dist/app.min.js +2 -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 +2 -2
- data/assets/js/dist/theme.min.js +4 -0
- metadata +35 -22
- data/_includes/mermaid.html +0 -62
- data/_includes/mode-toggle.html +0 -116
- data/_sass/addon/commons.scss +0 -1542
- data/_sass/colors/syntax-dark.scss +0 -164
- data/_sass/colors/syntax-light.scss +0 -210
- data/_sass/colors/typography-light.scss +0 -112
- data/_sass/dist/bootstrap.css +0 -5
- data/_sass/variables-hook.scss +0 -3
- /data/_includes/{comments.html → comment.html} +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-chirpy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cotes Chung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -149,7 +149,7 @@ files:
|
|
149
149
|
- _includes/analytics/google.html
|
150
150
|
- _includes/analytics/matomo.html
|
151
151
|
- _includes/analytics/umami.html
|
152
|
-
- _includes/
|
152
|
+
- _includes/comment.html
|
153
153
|
- _includes/comments/disqus.html
|
154
154
|
- _includes/comments/giscus.html
|
155
155
|
- _includes/comments/utterances.html
|
@@ -167,9 +167,7 @@ files:
|
|
167
167
|
- _includes/lang.html
|
168
168
|
- _includes/language-alias.html
|
169
169
|
- _includes/media-url.html
|
170
|
-
- _includes/mermaid.html
|
171
170
|
- _includes/metadata-hook.html
|
172
|
-
- _includes/mode-toggle.html
|
173
171
|
- _includes/no-linenos.html
|
174
172
|
- _includes/notification.html
|
175
173
|
- _includes/origin-type.html
|
@@ -184,6 +182,7 @@ files:
|
|
184
182
|
- _includes/search-loader.html
|
185
183
|
- _includes/search-results.html
|
186
184
|
- _includes/sidebar.html
|
185
|
+
- _includes/toc-status.html
|
187
186
|
- _includes/toc.html
|
188
187
|
- _includes/topbar.html
|
189
188
|
- _includes/trending-tags.html
|
@@ -198,24 +197,37 @@ files:
|
|
198
197
|
- _layouts/post.html
|
199
198
|
- _layouts/tag.html
|
200
199
|
- _layouts/tags.html
|
201
|
-
- _sass/
|
202
|
-
- _sass/
|
203
|
-
- _sass/
|
204
|
-
- _sass/
|
205
|
-
- _sass/
|
206
|
-
- _sass/
|
207
|
-
- _sass/
|
208
|
-
- _sass/
|
209
|
-
- _sass/
|
210
|
-
- _sass/
|
211
|
-
- _sass/
|
212
|
-
- _sass/
|
213
|
-
- _sass/
|
214
|
-
- _sass/layout/
|
215
|
-
- _sass/layout/
|
200
|
+
- _sass/abstracts/_breakpoints.scss
|
201
|
+
- _sass/abstracts/_index.scss
|
202
|
+
- _sass/abstracts/_mixins.scss
|
203
|
+
- _sass/abstracts/_placeholders.scss
|
204
|
+
- _sass/abstracts/_variables.scss
|
205
|
+
- _sass/base/_base.scss
|
206
|
+
- _sass/base/_index.scss
|
207
|
+
- _sass/base/_reset.scss
|
208
|
+
- _sass/base/_syntax.scss
|
209
|
+
- _sass/base/_typography.scss
|
210
|
+
- _sass/components/_buttons.scss
|
211
|
+
- _sass/components/_index.scss
|
212
|
+
- _sass/components/_popups.scss
|
213
|
+
- _sass/layout/_footer.scss
|
214
|
+
- _sass/layout/_index.scss
|
215
|
+
- _sass/layout/_panel.scss
|
216
|
+
- _sass/layout/_sidebar.scss
|
217
|
+
- _sass/layout/_topbar.scss
|
216
218
|
- _sass/main.bundle.scss
|
217
219
|
- _sass/main.scss
|
218
|
-
- _sass/
|
220
|
+
- _sass/pages/_archives.scss
|
221
|
+
- _sass/pages/_categories.scss
|
222
|
+
- _sass/pages/_category-tag.scss
|
223
|
+
- _sass/pages/_home.scss
|
224
|
+
- _sass/pages/_index.scss
|
225
|
+
- _sass/pages/_post.scss
|
226
|
+
- _sass/pages/_search.scss
|
227
|
+
- _sass/pages/_tags.scss
|
228
|
+
- _sass/themes/_dark.scss
|
229
|
+
- _sass/themes/_light.scss
|
230
|
+
- _sass/vendors/_bootstrap.scss
|
219
231
|
- assets/404.html
|
220
232
|
- assets/css/jekyll-theme-chirpy.scss
|
221
233
|
- assets/feed.xml
|
@@ -239,6 +251,7 @@ files:
|
|
239
251
|
- assets/js/dist/page.min.js
|
240
252
|
- assets/js/dist/post.min.js
|
241
253
|
- assets/js/dist/sw.min.js
|
254
|
+
- assets/js/dist/theme.min.js
|
242
255
|
- assets/robots.txt
|
243
256
|
homepage: https://github.com/cotes2020/jekyll-theme-chirpy
|
244
257
|
licenses:
|
@@ -265,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
278
|
- !ruby/object:Gem::Version
|
266
279
|
version: '0'
|
267
280
|
requirements: []
|
268
|
-
rubygems_version: 3.5.
|
281
|
+
rubygems_version: 3.5.22
|
269
282
|
signing_key:
|
270
283
|
specification_version: 4
|
271
284
|
summary: A minimal, responsive, and feature-rich Jekyll theme for technical writing.
|
data/_includes/mermaid.html
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
<!-- mermaid-js loader -->
|
2
|
-
<script type="text/javascript">
|
3
|
-
function updateMermaid(event) {
|
4
|
-
if (event.source === window && event.data && event.data.direction === ModeToggle.ID) {
|
5
|
-
const mode = event.data.message;
|
6
|
-
|
7
|
-
if (typeof mermaid === 'undefined') {
|
8
|
-
return;
|
9
|
-
}
|
10
|
-
|
11
|
-
let expectedTheme = mode === ModeToggle.DARK_MODE ? 'dark' : 'default';
|
12
|
-
let config = { theme: expectedTheme };
|
13
|
-
|
14
|
-
{%- comment -%}
|
15
|
-
Re-render the SVG › <https://github.com/mermaid-js/mermaid/issues/311#issuecomment-332557344>
|
16
|
-
{%- endcomment -%}
|
17
|
-
const mermaidList = document.getElementsByClassName('mermaid');
|
18
|
-
|
19
|
-
[...mermaidList].forEach((elem) => {
|
20
|
-
const svgCode = elem.previousSibling.children.item(0).innerHTML;
|
21
|
-
elem.innerHTML = svgCode;
|
22
|
-
elem.removeAttribute('data-processed');
|
23
|
-
});
|
24
|
-
|
25
|
-
mermaid.initialize(config);
|
26
|
-
mermaid.init(undefined, '.mermaid');
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
(function () {
|
31
|
-
let initTheme = 'default';
|
32
|
-
const html = document.documentElement;
|
33
|
-
|
34
|
-
if (
|
35
|
-
(html.hasAttribute('data-mode') && html.getAttribute('data-mode') === 'dark') ||
|
36
|
-
(!html.hasAttribute('data-mode') && window.matchMedia('(prefers-color-scheme: dark)').matches)
|
37
|
-
) {
|
38
|
-
initTheme = 'dark';
|
39
|
-
}
|
40
|
-
|
41
|
-
let mermaidConf = {
|
42
|
-
theme: initTheme {%- comment -%} <default | dark | forest | neutral> {%- endcomment -%}
|
43
|
-
};
|
44
|
-
|
45
|
-
{%- comment -%} Create mermaid tag {%- endcomment -%}
|
46
|
-
const basicList = document.getElementsByClassName('language-mermaid');
|
47
|
-
[...basicList].forEach((elem) => {
|
48
|
-
const svgCode = elem.textContent;
|
49
|
-
const backup = elem.parentElement;
|
50
|
-
backup.classList.add('d-none');
|
51
|
-
{%- comment -%} create mermaid node {%- endcomment -%}
|
52
|
-
let mermaid = document.createElement('pre');
|
53
|
-
mermaid.classList.add('mermaid');
|
54
|
-
const text = document.createTextNode(svgCode);
|
55
|
-
mermaid.appendChild(text);
|
56
|
-
backup.after(mermaid);
|
57
|
-
});
|
58
|
-
|
59
|
-
mermaid.initialize(mermaidConf);
|
60
|
-
window.addEventListener('message', updateMermaid);
|
61
|
-
})();
|
62
|
-
</script>
|
data/_includes/mode-toggle.html
DELETED
@@ -1,116 +0,0 @@
|
|
1
|
-
<!-- Switch the mode between dark and light. -->
|
2
|
-
|
3
|
-
<script type="text/javascript">
|
4
|
-
class ModeToggle {
|
5
|
-
static get MODE_KEY() {
|
6
|
-
return 'mode';
|
7
|
-
}
|
8
|
-
static get MODE_ATTR() {
|
9
|
-
return 'data-mode';
|
10
|
-
}
|
11
|
-
static get DARK_MODE() {
|
12
|
-
return 'dark';
|
13
|
-
}
|
14
|
-
static get LIGHT_MODE() {
|
15
|
-
return 'light';
|
16
|
-
}
|
17
|
-
static get ID() {
|
18
|
-
return 'mode-toggle';
|
19
|
-
}
|
20
|
-
|
21
|
-
constructor() {
|
22
|
-
let self = this;
|
23
|
-
|
24
|
-
{%- comment -%} always follow the system prefers {%- endcomment -%}
|
25
|
-
this.sysDarkPrefers.addEventListener('change', () => {
|
26
|
-
if (self.hasMode) {
|
27
|
-
self.clearMode();
|
28
|
-
}
|
29
|
-
self.notify();
|
30
|
-
});
|
31
|
-
|
32
|
-
if (!this.hasMode) {
|
33
|
-
return;
|
34
|
-
}
|
35
|
-
|
36
|
-
if (this.isDarkMode) {
|
37
|
-
this.setDark();
|
38
|
-
} else {
|
39
|
-
this.setLight();
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
get sysDarkPrefers() {
|
44
|
-
return window.matchMedia('(prefers-color-scheme: dark)');
|
45
|
-
}
|
46
|
-
|
47
|
-
get isPreferDark() {
|
48
|
-
return this.sysDarkPrefers.matches;
|
49
|
-
}
|
50
|
-
|
51
|
-
get isDarkMode() {
|
52
|
-
return this.mode === ModeToggle.DARK_MODE;
|
53
|
-
}
|
54
|
-
|
55
|
-
get hasMode() {
|
56
|
-
return this.mode != null;
|
57
|
-
}
|
58
|
-
|
59
|
-
get mode() {
|
60
|
-
return sessionStorage.getItem(ModeToggle.MODE_KEY);
|
61
|
-
}
|
62
|
-
|
63
|
-
{%- comment -%} get the current mode on screen {%- endcomment -%}
|
64
|
-
get modeStatus() {
|
65
|
-
if (this.hasMode) {
|
66
|
-
return this.mode;
|
67
|
-
} else {
|
68
|
-
return this.isPreferDark ? ModeToggle.DARK_MODE : ModeToggle.LIGHT_MODE;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
setDark() {
|
73
|
-
document.documentElement.setAttribute(ModeToggle.MODE_ATTR, ModeToggle.DARK_MODE);
|
74
|
-
sessionStorage.setItem(ModeToggle.MODE_KEY, ModeToggle.DARK_MODE);
|
75
|
-
}
|
76
|
-
|
77
|
-
setLight() {
|
78
|
-
document.documentElement.setAttribute(ModeToggle.MODE_ATTR, ModeToggle.LIGHT_MODE);
|
79
|
-
sessionStorage.setItem(ModeToggle.MODE_KEY, ModeToggle.LIGHT_MODE);
|
80
|
-
}
|
81
|
-
|
82
|
-
clearMode() {
|
83
|
-
document.documentElement.removeAttribute(ModeToggle.MODE_ATTR);
|
84
|
-
sessionStorage.removeItem(ModeToggle.MODE_KEY);
|
85
|
-
}
|
86
|
-
|
87
|
-
{%- comment -%}
|
88
|
-
Notify another plugins that the theme mode has changed
|
89
|
-
{%- endcomment -%}
|
90
|
-
notify() {
|
91
|
-
window.postMessage(
|
92
|
-
{
|
93
|
-
direction: ModeToggle.ID,
|
94
|
-
message: this.modeStatus
|
95
|
-
},
|
96
|
-
'*'
|
97
|
-
);
|
98
|
-
}
|
99
|
-
|
100
|
-
flipMode() {
|
101
|
-
if (this.hasMode) {
|
102
|
-
this.clearMode();
|
103
|
-
} else {
|
104
|
-
if (this.isPreferDark) {
|
105
|
-
this.setLight();
|
106
|
-
} else {
|
107
|
-
this.setDark();
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
|
-
this.notify();
|
112
|
-
}
|
113
|
-
}
|
114
|
-
|
115
|
-
const modeToggle = new ModeToggle();
|
116
|
-
</script>
|