jekyll-theme-chirpy 4.3.3 → 4.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -14
- data/_config.yml +1 -1
- data/_includes/language-alias.html +1 -3
- data/_sass/addon/commons.scss +52 -20
- data/_sass/addon/syntax.scss +2 -0
- data/_sass/colors/dark-typography.scss +12 -7
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/archives.scss +5 -1
- data/_sass/layout/category-tag.scss +3 -2
- data/_sass/layout/home.scss +9 -2
- data/_sass/layout/post.scss +22 -4
- data/_sass/layout/tags.scss +1 -0
- data/assets/js/dist/categories.min.js +1 -1
- data/assets/js/dist/commons.min.js +1 -1
- data/assets/js/dist/home.min.js +1 -1
- data/assets/js/dist/page.min.js +1 -1
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/pvreport.min.js +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84da15ec26f1c010c572ffad9432e7ee31d240b4c5f66efd75170a71154f8a55
|
4
|
+
data.tar.gz: 4544219edc1cddd512f0fefd6df495b579a36cd9183f38ef76f7180e8cb19631
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 976b0b643737a0b8856f06c734ec0ff68b499559711d0c53e9968ab5a72aa96534a89359ea731a307ab747df097140d164fcb13195d2facaa883d623cd9595bc
|
7
|
+
data.tar.gz: a074361b2b18df79f4e30423f17403777cd244ac5d407092ac313325e690859151842847f02fc5f42a7b967870ff430fba2d2d0f1a233bdf89b78cfc2fefb34c
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
<div align="right">
|
2
2
|
|
3
|
-
EN /
|
4
|
-
[中文(简体)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/README.zh-CN.md)
|
3
|
+
EN / [中文](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/README.zh-CN.md)
|
5
4
|
|
6
5
|
</div>
|
7
6
|
|
@@ -9,14 +8,14 @@
|
|
9
8
|
|
10
9
|
# Chirpy Jekyll Theme
|
11
10
|
|
11
|
+
A minimal, responsive, and powerful Jekyll theme for presenting professional writing.
|
12
|
+
|
12
13
|
[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)](https://rubygems.org/gems/jekyll-theme-chirpy)
|
13
14
|
[![Build Status](https://github.com/cotes2020/jekyll-theme-chirpy/workflows/build/badge.svg?branch=master&event=push)](https://github.com/cotes2020/jekyll-theme-chirpy/actions?query=branch%3Amaster+event%3Apush)
|
14
|
-
[![Codacy Badge](https://
|
15
|
+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)](https://www.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cotes2020/jekyll-theme-chirpy&utm_campaign=Badge_Grade)
|
15
16
|
[![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
|
16
17
|
[![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
|
17
18
|
|
18
|
-
A minimal, responsive, and powerful Jekyll theme for presenting professional writing.
|
19
|
-
|
20
19
|
[**Live Demo →**](https://chirpy.cotes.info)
|
21
20
|
|
22
21
|
[![Devices Mockup](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images@0a003683c0c3ca549d12c309f9b3e03ea20981e5/commons/devices-mockup.png)](https://chirpy.cotes.info)
|
@@ -74,6 +73,7 @@ $ bash tools/init.sh
|
|
74
73
|
The above command will:
|
75
74
|
|
76
75
|
1. Removes some files or directories from your repository:
|
76
|
+
|
77
77
|
- `.travis.yml`
|
78
78
|
- files under `_posts`
|
79
79
|
- folder `docs`
|
@@ -190,18 +190,18 @@ It depends on how you use the theme:
|
|
190
190
|
|
191
191
|
- If you are using the theme gem (there will be `gem "jekyll-theme-chirpy"` in the `Gemfile`), editing the `Gemfile` and update the version number of the theme gem, for example:
|
192
192
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
193
|
+
```diff
|
194
|
+
- gem "jekyll-theme-chirpy", "~> 3.2", ">= 3.2.1"
|
195
|
+
+ gem "jekyll-theme-chirpy", "~> 3.3", ">= 3.3.0"
|
196
|
+
```
|
197
197
|
|
198
|
-
|
198
|
+
And then execute the following command:
|
199
199
|
|
200
|
-
|
201
|
-
|
202
|
-
|
200
|
+
```console
|
201
|
+
$ bundle update jekyll-theme-chirpy
|
202
|
+
```
|
203
203
|
|
204
|
-
|
204
|
+
As the version upgrades, the critical files (for details, see the [Startup Template][starter]) and configuration options will change. Please refer to the [Upgrade Guide](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide) to keep your repo's files in sync with the latest version of the theme.
|
205
205
|
|
206
206
|
- If you forked from the source project (there will be `gemspec` in the `Gemfile` of your site), then merge the [latest upstream tags][latest-tag] into your Jekyll site to complete the upgrade.
|
207
207
|
The merge is likely to conflict with your local modifications. Please be patient and careful to resolve these conflicts.
|
data/_config.yml
CHANGED
@@ -41,8 +41,6 @@
|
|
41
41
|
{{ 'Perl' }}
|
42
42
|
{% when 'php','php3','php4','php5' %}
|
43
43
|
{{ 'PHP' }}
|
44
|
-
{% when 'plaintext', 'text' %}
|
45
|
-
{{ 'Text' }}
|
46
44
|
{% when 'py' %}
|
47
45
|
{{ 'Python' }}
|
48
46
|
{% when 'rb' %}
|
@@ -65,7 +63,7 @@
|
|
65
63
|
{{ 'Vue.js' }}
|
66
64
|
{% when 'yml' %}
|
67
65
|
{{ 'YAML' }}
|
68
|
-
{% when 'css', 'html', 'scss', 'ssh', 'toml', 'xml', 'yaml' %}
|
66
|
+
{% when 'css', 'html', 'scss', 'ssh', 'toml', 'xml', 'yaml', 'json' %}
|
69
67
|
{{ _lang | upcase }}
|
70
68
|
{% else %}
|
71
69
|
{{ _lang | capitalize }}
|
data/_sass/addon/commons.scss
CHANGED
@@ -6,12 +6,9 @@
|
|
6
6
|
@mixin mode-toggle($dark-mode: false) {
|
7
7
|
@if $dark-mode {
|
8
8
|
@include dark-scheme;
|
9
|
-
|
10
9
|
} @else {
|
11
10
|
@include light-scheme;
|
12
|
-
|
13
11
|
}
|
14
|
-
|
15
12
|
}
|
16
13
|
|
17
14
|
html:not([mode]),
|
@@ -175,15 +172,18 @@ footer {
|
|
175
172
|
|
176
173
|
a {
|
177
174
|
color: var(--footer-link);
|
175
|
+
|
178
176
|
&:link {
|
179
177
|
@include no-text-decoration;
|
180
178
|
}
|
179
|
+
|
181
180
|
&:hover {
|
182
181
|
@extend %link-hover;
|
183
182
|
|
184
183
|
@include no-text-decoration;
|
185
184
|
}
|
186
185
|
}
|
186
|
+
|
187
187
|
.footer-right {
|
188
188
|
text-align: right;
|
189
189
|
}
|
@@ -202,22 +202,28 @@ footer {
|
|
202
202
|
position: -webkit-sticky; /* Safari */
|
203
203
|
position: sticky;
|
204
204
|
}
|
205
|
+
|
205
206
|
&.topbar-down {
|
206
207
|
top: 6rem;
|
207
208
|
}
|
209
|
+
|
208
210
|
> div {
|
209
211
|
padding-left: 1rem;
|
210
212
|
border-left: 1px solid var(--main-border-color);
|
213
|
+
|
211
214
|
&:not(:last-child) {
|
212
215
|
margin-bottom: 4rem;
|
213
216
|
}
|
214
217
|
}
|
218
|
+
|
215
219
|
span {
|
216
220
|
@include panel-label;
|
217
221
|
}
|
222
|
+
|
218
223
|
.post-content {
|
219
224
|
font-size: 0.9rem;
|
220
225
|
}
|
226
|
+
|
221
227
|
}
|
222
228
|
|
223
229
|
#access-tags {
|
@@ -234,6 +240,7 @@ footer {
|
|
234
240
|
border-radius: 0.8rem;
|
235
241
|
padding: 0.3rem 0.5rem;
|
236
242
|
margin: 0 0.35rem 0.5rem 0;
|
243
|
+
|
237
244
|
&:hover {
|
238
245
|
background-color: #2a408e;
|
239
246
|
border-color: #2a408e;
|
@@ -244,7 +251,6 @@ footer {
|
|
244
251
|
}
|
245
252
|
|
246
253
|
#access-lastmod {
|
247
|
-
|
248
254
|
li {
|
249
255
|
height: 1.8rem;
|
250
256
|
overflow: hidden;
|
@@ -270,15 +276,18 @@ footer {
|
|
270
276
|
.footnotes > ol {
|
271
277
|
padding-left: 2rem;
|
272
278
|
margin-top: 0.5rem;
|
279
|
+
|
273
280
|
> li {
|
274
281
|
&:not(:last-child) {
|
275
282
|
margin-bottom: 0.3rem;
|
276
283
|
}
|
284
|
+
|
277
285
|
> p {
|
278
286
|
margin-left: 0.25em;
|
279
287
|
margin-top: 0;
|
280
288
|
margin-bottom: 0;
|
281
289
|
}
|
290
|
+
|
282
291
|
// [scroll-focus] added by `smooth-scroll.js`
|
283
292
|
&:target:not([scroll-focus]),
|
284
293
|
&[scroll-focus=true] > p {
|
@@ -310,10 +319,10 @@ footer {
|
|
310
319
|
.reversefootnote {
|
311
320
|
@at-root a#{&} {
|
312
321
|
font-size: 0.6rem;
|
313
|
-
position: absolute;
|
314
322
|
line-height: 1;
|
315
|
-
|
316
|
-
|
323
|
+
position: relative;
|
324
|
+
bottom: 0.25em;
|
325
|
+
margin-left: 0.25em;
|
317
326
|
border-bottom-style: none !important;
|
318
327
|
}
|
319
328
|
}
|
@@ -323,9 +332,11 @@ footer {
|
|
323
332
|
margin-top: 3rem;
|
324
333
|
margin-bottom: 1rem;
|
325
334
|
}
|
335
|
+
|
326
336
|
em { /* MarkDown italic */
|
327
337
|
padding-right: 0.2rem;
|
328
338
|
}
|
339
|
+
|
329
340
|
a:hover {
|
330
341
|
code {
|
331
342
|
@extend %link-hover;
|
@@ -346,6 +357,7 @@ footer {
|
|
346
357
|
|
347
358
|
thead {
|
348
359
|
border-bottom: solid 2px rgba(210, 215, 217, 0.75);
|
360
|
+
|
349
361
|
th {
|
350
362
|
@extend %table-cell;
|
351
363
|
}
|
@@ -354,18 +366,21 @@ footer {
|
|
354
366
|
tbody {
|
355
367
|
tr {
|
356
368
|
border-bottom: 1px solid var(--tb-border-color);
|
369
|
+
|
357
370
|
&:nth-child(2n) {
|
358
371
|
background-color: var(--tb-even-bg);
|
359
372
|
}
|
373
|
+
|
360
374
|
&:nth-child(2n + 1) {
|
361
375
|
background-color: var(--tb-odd-bg);
|
362
376
|
}
|
377
|
+
|
363
378
|
td {
|
364
379
|
@extend %table-cell;
|
365
380
|
}
|
366
381
|
}
|
367
|
-
}
|
368
|
-
}
|
382
|
+
} // tbody
|
383
|
+
}// table
|
369
384
|
}
|
370
385
|
|
371
386
|
/* --- post --- */
|
@@ -377,12 +392,15 @@ footer {
|
|
377
392
|
.post-meta {
|
378
393
|
font-size: 0.85rem;
|
379
394
|
word-spacing: 1px;
|
395
|
+
|
380
396
|
a {
|
381
397
|
@extend %link-color;
|
382
398
|
@extend %link-underline;
|
399
|
+
|
383
400
|
&:not(:last-child) {
|
384
401
|
margin-right: 2px;
|
385
402
|
}
|
403
|
+
|
386
404
|
&:hover {
|
387
405
|
@extend %link-hover;
|
388
406
|
}
|
@@ -416,7 +434,7 @@ footer {
|
|
416
434
|
margin: 0.5rem 0;
|
417
435
|
|
418
436
|
&[data-loaded=true] {
|
419
|
-
animation: fade-in linear .5s;
|
437
|
+
animation: fade-in linear 0.5s;
|
420
438
|
}
|
421
439
|
|
422
440
|
&.left {
|
@@ -445,6 +463,7 @@ footer {
|
|
445
463
|
&:not(.img-link) {
|
446
464
|
@extend %link-color;
|
447
465
|
@extend %link-underline;
|
466
|
+
|
448
467
|
&:hover {
|
449
468
|
@extend %link-hover;
|
450
469
|
}
|
@@ -473,6 +492,7 @@ footer {
|
|
473
492
|
margin: 0 0.4rem 0.2rem -1.4rem;
|
474
493
|
vertical-align: middle;
|
475
494
|
color: var(--checkbox-color);
|
495
|
+
|
476
496
|
&.checked {
|
477
497
|
color: var(--checkbox-checked-color);
|
478
498
|
}
|
@@ -546,6 +566,7 @@ footer {
|
|
546
566
|
padding: 1px 3px;
|
547
567
|
border-radius: 3px;
|
548
568
|
color: var(--link-color);
|
569
|
+
|
549
570
|
&:focus {
|
550
571
|
box-shadow: none;
|
551
572
|
}
|
@@ -755,7 +776,6 @@ $sidebar-display: "sidebar-display";
|
|
755
776
|
width: 100%;
|
756
777
|
|
757
778
|
&:last-child {
|
758
|
-
|
759
779
|
a {
|
760
780
|
position: relative;
|
761
781
|
left: $cursor-width / 2;
|
@@ -871,6 +891,7 @@ $sidebar-display: "sidebar-display";
|
|
871
891
|
display: none;
|
872
892
|
height: 100%;
|
873
893
|
overflow: auto;
|
894
|
+
|
874
895
|
.post-content {
|
875
896
|
margin-top: 2rem;
|
876
897
|
}
|
@@ -959,6 +980,7 @@ $sidebar-display: "sidebar-display";
|
|
959
980
|
&:focus {
|
960
981
|
box-shadow: none;
|
961
982
|
background: center;
|
983
|
+
|
962
984
|
&.form-control {
|
963
985
|
&::-webkit-input-placeholder { @include input-placeholder; }
|
964
986
|
&::-moz-placeholder { @include input-placeholder; }
|
@@ -979,6 +1001,7 @@ $sidebar-display: "sidebar-display";
|
|
979
1001
|
border: none;
|
980
1002
|
padding: 0.5rem;
|
981
1003
|
margin: 0 1rem 1rem 0;
|
1004
|
+
|
982
1005
|
&::before {
|
983
1006
|
content: "#";
|
984
1007
|
color: var(--text-muted-color);
|
@@ -989,6 +1012,7 @@ $sidebar-display: "sidebar-display";
|
|
989
1012
|
|
990
1013
|
#search-results {
|
991
1014
|
padding-bottom: 6rem;
|
1015
|
+
|
992
1016
|
a {
|
993
1017
|
&:hover {
|
994
1018
|
@extend %link-hover;
|
@@ -1081,6 +1105,7 @@ $sidebar-display: "sidebar-display";
|
|
1081
1105
|
&:nth-child(2) {
|
1082
1106
|
margin-top: $topbar-height; /* same as the height of topbar */
|
1083
1107
|
}
|
1108
|
+
|
1084
1109
|
&:first-child {
|
1085
1110
|
/* 3rem for topbar, 6rem for footer */
|
1086
1111
|
min-height: calc(100vh - #{$topbar-height} - #{$footer-height} - #{$post-extend-min-height});
|
@@ -1088,8 +1113,7 @@ $sidebar-display: "sidebar-display";
|
|
1088
1113
|
}
|
1089
1114
|
|
1090
1115
|
#post-wrapper {
|
1091
|
-
min-height: calc(
|
1092
|
-
100vh - #{$topbar-height} - #{$footer-height} - #{$post-extend-min-height}) !important;
|
1116
|
+
min-height: calc(100vh - #{$topbar-height} - #{$footer-height} - #{$post-extend-min-height}) !important;
|
1093
1117
|
}
|
1094
1118
|
|
1095
1119
|
#topbar-wrapper.row,
|
@@ -1147,8 +1171,8 @@ $sidebar-display: "sidebar-display";
|
|
1147
1171
|
}
|
1148
1172
|
|
1149
1173
|
#post-wrapper {
|
1150
|
-
min-height: calc(
|
1151
|
-
|
1174
|
+
min-height: calc(100vh - #{$topbar-height} - #{$footer-height} - #{$post-extend-min-height}) !important;
|
1175
|
+
|
1152
1176
|
h1 {
|
1153
1177
|
margin-top: 2.2rem;
|
1154
1178
|
font-size: 1.55rem;
|
@@ -1170,6 +1194,7 @@ $sidebar-display: "sidebar-display";
|
|
1170
1194
|
|
1171
1195
|
footer {
|
1172
1196
|
height: $footer-height;
|
1197
|
+
|
1173
1198
|
> div.d-flex {
|
1174
1199
|
width: 100%;
|
1175
1200
|
padding: 1.5rem 0;
|
@@ -1178,6 +1203,7 @@ $sidebar-display: "sidebar-display";
|
|
1178
1203
|
-ms-flex-pack: distribute !important;
|
1179
1204
|
justify-content: space-around !important;
|
1180
1205
|
}
|
1206
|
+
|
1181
1207
|
.footer-left,
|
1182
1208
|
.footer-right {
|
1183
1209
|
text-align: center;
|
@@ -1201,13 +1227,13 @@ $sidebar-display: "sidebar-display";
|
|
1201
1227
|
.footnotes ol > li {
|
1202
1228
|
padding-top: 3.5rem;
|
1203
1229
|
margin-top: -3.2rem;
|
1230
|
+
|
1204
1231
|
&:first-child {
|
1205
1232
|
margin-top: -3.5rem;
|
1206
1233
|
}
|
1207
1234
|
}
|
1208
1235
|
|
1209
1236
|
[#{$sidebar-display}] {
|
1210
|
-
|
1211
1237
|
#sidebar {
|
1212
1238
|
transform: translateX(0);
|
1213
1239
|
}
|
@@ -1272,6 +1298,7 @@ $sidebar-display: "sidebar-display";
|
|
1272
1298
|
&.loaded ~ a {
|
1273
1299
|
margin-right: 1rem;
|
1274
1300
|
}
|
1301
|
+
|
1275
1302
|
.fa-times-circle {
|
1276
1303
|
right: 5.2rem;
|
1277
1304
|
}
|
@@ -1299,6 +1326,7 @@ $sidebar-display: "sidebar-display";
|
|
1299
1326
|
|
1300
1327
|
#page h1.dynamic-title {
|
1301
1328
|
display: none;
|
1329
|
+
|
1302
1330
|
~ .post-content {
|
1303
1331
|
margin-top: 3rem;
|
1304
1332
|
}
|
@@ -1373,7 +1401,6 @@ $sidebar-display: "sidebar-display";
|
|
1373
1401
|
|
1374
1402
|
/* Compact icons in sidebar & panel hidden */
|
1375
1403
|
@media all and (min-width: 850px) and (max-width: 1199px) {
|
1376
|
-
|
1377
1404
|
#sidebar {
|
1378
1405
|
width: $sidebar-width-small;
|
1379
1406
|
|
@@ -1387,6 +1414,7 @@ $sidebar-display: "sidebar-display";
|
|
1387
1414
|
span {
|
1388
1415
|
width: 2rem;
|
1389
1416
|
}
|
1417
|
+
|
1390
1418
|
.icon-border {
|
1391
1419
|
left: -3px;
|
1392
1420
|
}
|
@@ -1446,7 +1474,6 @@ $sidebar-display: "sidebar-display";
|
|
1446
1474
|
/* --- desktop mode, both sidebar and panel are visible --- */
|
1447
1475
|
|
1448
1476
|
@media all and (min-width: 1200px) {
|
1449
|
-
|
1450
1477
|
#main > div.row > div.col-xl-8 {
|
1451
1478
|
-webkit-box-flex: 0;
|
1452
1479
|
-ms-flex: 0 0 75%;
|
@@ -1476,12 +1503,15 @@ $sidebar-display: "sidebar-display";
|
|
1476
1503
|
|
1477
1504
|
#search-results > div {
|
1478
1505
|
width: 46%;
|
1506
|
+
|
1479
1507
|
&:nth-child(odd) {
|
1480
1508
|
margin-right: 1.5rem;
|
1481
1509
|
}
|
1510
|
+
|
1482
1511
|
&:nth-child(even) {
|
1483
1512
|
margin-left: 1.5rem;
|
1484
1513
|
}
|
1514
|
+
|
1485
1515
|
&:last-child:nth-child(odd) {
|
1486
1516
|
position: relative;
|
1487
1517
|
right: 24.3%;
|
@@ -1499,9 +1529,9 @@ $sidebar-display: "sidebar-display";
|
|
1499
1529
|
}
|
1500
1530
|
|
1501
1531
|
@media all and (min-width: 1400px) {
|
1502
|
-
|
1503
1532
|
#main > div.row {
|
1504
1533
|
padding-left: calc((100% - #{$main-content-max-width}) / 2);
|
1534
|
+
|
1505
1535
|
> div.col-xl-8 {
|
1506
1536
|
max-width: 850px;
|
1507
1537
|
}
|
@@ -1509,6 +1539,7 @@ $sidebar-display: "sidebar-display";
|
|
1509
1539
|
|
1510
1540
|
#search-result-wrapper {
|
1511
1541
|
padding-right: 2rem;
|
1542
|
+
|
1512
1543
|
> div {
|
1513
1544
|
max-width: 1110px;
|
1514
1545
|
}
|
@@ -1527,13 +1558,13 @@ $sidebar-display: "sidebar-display";
|
|
1527
1558
|
}
|
1528
1559
|
|
1529
1560
|
@media all and (min-width: 1650px) {
|
1530
|
-
|
1531
1561
|
#breadcrumb {
|
1532
1562
|
padding-left: 0;
|
1533
1563
|
}
|
1534
1564
|
|
1535
1565
|
#main > div.row > div.col-xl-8 {
|
1536
1566
|
padding-left: 0;
|
1567
|
+
|
1537
1568
|
> div:first-child {
|
1538
1569
|
padding-left: 0.55rem !important;
|
1539
1570
|
padding-right: 1.9rem !important;
|
@@ -1581,6 +1612,7 @@ $sidebar-display: "sidebar-display";
|
|
1581
1612
|
> a {
|
1582
1613
|
width: 6.2rem;
|
1583
1614
|
height: 6.2rem;
|
1615
|
+
|
1584
1616
|
&.mx-auto {
|
1585
1617
|
margin-left: 0 !important;
|
1586
1618
|
}
|
data/_sass/addon/syntax.scss
CHANGED
@@ -76,6 +76,7 @@ div > pre {
|
|
76
76
|
table {
|
77
77
|
padding: 0;
|
78
78
|
border: 0;
|
79
|
+
|
79
80
|
td pre {
|
80
81
|
overflow: visible; /* Fixed iOS safari overflow-x */
|
81
82
|
word-break: normal; /* Fixed iOS safari linenos code break */
|
@@ -157,6 +158,7 @@ div {
|
|
157
158
|
pre.lineno {
|
158
159
|
display: none;
|
159
160
|
}
|
161
|
+
|
160
162
|
td.rouge-code {
|
161
163
|
@extend %code-snippet-padding;
|
162
164
|
}
|
@@ -116,11 +116,13 @@
|
|
116
116
|
.card-header {
|
117
117
|
background-color: var(--card-header-bg);
|
118
118
|
}
|
119
|
+
|
119
120
|
.list-group-item {
|
120
121
|
border-left: none;
|
121
122
|
border-right: none;
|
122
123
|
padding-left: 2rem;
|
123
124
|
border-color: var(--categories-border);
|
125
|
+
|
124
126
|
&:last-child {
|
125
127
|
border-bottom-color: var(--card-bg);
|
126
128
|
}
|
@@ -128,13 +130,16 @@
|
|
128
130
|
}
|
129
131
|
|
130
132
|
#archives li:nth-child(odd) {
|
131
|
-
background-image:
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
133
|
+
background-image:
|
134
|
+
linear-gradient(
|
135
|
+
to left,
|
136
|
+
rgb(26, 26, 30),
|
137
|
+
rgb(39, 39, 45),
|
138
|
+
rgb(39, 39, 45),
|
139
|
+
rgb(39, 39, 45),
|
140
|
+
rgb(26, 26, 30)
|
141
|
+
);
|
142
|
+
|
138
143
|
}
|
139
144
|
|
140
145
|
} // dark-scheme
|
data/_sass/layout/archives.scss
CHANGED
@@ -41,6 +41,7 @@
|
|
41
41
|
&:not(:first-child) {
|
42
42
|
position: relative;
|
43
43
|
left: 4px;
|
44
|
+
|
44
45
|
&::after {
|
45
46
|
left: 67px;
|
46
47
|
}
|
@@ -98,6 +99,7 @@
|
|
98
99
|
.date {
|
99
100
|
white-space: nowrap;
|
100
101
|
display: inline-block;
|
102
|
+
|
101
103
|
&.month {
|
102
104
|
width: 1.4rem;
|
103
105
|
text-align: center;
|
@@ -120,6 +122,7 @@
|
|
120
122
|
z-index: 1;
|
121
123
|
}
|
122
124
|
}
|
125
|
+
|
123
126
|
&.day {
|
124
127
|
font-size: 85%;
|
125
128
|
font-family: 'Lato', sans-serif;
|
@@ -127,7 +130,7 @@
|
|
127
130
|
margin-right: -2px;
|
128
131
|
width: 1.2rem;
|
129
132
|
position: relative;
|
130
|
-
left:
|
133
|
+
left: -0.15rem;
|
131
134
|
}
|
132
135
|
} // #archives .date
|
133
136
|
|
@@ -136,6 +139,7 @@
|
|
136
139
|
@media all and (max-width: 576px) {
|
137
140
|
#archives {
|
138
141
|
margin-top: -1rem;
|
142
|
+
|
139
143
|
ul {
|
140
144
|
letter-spacing: 0;
|
141
145
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
.dash {
|
6
|
-
margin: 0 .5rem .6rem .5rem;
|
6
|
+
margin: 0 0.5rem 0.6rem 0.5rem;
|
7
7
|
border-bottom: 2px dotted var(--dash-color);
|
8
8
|
}
|
9
9
|
|
@@ -60,8 +60,9 @@
|
|
60
60
|
#page-tag {
|
61
61
|
ul > li {
|
62
62
|
&::before {
|
63
|
-
margin: 0 .5rem;
|
63
|
+
margin: 0 0.5rem;
|
64
64
|
}
|
65
|
+
|
65
66
|
> a {
|
66
67
|
white-space: nowrap;
|
67
68
|
overflow: hidden;
|
data/_sass/layout/home.scss
CHANGED
@@ -22,24 +22,29 @@
|
|
22
22
|
border-radius: 50%;
|
23
23
|
border: 1px solid var(--btn-paginator-border-color);
|
24
24
|
background-color: var(--button-bg);
|
25
|
+
|
25
26
|
&:hover {
|
26
27
|
background-color: var(--btn-paginator-hover-color);
|
27
28
|
}
|
28
29
|
}
|
30
|
+
|
29
31
|
&.active {
|
30
32
|
.page-link {
|
31
33
|
background-color: var(--btn-paginator-hover-color);
|
32
34
|
color: var(--btn-text-color);
|
33
35
|
}
|
34
36
|
}
|
37
|
+
|
35
38
|
&.disabled {
|
36
39
|
cursor: not-allowed;
|
40
|
+
|
37
41
|
.page-link {
|
38
42
|
color: rgba(108, 117, 125, 0.57);
|
39
43
|
border-color: var(--btn-paginator-border-color);
|
40
44
|
background-color: var(--button-bg);
|
41
45
|
}
|
42
46
|
}
|
47
|
+
|
43
48
|
&:first-child .page-link,
|
44
49
|
&:last-child .page-link {
|
45
50
|
border-radius: 50%;
|
@@ -70,6 +75,7 @@
|
|
70
75
|
i {
|
71
76
|
font-size: 0.73rem;
|
72
77
|
}
|
78
|
+
|
73
79
|
span:not(:last-child) {
|
74
80
|
margin-right: 1.2rem;
|
75
81
|
}
|
@@ -79,6 +85,7 @@
|
|
79
85
|
margin-top: 0.6rem;
|
80
86
|
margin-bottom: 0.6rem;
|
81
87
|
color: var(--post-list-text-color);
|
88
|
+
|
82
89
|
> p {
|
83
90
|
/* Make preview shorter on the homepage */
|
84
91
|
margin: 0;
|
@@ -96,13 +103,13 @@
|
|
96
103
|
padding-left: 3px;
|
97
104
|
color: var(--pin-color);
|
98
105
|
}
|
106
|
+
|
99
107
|
> span {
|
100
108
|
display: none;
|
101
109
|
}
|
102
110
|
}
|
103
111
|
|
104
112
|
} // .post-preview
|
105
|
-
|
106
113
|
} // #post-list
|
107
114
|
|
108
115
|
/* Hide SideBar and TOC */
|
@@ -122,9 +129,9 @@
|
|
122
129
|
|
123
130
|
/* Sidebar is visible */
|
124
131
|
@media all and (min-width: 831px) {
|
125
|
-
|
126
132
|
#post-list {
|
127
133
|
margin-top: 1.5rem;
|
134
|
+
|
128
135
|
.post-preview .post-meta {
|
129
136
|
.pin {
|
130
137
|
background: var(--pin-bg);
|
data/_sass/layout/post.scss
CHANGED
@@ -131,9 +131,11 @@
|
|
131
131
|
top: 4rem;
|
132
132
|
transition: top 0.2s ease-in-out;
|
133
133
|
animation: fade-up 0.8s;
|
134
|
+
|
134
135
|
&.topbar-down {
|
135
136
|
top: 6rem;
|
136
137
|
}
|
138
|
+
|
137
139
|
> span {
|
138
140
|
@include panel-label;
|
139
141
|
}
|
@@ -162,6 +164,7 @@ nav[data-toggle=toc] {
|
|
162
164
|
> h3 {
|
163
165
|
@include label(1.1rem, 600);
|
164
166
|
}
|
167
|
+
|
165
168
|
.card {
|
166
169
|
border-color: var(--card-border-color);
|
167
170
|
background-color: var(--card-bg);
|
@@ -169,9 +172,11 @@ nav[data-toggle=toc] {
|
|
169
172
|
-webkit-transition: all 0.3s ease-in-out;
|
170
173
|
-moz-transition: all 0.3s ease-in-out;
|
171
174
|
transition: all 0.3s ease-in-out;
|
175
|
+
|
172
176
|
h3 {
|
173
177
|
color: var(--text-color);
|
174
178
|
}
|
179
|
+
|
175
180
|
&:hover {
|
176
181
|
-webkit-transform: translate3d(0, -3px, 0);
|
177
182
|
transform: translate3d(0, -3px, 0);
|
@@ -200,6 +205,7 @@ nav[data-toggle=toc] {
|
|
200
205
|
ul {
|
201
206
|
list-style-type: none;
|
202
207
|
padding-inline-start: 1.5rem;
|
208
|
+
|
203
209
|
> li::before {
|
204
210
|
background: #c2c9d4;
|
205
211
|
width: 5px;
|
@@ -238,17 +244,21 @@ nav[data-toggle=toc] {
|
|
238
244
|
|
239
245
|
.share-icons {
|
240
246
|
font-size: 1.2rem;
|
247
|
+
|
241
248
|
a {
|
242
249
|
&:not(:last-child) {
|
243
250
|
margin-right: 0.25rem;
|
244
251
|
}
|
252
|
+
|
245
253
|
&:hover {
|
246
254
|
text-decoration: none;
|
255
|
+
|
247
256
|
> i {
|
248
257
|
@extend %btn-share-hovor;
|
249
258
|
}
|
250
259
|
}
|
251
260
|
}
|
261
|
+
|
252
262
|
> i {
|
253
263
|
position: relative;
|
254
264
|
bottom: 1px;
|
@@ -259,16 +269,20 @@ nav[data-toggle=toc] {
|
|
259
269
|
@extend %btn-share-hovor;
|
260
270
|
}
|
261
271
|
}
|
272
|
+
|
262
273
|
.fab {
|
263
274
|
&.fa-twitter {
|
264
275
|
@include btn-sharing-color(rgba(29, 161, 242, 1));
|
265
276
|
}
|
277
|
+
|
266
278
|
&.fa-facebook-square {
|
267
279
|
@include btn-sharing-color(rgb(66, 95, 156));
|
268
280
|
}
|
281
|
+
|
269
282
|
&.fa-telegram {
|
270
283
|
@include btn-sharing-color(rgb(39, 159, 217));
|
271
284
|
}
|
285
|
+
|
272
286
|
&.fa-weibo {
|
273
287
|
@include btn-sharing-color(rgb(229, 20, 43));
|
274
288
|
}
|
@@ -292,8 +306,10 @@ nav[data-toggle=toc] {
|
|
292
306
|
|
293
307
|
.license-wrapper {
|
294
308
|
line-height: 1.2rem;
|
309
|
+
|
295
310
|
> a {
|
296
311
|
font-weight: 600;
|
312
|
+
|
297
313
|
&:hover {
|
298
314
|
@extend %link-hover;
|
299
315
|
}
|
@@ -308,7 +324,8 @@ nav[data-toggle=toc] {
|
|
308
324
|
.post-tail-bottom {
|
309
325
|
-ms-flex-wrap: wrap-reverse !important;
|
310
326
|
flex-wrap: wrap-reverse !important;
|
311
|
-
|
327
|
+
|
328
|
+
> div:first-child {
|
312
329
|
width: 100%;
|
313
330
|
margin-top: 1rem;
|
314
331
|
}
|
@@ -324,9 +341,10 @@ nav[data-toggle=toc] {
|
|
324
341
|
@media all and (min-width: 768px) {
|
325
342
|
#post-wrapper {
|
326
343
|
.post-meta {
|
327
|
-
>div:not(:first-child)::before {
|
344
|
+
> div:not(:first-child)::before {
|
328
345
|
@include dot(0.5rem, 0.2rem);
|
329
346
|
}
|
347
|
+
|
330
348
|
&.flex-column {
|
331
349
|
-webkit-box-orient: horizontal !important;
|
332
350
|
-webkit-box-direction: normal !important;
|
@@ -342,7 +360,7 @@ nav[data-toggle=toc] {
|
|
342
360
|
.post-navigation {
|
343
361
|
padding-left: 0;
|
344
362
|
padding-right: 0;
|
345
|
-
margin-left:
|
346
|
-
margin-right:
|
363
|
+
margin-left: -0.5rem;
|
364
|
+
margin-right: -0.5rem;
|
347
365
|
}
|
348
366
|
}
|
data/_sass/layout/tags.scss
CHANGED
data/assets/js/dist/home.min.js
CHANGED
data/assets/js/dist/page.min.js
CHANGED
data/assets/js/dist/post.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Chirpy v4.3.
|
2
|
+
* Chirpy v4.3.4 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
3
|
* © 2019 Cotes Chung
|
4
4
|
* MIT Licensed
|
5
5
|
*/
|
6
|
-
$(function(){$(window).scroll(()=>{$(this).scrollTop()>50&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()}),$("#back-to-top").click(()=>($("body,html").animate({scrollTop:0},800),!1))}),$(function(){const t=$("#sidebar-trigger"),e=$("#search-trigger"),o=$("#search-cancel"),a=$("#search-cleaner"),n=$("#main"),l=$("#topbar-title"),s=$("#search-wrapper"),r=$("#search-result-wrapper"),i=$("#search-results"),c=$("#search-input"),d=$("#search-hints"),u=function(){let t=0;return{block(){t=window.scrollY,$("html,body").scrollTop(0)},release(){$("html,body").scrollTop(t)},getOffset:()=>t}}(),f={on(){t.addClass("unloaded"),l.addClass("unloaded"),e.addClass("unloaded"),s.addClass("d-flex"),o.addClass("loaded")},off(){o.removeClass("loaded"),s.removeClass("d-flex"),t.removeClass("unloaded"),l.removeClass("unloaded"),e.removeClass("unloaded")}},h=function(){let t=!1;return{on(){t||(u.block(),r.removeClass("unloaded"),n.addClass("unloaded"),t=!0)},off(){t&&(i.empty(),d.hasClass("unloaded")&&d.removeClass("unloaded"),r.addClass("unloaded"),a.removeClass("visible"),n.removeClass("unloaded"),u.release(),c.val(""),t=!1)},isVisible:()=>t}}();function p(){return o.hasClass("loaded")}e.click(function(){f.on(),h.on(),c.focus()}),o.click(function(){f.off(),h.off()}),c.focus(function(){s.addClass("input-focus")}),c.focusout(function(){s.removeClass("input-focus")}),c.on("keyup",function(t){8===t.keyCode&&""===c.val()?p()?d.removeClass("unloaded"):h.off():""!==c.val()&&(h.on(),a.hasClass("visible")||a.addClass("visible"),p()&&d.addClass("unloaded"))}),a.on("click",function(){c.val(""),p()?(d.removeClass("unloaded"),i.empty()):h.off(),c.focus(),a.removeClass("visible")})}),$(function(){const t=function(){let t=!1;const e=$("body");return{toggle(){!1===t?e.attr("sidebar-display",""):e.removeAttr("sidebar-display"),t=!t}}}();$("#sidebar-trigger").click(t.toggle),$("#mask").click(t.toggle)}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){const t=$("#topbar-wrapper"),e=$("#toc-wrapper"),o=$(".access"),a=$("#search-input");let n,l=0;const s=5,r=t.outerHeight();$(window).scroll(function(t){$("#topbar-title").is(":hidden")&&(n=!0)}),setInterval(function(){n&&(!function(){var n=$(this).scrollTop();Math.abs(l-n)<=s||(n>l&&n>r?(t.removeClass("topbar-down").addClass("topbar-up"),e.length>0&&e.removeClass("topbar-down"),o.length>0&&o.removeClass("topbar-down"),a.is(":focus")&&a.blur()):n+$(window).height()<$(document).height()&&(t.removeClass("topbar-up").addClass("topbar-down"),e.length>0&&e.addClass("topbar-down"),o.length>0&&o.addClass("topbar-down")),l=n)}(),n=!1)},250)}),$(function(){const t=$("#topbar-title"),e=$("div.post>h1"),o=t.text().trim();let a=e.length>0?e.text().trim():$("h1").text().trim();($("#page-category").length||$("#page-tag").length)&&/\s/.test(a)&&(a=a.replace(/[0-9]/g,"").trim()),$(window).scroll(function(){if($("#post-list").length||e.is(":hidden")||t.is(":hidden")||$("#sidebar.sidebar-expand").length)return!1;$(this).scrollTop()>=95?t.text()!==a&&t.text(a):t.text()!==o&&t.text(o)}),t.click(function(){$("body,html").animate({scrollTop:0},800)})}),$(function(){const t="#main > div.row:first-child > div:first-child";if($(`${t} img`).length<=0)return;const e=document.querySelectorAll(`${t} img[data-src]`);lozad(e).observe(),$(`${t} p > img[data-src],${t} img[data-src].preview-img`).each(function(){let t=$(this).next();const e="EM"===t.prop("tagName")?t.text():"",o=$(this).attr("data-src");$(this).wrap(`<a href="${o}" title="${e}" class="popup"></a>`)}),$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),$(`${t} a`).has("img").addClass("img-link")}),$(function(){let t=$(".timeago").length,e=void 0;const o=$("meta[name=day-prompt]").attr("content"),a=$("meta[name=hour-prompt]").attr("content"),n=$("meta[name=minute-prompt]").attr("content"),l=$("meta[name=justnow-prompt]").attr("content");function s(){return $(".timeago").each(function(){if($(this).children("i").length>0){let e=$(this).clone().children().remove().end().text(),s=$(this).children("i"),r=s.text();$(this).text(function(e,s){let r=new Date,i=new Date(e);if(i.getFullYear()!==r.getFullYear()||i.getMonth()!==r.getMonth())return s;let c=Math.floor((r-i)/1e3),d=Math.floor(c/86400);if(d>=1)return t-=1,` ${d} ${o}`;let u=Math.floor(c/3600);if(u>=1)return` ${u} ${a}`;let $=Math.floor(c/60);return $>=1?` ${$} ${n}`:l}(r,e)),$(this).append(s)}}),0===t&&void 0!==e&&clearInterval(e),t}0!==t&&s()>0&&(e=setInterval(s,6e4))}),$(function(){$("input[type=checkbox]").addClass("unloaded"),$("input[type=checkbox][checked]").before('<i class="fas fa-check-circle checked"></i>'),$("input[type=checkbox]:not([checked])").before('<i class="far fa-circle"></i>')}),$(function(){const t="fas fa-check",e="timeout",o=2e3;function a(t){if($(t)[0].hasAttribute(e)){let o=$(t).attr(e);if(Number(o)>Date.now())return!0}return!1}function n(t){$(t).attr(e,Date.now()+o)}function l(t){$(t).removeAttr(e)}const s=new ClipboardJS(".code-header>button",{target:t=>t.parentNode.nextElementSibling.querySelector("code .rouge-code")});$(".code-header>button").tooltip({trigger:"hover",placement:"left"});const r=$(".code-header>button").children().attr("class");s.on("success",e=>{e.clearSelection();const s=e.trigger;a(s)||(!function(e){$(e).children().attr("class",t)}(s),function(t){const e=$(t).attr("title-succeed");$(t).attr("data-original-title",e).tooltip("show")}(s),n(s),setTimeout(()=>{!function(t){$(t).tooltip("hide").removeAttr("data-original-title")}(s),function(t){$(t).children().attr("class",r)}(s),l(s)},o))}),$("#copy-link").click(t=>{let e=$(t.target);if(a(e))return;const s=window.location.href,r=$("<input>");$("body").append(r),r.val(s).select(),document.execCommand("copy"),r.remove();const i=e.attr("data-original-title"),c=e.attr("title-succeed");e.attr("data-original-title",c).tooltip("show"),n(e),setTimeout(()=>{e.attr("data-original-title",i),l(e)},o)})}),$(function(){$("a[href*='#']").not("[href='#']").not("[href='#0']").click(function(t){if(this.pathname.replace(/^\//,"")===location.pathname.replace(/^\//,"")&&location.hostname===this.hostname){const e=16,o=decodeURI(this.hash);let a=RegExp(/^#fnref:/).test(o),n
|
6
|
+
$(function(){$(window).scroll(()=>{$(this).scrollTop()>50&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()}),$("#back-to-top").click(()=>($("body,html").animate({scrollTop:0},800),!1))}),$(function(){const t=$("#sidebar-trigger"),e=$("#search-trigger"),o=$("#search-cancel"),a=$("#search-cleaner"),n=$("#main"),l=$("#topbar-title"),s=$("#search-wrapper"),r=$("#search-result-wrapper"),i=$("#search-results"),c=$("#search-input"),d=$("#search-hints"),u=function(){let t=0;return{block(){t=window.scrollY,$("html,body").scrollTop(0)},release(){$("html,body").scrollTop(t)},getOffset:()=>t}}(),f={on(){t.addClass("unloaded"),l.addClass("unloaded"),e.addClass("unloaded"),s.addClass("d-flex"),o.addClass("loaded")},off(){o.removeClass("loaded"),s.removeClass("d-flex"),t.removeClass("unloaded"),l.removeClass("unloaded"),e.removeClass("unloaded")}},h=function(){let t=!1;return{on(){t||(u.block(),r.removeClass("unloaded"),n.addClass("unloaded"),t=!0)},off(){t&&(i.empty(),d.hasClass("unloaded")&&d.removeClass("unloaded"),r.addClass("unloaded"),a.removeClass("visible"),n.removeClass("unloaded"),u.release(),c.val(""),t=!1)},isVisible:()=>t}}();function p(){return o.hasClass("loaded")}e.click(function(){f.on(),h.on(),c.focus()}),o.click(function(){f.off(),h.off()}),c.focus(function(){s.addClass("input-focus")}),c.focusout(function(){s.removeClass("input-focus")}),c.on("keyup",function(t){8===t.keyCode&&""===c.val()?p()?d.removeClass("unloaded"):h.off():""!==c.val()&&(h.on(),a.hasClass("visible")||a.addClass("visible"),p()&&d.addClass("unloaded"))}),a.on("click",function(){c.val(""),p()?(d.removeClass("unloaded"),i.empty()):h.off(),c.focus(),a.removeClass("visible")})}),$(function(){const t=function(){let t=!1;const e=$("body");return{toggle(){!1===t?e.attr("sidebar-display",""):e.removeAttr("sidebar-display"),t=!t}}}();$("#sidebar-trigger").click(t.toggle),$("#mask").click(t.toggle)}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){const t=$("#topbar-wrapper"),e=$("#toc-wrapper"),o=$(".access"),a=$("#search-input");let n,l=0;const s=5,r=t.outerHeight();$(window).scroll(function(t){$("#topbar-title").is(":hidden")&&(n=!0)}),setInterval(function(){n&&(!function(){var n=$(this).scrollTop();Math.abs(l-n)<=s||(n>l&&n>r?(t.removeClass("topbar-down").addClass("topbar-up"),e.length>0&&e.removeClass("topbar-down"),o.length>0&&o.removeClass("topbar-down"),a.is(":focus")&&a.blur()):n+$(window).height()<$(document).height()&&(t.removeClass("topbar-up").addClass("topbar-down"),e.length>0&&e.addClass("topbar-down"),o.length>0&&o.addClass("topbar-down")),l=n)}(),n=!1)},250)}),$(function(){const t=$("#topbar-title"),e=$("div.post>h1"),o=t.text().trim();let a=e.length>0?e.text().trim():$("h1").text().trim();($("#page-category").length||$("#page-tag").length)&&/\s/.test(a)&&(a=a.replace(/[0-9]/g,"").trim()),$(window).scroll(function(){if($("#post-list").length||e.is(":hidden")||t.is(":hidden")||$("#sidebar.sidebar-expand").length)return!1;$(this).scrollTop()>=95?t.text()!==a&&t.text(a):t.text()!==o&&t.text(o)}),t.click(function(){$("body,html").animate({scrollTop:0},800)})}),$(function(){const t="#main > div.row:first-child > div:first-child";if($(`${t} img`).length<=0)return;const e=document.querySelectorAll(`${t} img[data-src]`);lozad(e).observe(),$(`${t} p > img[data-src],${t} img[data-src].preview-img`).each(function(){let t=$(this).next();const e="EM"===t.prop("tagName")?t.text():"",o=$(this).attr("data-src");$(this).wrap(`<a href="${o}" title="${e}" class="popup"></a>`)}),$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),$(`${t} a`).has("img").addClass("img-link")}),$(function(){let t=$(".timeago").length,e=void 0;const o=$("meta[name=day-prompt]").attr("content"),a=$("meta[name=hour-prompt]").attr("content"),n=$("meta[name=minute-prompt]").attr("content"),l=$("meta[name=justnow-prompt]").attr("content");function s(){return $(".timeago").each(function(){if($(this).children("i").length>0){let e=$(this).clone().children().remove().end().text(),s=$(this).children("i"),r=s.text();$(this).text(function(e,s){let r=new Date,i=new Date(e);if(i.getFullYear()!==r.getFullYear()||i.getMonth()!==r.getMonth())return s;let c=Math.floor((r-i)/1e3),d=Math.floor(c/86400);if(d>=1)return t-=1,` ${d} ${o}`;let u=Math.floor(c/3600);if(u>=1)return` ${u} ${a}`;let $=Math.floor(c/60);return $>=1?` ${$} ${n}`:l}(r,e)),$(this).append(s)}}),0===t&&void 0!==e&&clearInterval(e),t}0!==t&&s()>0&&(e=setInterval(s,6e4))}),$(function(){$("input[type=checkbox]").addClass("unloaded"),$("input[type=checkbox][checked]").before('<i class="fas fa-check-circle checked"></i>'),$("input[type=checkbox]:not([checked])").before('<i class="far fa-circle"></i>')}),$(function(){const t="fas fa-check",e="timeout",o=2e3;function a(t){if($(t)[0].hasAttribute(e)){let o=$(t).attr(e);if(Number(o)>Date.now())return!0}return!1}function n(t){$(t).attr(e,Date.now()+o)}function l(t){$(t).removeAttr(e)}const s=new ClipboardJS(".code-header>button",{target:t=>t.parentNode.nextElementSibling.querySelector("code .rouge-code")});$(".code-header>button").tooltip({trigger:"hover",placement:"left"});const r=$(".code-header>button").children().attr("class");s.on("success",e=>{e.clearSelection();const s=e.trigger;a(s)||(!function(e){$(e).children().attr("class",t)}(s),function(t){const e=$(t).attr("title-succeed");$(t).attr("data-original-title",e).tooltip("show")}(s),n(s),setTimeout(()=>{!function(t){$(t).tooltip("hide").removeAttr("data-original-title")}(s),function(t){$(t).children().attr("class",r)}(s),l(s)},o))}),$("#copy-link").click(t=>{let e=$(t.target);if(a(e))return;const s=window.location.href,r=$("<input>");$("body").append(r),r.val(s).select(),document.execCommand("copy"),r.remove();const i=e.attr("data-original-title"),c=e.attr("title-succeed");e.attr("data-original-title",c).tooltip("show"),n(e),setTimeout(()=>{e.attr("data-original-title",i),l(e)},o)})}),$(function(){$("a[href*='#']").not("[href='#']").not("[href='#0']").click(function(t){if(this.pathname.replace(/^\//,"")===location.pathname.replace(/^\//,"")&&location.hostname===this.hostname){const e=16,o=decodeURI(this.hash);let a=RegExp(/^#fnref:/).test(o),n=!a&&RegExp(/^#fn:/).test(o),l=o.includes(":")?o.replace(/\:/g,"\\:"):o,s=$(l);if(s.length){t.preventDefault(),history.pushState&&history.pushState(null,null,o);let l=$(this).offset().top,r=s.offset().top;const i=r<l,c=$("#topbar-wrapper").outerHeight();i&&a&&(r-=c+e/2),$("html,body").animate({scrollTop:r},800,()=>{const t=$(s);t.focus();if($("[scroll-focus=true]").length&&$("[scroll-focus=true]").attr("scroll-focus",!1),$(":target").length&&$(":target").attr("scroll-focus",!1),(n||a)&&t.attr("scroll-focus",!0),t.is(":focus"))return!1;t.attr("tabindex","-1"),t.focus()})}}})});
|
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: 4.3.
|
4
|
+
version: 4.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cotes Chung
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.4'
|
97
|
-
description:
|
97
|
+
description:
|
98
98
|
email:
|
99
99
|
- cotes.chung@gmail.com
|
100
100
|
executables: []
|
@@ -201,7 +201,7 @@ metadata:
|
|
201
201
|
source_code_uri: https://github.com/cotes2020/jekyll-theme-chirpy
|
202
202
|
wiki_uri: https://github.com/cotes2020/jekyll-theme-chirpy/wiki
|
203
203
|
plugin_type: theme
|
204
|
-
post_install_message:
|
204
|
+
post_install_message:
|
205
205
|
rdoc_options: []
|
206
206
|
require_paths:
|
207
207
|
- lib
|
@@ -216,8 +216,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
- !ruby/object:Gem::Version
|
217
217
|
version: '0'
|
218
218
|
requirements: []
|
219
|
-
rubygems_version: 3.
|
220
|
-
signing_key:
|
219
|
+
rubygems_version: 3.1.6
|
220
|
+
signing_key:
|
221
221
|
specification_version: 4
|
222
222
|
summary: Chirpy is a minimal, sidebar, responsive web design Jekyll theme that focuses
|
223
223
|
on text presentation.
|