jekyll-theme-chirpy 3.2.2 → 4.0.1

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.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -29
  3. data/_config.yml +11 -20
  4. data/_includes/css-selector.html +5 -0
  5. data/_includes/disqus.html +1 -1
  6. data/_includes/favicons.html +11 -26
  7. data/_includes/head.html +16 -22
  8. data/_includes/js-selector.html +29 -5
  9. data/_includes/refactor-content.html +0 -5
  10. data/_includes/timeago.html +5 -1
  11. data/_includes/topbar.html +1 -1
  12. data/_layouts/home.html +1 -1
  13. data/_layouts/post.html +6 -7
  14. data/_sass/addon/commons.scss +84 -56
  15. data/_sass/addon/module.scss +6 -5
  16. data/_sass/colors/dark-typography.scss +1 -0
  17. data/_sass/colors/light-syntax.scss +1 -1
  18. data/_sass/colors/light-typography.scss +2 -1
  19. data/_sass/jekyll-theme-chirpy.scss +1 -1
  20. data/_sass/layout/post.scss +8 -0
  21. data/{404.html → assets/404.html} +0 -0
  22. data/{feed.xml → assets/feed.xml} +4 -3
  23. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  24. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  25. data/assets/img/favicons/apple-touch-icon.png +0 -0
  26. data/assets/img/favicons/browserconfig.xml +3 -6
  27. data/assets/img/favicons/favicon-16x16.png +0 -0
  28. data/assets/img/favicons/favicon-32x32.png +0 -0
  29. data/assets/img/favicons/favicon.ico +0 -0
  30. data/assets/img/favicons/mstile-150x150.png +0 -0
  31. data/assets/img/favicons/site.webmanifest +26 -0
  32. data/assets/js/data/swcache.js +64 -0
  33. data/assets/js/dist/categories.min.js +2 -2
  34. data/assets/js/dist/commons.min.js +6 -0
  35. data/assets/js/dist/home.min.js +2 -2
  36. data/assets/js/dist/page.min.js +2 -2
  37. data/assets/js/dist/post.min.js +2 -2
  38. data/assets/js/dist/pvreport.min.js +2 -2
  39. data/{app.js → assets/js/pwa/app.js} +1 -0
  40. data/assets/js/pwa/sw.js +87 -0
  41. data/{robots.txt → assets/robots.txt} +1 -1
  42. metadata +14 -32
  43. data/_includes/lozad.html +0 -10
  44. data/assets/img/favicons/android-icon-144x144.png +0 -0
  45. data/assets/img/favicons/android-icon-192x192.png +0 -0
  46. data/assets/img/favicons/android-icon-36x36.png +0 -0
  47. data/assets/img/favicons/android-icon-48x48.png +0 -0
  48. data/assets/img/favicons/android-icon-72x72.png +0 -0
  49. data/assets/img/favicons/android-icon-96x96.png +0 -0
  50. data/assets/img/favicons/apple-icon-114x114.png +0 -0
  51. data/assets/img/favicons/apple-icon-120x120.png +0 -0
  52. data/assets/img/favicons/apple-icon-144x144.png +0 -0
  53. data/assets/img/favicons/apple-icon-152x152.png +0 -0
  54. data/assets/img/favicons/apple-icon-180x180.png +0 -0
  55. data/assets/img/favicons/apple-icon-57x57.png +0 -0
  56. data/assets/img/favicons/apple-icon-60x60.png +0 -0
  57. data/assets/img/favicons/apple-icon-72x72.png +0 -0
  58. data/assets/img/favicons/apple-icon-76x76.png +0 -0
  59. data/assets/img/favicons/apple-icon-precomposed.png +0 -0
  60. data/assets/img/favicons/apple-icon.png +0 -0
  61. data/assets/img/favicons/favicon-96x96.png +0 -0
  62. data/assets/img/favicons/manifest.json +0 -54
  63. data/assets/img/favicons/ms-icon-144x144.png +0 -0
  64. data/assets/img/favicons/ms-icon-150x150.png +0 -0
  65. data/assets/img/favicons/ms-icon-310x310.png +0 -0
  66. data/assets/img/favicons/ms-icon-70x70.png +0 -0
  67. data/assets/js/data/cache-list.js +0 -65
  68. data/sw.js +0 -61
@@ -229,7 +229,7 @@ footer {
229
229
 
230
230
  @extend %no-bottom-border;
231
231
 
232
- color: #6c757d;
232
+ color: inherit;
233
233
  }
234
234
 
235
235
  }
@@ -357,6 +357,7 @@ footer {
357
357
  }
358
358
 
359
359
  .post-content {
360
+ font-size: 1.08rem;
360
361
  line-height: 1.8;
361
362
  margin-top: 2rem;
362
363
  overflow-wrap: break-word;
@@ -364,37 +365,21 @@ footer {
364
365
 
365
366
  img[data-src] {
366
367
  margin: 0.5rem 0;
367
- }
368
368
 
369
- @mixin img-caption {
370
- + em {
371
- display: block;
372
- text-align: center;
373
- font-style: normal;
374
- font-size: 80%;
375
- padding: 0;
376
- color: #6d6c6c;
369
+ &.left {
370
+ float: left;
371
+ margin: 0.75rem 1rem 1rem 0;
377
372
  }
378
- }
379
-
380
- @mixin img($caption: false) {
381
373
 
382
- > img[data-src] {
383
- @if $caption {
384
- @include img-caption;
385
- }
386
-
387
- &.left {
388
- float: left;
389
- margin: 0.75rem 1rem 1rem 0;
390
- }
391
-
392
- &.right {
393
- float: right;
394
- margin: 0.75rem 0 1rem 1rem;
395
- }
374
+ &.right {
375
+ float: right;
376
+ margin: 0.75rem 0 1rem 1rem;
377
+ }
396
378
 
379
+ &.shadow {
380
+ filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.08));
397
381
  }
382
+
398
383
  }
399
384
 
400
385
  a {
@@ -402,7 +387,7 @@ footer {
402
387
  color: var(--link-color);
403
388
  }
404
389
 
405
- &:not(.img-hyperlink) {
390
+ &:not(.img-link) {
406
391
  @extend %link-color;
407
392
  @extend %link-underline;
408
393
  &:hover {
@@ -410,23 +395,26 @@ footer {
410
395
  }
411
396
  }
412
397
 
413
- &.img-hyperlink {
414
- @include img;
415
- @include img-caption;
416
- }
417
- }
398
+ &.popup { // created by `_includes/img-extra.html`
399
+ cursor: zoom-in;
418
400
 
419
- > p {
420
- > img[data-src]:not(.normal):not(.left):not(.right) {
421
- @include align-center;
401
+ > img[data-src]:not(.normal):not(.left):not(.right) {
402
+ @include align-center;
403
+ }
422
404
  }
423
- }
424
405
 
425
- p {
426
- @include img(true);
406
+ &.img-link {
407
+ + em {
408
+ display: block;
409
+ text-align: center;
410
+ font-style: normal;
411
+ font-size: 80%;
412
+ padding: 0;
413
+ color: #6d6c6c;
414
+ }
415
+ }
427
416
 
428
- font-size: 1.08rem;
429
- }
417
+ } // a
430
418
 
431
419
  ul {
432
420
  // attribute 'hide-bullet' was added by liquid
@@ -521,6 +509,10 @@ footer {
521
509
 
522
510
  /* --- Effects classes --- */
523
511
 
512
+ .semi-bold {
513
+ font-weight: 600 !important;
514
+ }
515
+
524
516
  .loaded {
525
517
  display: block !important;
526
518
 
@@ -581,6 +573,20 @@ footer {
581
573
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
582
574
  }
583
575
 
576
+ /* --- Overriding --- */
577
+
578
+ // magnific-popup
579
+ figure .mfp-title {
580
+ text-align: center;
581
+ padding-right: 0;
582
+ margin-top: 0.5rem;
583
+ }
584
+
585
+ // mermaid
586
+ .mermaid {
587
+ text-align: center;
588
+ }
589
+
584
590
  /* --- sidebar layout --- */
585
591
 
586
592
  $tab-count: 5 !default;
@@ -599,6 +605,15 @@ $sidebar-display: "sidebar-display";
599
605
  z-index: 99;
600
606
  background: var(--sidebar-bg);
601
607
 
608
+ /* Hide scrollbar for Chrome, Safari and Opera */
609
+ &::-webkit-scrollbar {
610
+ display: none;
611
+ }
612
+
613
+ /* Hide scrollbar for IE, Edge and Firefox */
614
+ -ms-overflow-style: none; /* IE and Edge */
615
+ scrollbar-width: none; /* Firefox */
616
+
602
617
  a {
603
618
  @include sidebar-links;
604
619
 
@@ -892,7 +907,6 @@ $sidebar-display: "sidebar-display";
892
907
  border-radius: 0;
893
908
  padding: 0.18rem 0.3rem;
894
909
  color: var(--text-color);
895
- font-size: 95%;
896
910
 
897
911
  &:focus {
898
912
  box-shadow: none;
@@ -1058,7 +1072,14 @@ $sidebar-display: "sidebar-display";
1058
1072
  -webkit-transform: translate3d(0, -5px, 0);
1059
1073
  }
1060
1074
 
1061
- /* --- Responsive Design --- */
1075
+ /*
1076
+ Responsive Design:
1077
+
1078
+ {sidebar, content, panel} >= 1120px screen width
1079
+ {sidebar, content} >= 850px screen width
1080
+ {content} <= 849px screen width
1081
+
1082
+ */
1062
1083
 
1063
1084
  @media all and (max-width: 576px) {
1064
1085
 
@@ -1108,8 +1129,8 @@ $sidebar-display: "sidebar-display";
1108
1129
 
1109
1130
  }
1110
1131
 
1111
- /* Hide Sidebar and TOC */
1112
- @media all and (max-width: 830px) {
1132
+ /* hide sidebar and panel */
1133
+ @media all and (max-width: 849px) {
1113
1134
  %slide {
1114
1135
  -webkit-transition: transform 0.4s ease;
1115
1136
  transition: transform 0.4s ease;
@@ -1226,16 +1247,17 @@ $sidebar-display: "sidebar-display";
1226
1247
  }
1227
1248
  }
1228
1249
 
1229
- }
1250
+ } // max-width: 849px
1230
1251
 
1252
+ /* Phone & Pad */
1231
1253
  @media all and (min-width: 577px) and (max-width: 1199px) {
1232
1254
  footer > .d-flex > div {
1233
1255
  width: 312px;
1234
1256
  }
1235
1257
  }
1236
1258
 
1237
- /* Sidebar visible */
1238
- @media all and (min-width: 831px) {
1259
+ /* Sidebar is visible */
1260
+ @media all and (min-width: 850px) {
1239
1261
  /* Solved jumping scrollbar */
1240
1262
  html {
1241
1263
  overflow-y: scroll;
@@ -1282,9 +1304,9 @@ $sidebar-display: "sidebar-display";
1282
1304
 
1283
1305
  }
1284
1306
 
1285
- /* iPad 9.7" horizontal */
1286
- @media all and (min-width: 992px) and (max-width: 1024px) {
1287
- #main-wrapper .col-lg-11 {
1307
+ /* Pad horizontal */
1308
+ @media all and (min-width: 992px) and (max-width: 1199px) {
1309
+ #main .col-lg-11 {
1288
1310
  -webkit-box-flex: 0;
1289
1311
  -ms-flex: 0 0 96%;
1290
1312
  flex: 0 0 96%;
@@ -1292,11 +1314,17 @@ $sidebar-display: "sidebar-display";
1292
1314
  }
1293
1315
  }
1294
1316
 
1295
- /* Compact icons in sidebar & TOC hidden */
1296
- @media all and (min-width: 832px) and (max-width: 1199px) {
1317
+ /* Compact icons in sidebar & panel hidden */
1318
+ @media all and (min-width: 850px) and (max-width: 1199px) {
1297
1319
 
1298
1320
  #sidebar {
1299
1321
  width: $sidebar-width-small;
1322
+
1323
+ .site-subtitle {
1324
+ margin-left: 1rem;
1325
+ margin-right: 1rem;
1326
+ }
1327
+
1300
1328
  .sidebar-bottom {
1301
1329
  a,
1302
1330
  span {
@@ -1341,7 +1369,7 @@ $sidebar-display: "sidebar-display";
1341
1369
 
1342
1370
  }
1343
1371
 
1344
- /* Pannel hidden */
1372
+ /* panel hidden */
1345
1373
  @media all and (max-width: 1199px) {
1346
1374
  #panel-wrapper {
1347
1375
  display: none;
@@ -1403,7 +1431,7 @@ $sidebar-display: "sidebar-display";
1403
1431
  }
1404
1432
  }
1405
1433
 
1406
- .post-content p {
1434
+ .post-content {
1407
1435
  font-size: 1.03rem;
1408
1436
  }
1409
1437
 
@@ -1596,7 +1624,7 @@ $sidebar-display: "sidebar-display";
1596
1624
  } // #sidebar
1597
1625
 
1598
1626
  footer > div.d-flex {
1599
- width: 87%;
1627
+ width: 92%;
1600
1628
  max-width: 1140px;
1601
1629
  }
1602
1630
 
@@ -4,6 +4,12 @@
4
4
 
5
5
  /* ---------- scss placeholder --------- */
6
6
 
7
+ %heading {
8
+ color: var(--heading-color);
9
+ font-weight: 400;
10
+ font-family: 'Lato', 'Microsoft Yahei', sans-serif;
11
+ }
12
+
7
13
  %tag-hover {
8
14
  background: var(--tag-hover);
9
15
  transition: background 0.35s ease-in-out;
@@ -33,11 +39,6 @@
33
39
  border-bottom: none;
34
40
  }
35
41
 
36
- %heading {
37
- font-weight: 400;
38
- font-family: 'Lato', 'Microsoft Yahei', sans-serif;
39
- }
40
-
41
42
  %section {
42
43
  #post-wrapper & {
43
44
  line-height: 1.2;
@@ -15,6 +15,7 @@
15
15
 
16
16
  /* common color */
17
17
  --text-color: rgb(175, 176, 177);
18
+ --heading-color: #cccccc;
18
19
  --text-muted-color: rgb(107, 116, 124);
19
20
  --link-color: rgb(138, 180, 248);
20
21
  --link-underline-color: rgb(82, 108, 150);
@@ -68,7 +68,7 @@
68
68
 
69
69
  /* --- custom light colors --- */
70
70
  --highlight-bg-color: #f7f7f7;
71
- --highlighter-rouge-color: #353a3d;
71
+ --highlighter-rouge-color: #2f2f2f;
72
72
  --highlight-lineno-color: #c2c6cc;
73
73
  --highlight-lineno-border-color: #e9ecef;
74
74
  --inline-code-bg: #f3f3f3;
@@ -9,7 +9,8 @@
9
9
  --main-wrapper-bg: white;
10
10
  --main-border-color: #f3f3f3;
11
11
  --btn-border-color: #e9ecef;
12
- --text-color: #333333;
12
+ --text-color: #34343c;
13
+ --heading-color: black;
13
14
  --blockquote-border-color: #eee;
14
15
  --blockquote-text-color: #9a9a9a;
15
16
  --link-color: #2a408e;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * The styles for Jekyll theme Chirpy
3
3
  *
4
- * Chirpy v3.2.2 (https://github.com/cotes2020/jekyll-theme-chirpy)
4
+ * Chirpy v4.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy)
5
5
  * © 2019 Cotes Chung
6
6
  * MIT Licensed
7
7
  */
@@ -23,6 +23,10 @@
23
23
  padding-right: $pr;
24
24
  }
25
25
 
26
+ .timeago::before {
27
+ content: attr(prefix);
28
+ }
29
+
26
30
  #post-wrapper .post-meta {
27
31
  > div:nth-child(2) {
28
32
  > span:not(:first-child)::before {
@@ -151,6 +155,10 @@
151
155
  line-height: 1rem;
152
156
  padding-top: 0.5rem;
153
157
  padding-bottom: 0.5rem;
158
+
159
+ &.nav-link:not(.active) {
160
+ color: inherit;
161
+ }
154
162
  }
155
163
 
156
164
  /* --- Related Posts --- */
File without changes
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: compress
3
+ permalink: /feed.xml
3
4
  # Atom Feed, reference: https://validator.w3.org/feed/docs/atom.html
4
5
  ---
5
6
 
@@ -10,14 +11,14 @@ layout: compress
10
11
  <subtitle>{{ site.description }}</subtitle>
11
12
  <updated>{{ site.time | date_to_xmlschema }}</updated>
12
13
  <author>
13
- <name>{{ site.author }}</name>
14
+ <name>{{ site.social.name }}</name>
14
15
  <uri>{{ "/" | absolute_url }}</uri>
15
16
  </author>
16
17
  <link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/>
17
18
  <link rel="alternate" type="text/html" hreflang="{{ site.lang | default: 'en' }}"
18
19
  href="{{ '/' | absolute_url }}"/>
19
20
  <generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
20
- <rights> © {{ 'now' | date: '%Y' }} {{ site.author }} </rights>
21
+ <rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights>
21
22
  <icon>{{ site.baseurl }}/assets/img/favicons/favicon.ico</icon>
22
23
  <logo>{{ site.baseurl }}/assets/img/favicons/favicon-96x96.png</logo>
23
24
 
@@ -35,7 +36,7 @@ layout: compress
35
36
  <id>{{ post_absolute_url }}</id>
36
37
  <content src="{{ post_absolute_url }}" />
37
38
  <author>
38
- <name>{{ site.author }}</name>
39
+ <name>{{ post.author | default: site.social.name }}</name>
39
40
  </author>
40
41
 
41
42
  {% if post.categories %}
@@ -1,16 +1,13 @@
1
1
  ---
2
2
  layout: compress
3
-
4
- # A part of the Favicons
5
3
  ---
4
+
6
5
  <?xml version="1.0" encoding="utf-8"?>
7
6
  <browserconfig>
8
7
  <msapplication>
9
8
  <tile>
10
- <square70x70logo src="{{ site.baseurl }}/assets/img/favicons/ms-icon-70x70.png" />
11
- <square150x150logo src="{{ site.baseurl }}/assets/img/favicons/ms-icon-150x150.png" />
12
- <square310x310logo src="{{ site.baseurl }}/assets/img/favicons/ms-icon-310x310.png" />
13
- <TileColor>#ffffff</TileColor>
9
+ <square150x150logo src="{{ '/assets/img/favicons/mstile-150x150.png' | relative_url }}" />
10
+ <TileColor>#da532c</TileColor>
14
11
  </tile>
15
12
  </msapplication>
16
13
  </browserconfig>
Binary file
Binary file
Binary file
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: compress
3
+ ---
4
+
5
+ {% assign favicon_path = "/assets/img/favicons" | relative_url %}
6
+
7
+ {
8
+ "name": "{{ site.title }}",
9
+ "short_name": "{{ site.title }}",
10
+ "description": "{{ site.description }}",
11
+ "icons": [
12
+ {
13
+ "src": "{{ favicon_path }}/android-chrome-192x192.png",
14
+ "sizes": "192x192",
15
+ "type": "image/png"
16
+ },
17
+ {
18
+ "src": "{{ favicon_path }}/android-chrome-512x512.png",
19
+ "sizes": "512x512",
20
+ "type": "image/png"
21
+ }],
22
+ "start_url": "{{ '/index.html' | relative_url }}",
23
+ "theme_color": "#2a1e6b",
24
+ "background_color": "#ffffff",
25
+ "display": "fullscreen"
26
+ }