jekyll-theme-chirpy 5.0.2 → 6.2.2

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 (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +64 -74
  3. data/_data/locales/ar.yml +91 -0
  4. data/_data/locales/bg-BG.yml +81 -0
  5. data/_data/locales/cs-CZ.yml +89 -0
  6. data/_data/locales/de-DE.yml +80 -0
  7. data/_data/locales/el-GR.yml +91 -0
  8. data/_data/locales/en.yml +23 -23
  9. data/_data/locales/es-ES.yml +77 -0
  10. data/_data/locales/fi-FI.yml +90 -0
  11. data/_data/locales/fr-FR.yml +77 -0
  12. data/_data/locales/hu-HU.yml +79 -0
  13. data/_data/locales/id-ID.yml +5 -19
  14. data/_data/locales/it-IT.yml +90 -0
  15. data/_data/locales/ko-KR.yml +12 -19
  16. data/_data/locales/my-MM.yml +77 -0
  17. data/_data/locales/pt-BR.yml +77 -0
  18. data/_data/locales/ru-RU.yml +77 -0
  19. data/_data/locales/sl-SI.yml +91 -0
  20. data/_data/locales/sv-SE.yml +91 -0
  21. data/_data/locales/th.yml +91 -0
  22. data/_data/locales/tr-TR.yml +77 -0
  23. data/_data/locales/uk-UA.yml +77 -0
  24. data/_data/locales/vi-VN.yml +76 -0
  25. data/_data/locales/zh-CN.yml +13 -20
  26. data/_data/locales/zh-TW.yml +83 -0
  27. data/_data/origin/basic.yml +48 -0
  28. data/_data/origin/cors.yml +59 -0
  29. data/_includes/comments/disqus.html +27 -31
  30. data/_includes/comments/giscus.html +64 -0
  31. data/_includes/comments/utterances.html +2 -2
  32. data/_includes/datetime.html +20 -0
  33. data/_includes/embed/twitch.html +4 -0
  34. data/_includes/embed/youtube.html +6 -0
  35. data/_includes/footer.html +31 -32
  36. data/_includes/head.html +66 -46
  37. data/_includes/js-selector.html +83 -45
  38. data/_includes/jsdelivr-combine.html +26 -0
  39. data/_includes/lang.html +1 -1
  40. data/_includes/mermaid.html +30 -29
  41. data/_includes/metadata-hook.html +1 -0
  42. data/_includes/mode-toggle.html +66 -51
  43. data/_includes/notification.html +24 -0
  44. data/_includes/origin-type.html +13 -0
  45. data/_includes/post-nav.html +26 -22
  46. data/_includes/post-paginator.html +79 -76
  47. data/_includes/post-sharing.html +27 -16
  48. data/_includes/read-time.html +17 -10
  49. data/_includes/refactor-content.html +129 -73
  50. data/_includes/related-posts.html +48 -58
  51. data/_includes/search-loader.html +32 -31
  52. data/_includes/search-results.html +4 -5
  53. data/_includes/sidebar.html +79 -67
  54. data/_includes/toc.html +4 -7
  55. data/_includes/topbar.html +62 -56
  56. data/_includes/trending-tags.html +15 -19
  57. data/_includes/update-list.html +14 -15
  58. data/_layouts/archives.html +25 -29
  59. data/_layouts/categories.html +97 -58
  60. data/_layouts/category.html +8 -10
  61. data/_layouts/default.html +67 -31
  62. data/_layouts/home.html +67 -56
  63. data/_layouts/page.html +20 -58
  64. data/_layouts/post.html +85 -94
  65. data/_layouts/tag.html +8 -10
  66. data/_layouts/tags.html +6 -5
  67. data/_sass/addon/commons.scss +679 -878
  68. data/_sass/addon/module.scss +70 -23
  69. data/_sass/addon/syntax.scss +127 -110
  70. data/_sass/addon/variables.scss +16 -18
  71. data/_sass/colors/syntax-dark.scss +138 -0
  72. data/_sass/colors/syntax-light.scss +179 -0
  73. data/_sass/colors/{dark-typography.scss → typography-dark.scss} +58 -56
  74. data/_sass/colors/typography-light.scss +110 -0
  75. data/_sass/layout/archives.scss +86 -89
  76. data/_sass/layout/categories.scss +29 -13
  77. data/_sass/layout/category-tag.scss +9 -10
  78. data/_sass/layout/home.scss +132 -114
  79. data/_sass/layout/post.scss +213 -173
  80. data/_sass/layout/tags.scss +1 -1
  81. data/_sass/main.scss +13 -0
  82. data/assets/404.html +1 -20
  83. data/assets/css/jekyll-theme-chirpy.scss +6 -0
  84. data/assets/feed.xml +2 -2
  85. data/assets/js/data/search.json +8 -5
  86. data/assets/js/data/swcache.js +14 -29
  87. data/assets/js/dist/categories.min.js +2 -4
  88. data/assets/js/dist/commons.min.js +2 -4
  89. data/assets/js/dist/home.min.js +2 -4
  90. data/assets/js/dist/misc.min.js +4 -0
  91. data/assets/js/dist/page.min.js +2 -4
  92. data/assets/js/dist/post.min.js +2 -4
  93. data/assets/js/pwa/app.js +42 -4
  94. data/assets/js/pwa/sw.js +46 -44
  95. data/assets/js/pwa/unregister.js +12 -0
  96. metadata +64 -32
  97. data/_config.yml +0 -175
  98. data/_data/contact.yml +0 -30
  99. data/_data/share.yml +0 -27
  100. data/_includes/css-selector.html +0 -15
  101. data/_includes/no-zero-date.html +0 -13
  102. data/_includes/timeago.html +0 -26
  103. data/_plugins/posts-lastmod-hook.rb +0 -14
  104. data/_sass/colors/dark-syntax.scss +0 -87
  105. data/_sass/colors/light-syntax.scss +0 -79
  106. data/_sass/colors/light-typography.scss +0 -81
  107. data/_sass/jekyll-theme-chirpy.scss +0 -24
  108. data/_tabs/about.md +0 -8
  109. data/_tabs/archives.md +0 -7
  110. data/_tabs/categories.md +0 -6
  111. data/_tabs/tags.md +0 -6
  112. data/assets/css/style.scss +0 -12
  113. data/assets/js/dist/pvreport.min.js +0 -6
  114. data/index.html +0 -4
@@ -2,139 +2,136 @@
2
2
  Style for Archives
3
3
  */
4
4
 
5
- %date-timeline {
6
- content: "";
7
- width: 4px;
8
- left: 75px;
9
- display: inline-block;
10
- float: left;
11
- position: relative;
12
- background-color: var(--timeline-color);
13
- }
14
-
15
5
  #archives {
16
6
  letter-spacing: 0.03rem;
17
7
 
18
- span.lead {
8
+ $timeline-width: 4px;
9
+
10
+ %timeline {
11
+ content: '';
12
+ width: $timeline-width;
13
+ position: relative;
14
+ float: left;
15
+ background-color: var(--timeline-color);
16
+ }
17
+
18
+ .year {
19
+ height: 3.5rem;
19
20
  font-size: 1.5rem;
20
21
  position: relative;
21
- left: 8px;
22
+ left: 2px;
23
+ margin-left: -$timeline-width;
22
24
 
23
- &::after { /* Year dot */
24
- content: "";
25
- display: block;
25
+ &::before {
26
+ @extend %timeline;
27
+
28
+ height: 72px;
29
+ left: 79px;
30
+ bottom: 16px;
31
+ }
32
+
33
+ &:first-child::before {
34
+ @extend %timeline;
35
+
36
+ height: 32px;
37
+ top: 24px;
38
+ }
39
+
40
+ /* Year dot */
41
+ &::after {
42
+ content: '';
43
+ display: inline-block;
26
44
  position: relative;
27
- -webkit-border-radius: 50%;
28
- -moz-border-radius: 50%;
29
45
  border-radius: 50%;
30
46
  width: 12px;
31
47
  height: 12px;
32
- top: -26px;
33
- left: 63px;
48
+ left: 21.5px;
34
49
  border: 3px solid;
35
50
  background-color: var(--timeline-year-dot-color);
36
51
  border-color: var(--timeline-node-bg);
37
52
  box-shadow: 0 0 2px 0 #c2c6cc;
38
53
  z-index: 1;
39
54
  }
40
-
41
- &:not(:first-child) {
42
- position: relative;
43
- left: 4px;
44
-
45
- &::after {
46
- left: 67px;
47
- }
48
- }
49
-
50
- } // #archives span.lead
55
+ }
51
56
 
52
57
  ul {
53
58
  li {
54
59
  font-size: 1.1rem;
55
60
  line-height: 3rem;
56
-
57
- div {
58
- white-space: nowrap;
59
- overflow: hidden;
60
- text-overflow: ellipsis;
61
-
62
- a {
63
- /* post title in Archvies */
64
- margin-left: 2.5rem;
65
- position: relative;
66
- top: 0.1rem;
67
- }
68
- }
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
69
64
 
70
65
  &:nth-child(odd) {
71
- background-color: var(--main-wrapper-bg, #fff);
72
- background-image: linear-gradient(to left, #fff, #fbfbfb, #fbfbfb, #fbfbfb, #fff);
66
+ background-color: var(--main-bg, #ffffff);
67
+ background-image: linear-gradient(
68
+ to left,
69
+ #ffffff,
70
+ #fbfbfb,
71
+ #fbfbfb,
72
+ #fbfbfb,
73
+ #ffffff
74
+ );
73
75
  }
74
76
 
75
- &::after {
76
- @extend %date-timeline;
77
+ &::before {
78
+ @extend %timeline;
77
79
 
78
- height: 2.8rem;
79
- top: -1.3rem;
80
+ top: 0;
81
+ left: 77px;
82
+ height: 3.1rem;
80
83
  }
81
-
82
- &:first-child::before {
83
- @extend %date-timeline;
84
-
85
- height: 3.06rem;
86
- top: -1.61rem;
87
- }
88
- }
89
-
90
- &:not(:last-child) > li:last-child::after {
91
- height: 3.4rem;
92
84
  }
93
85
 
94
- &:last-child > li:last-child::after {
95
- display: none;
86
+ &:last-child li:last-child::before {
87
+ height: 1.5rem;
96
88
  }
97
- } // #archives ul
89
+ } /* #archives ul */
98
90
 
99
91
  .date {
100
92
  white-space: nowrap;
101
93
  display: inline-block;
94
+ position: relative;
95
+ right: 0.5rem;
102
96
 
103
97
  &.month {
104
98
  width: 1.4rem;
105
99
  text-align: center;
106
-
107
- ~ a::before {
108
- /* A dot for Month and Day */
109
- content: "";
110
- display: inline-block;
111
- position: relative;
112
- -webkit-border-radius: 50%;
113
- -moz-border-radius: 50%;
114
- border-radius: 50%;
115
- width: 8px;
116
- height: 8px;
117
- float: left;
118
- top: 1.35rem;
119
- left: 69px;
120
- background-color: var(--timeline-node-bg);
121
- box-shadow: 0 0 3px 0 #c2c6cc;
122
- z-index: 1;
123
- }
124
100
  }
125
101
 
126
102
  &.day {
127
103
  font-size: 85%;
128
- font-family: 'Lato', sans-serif;
129
- text-align: center;
130
- margin-right: -2px;
131
- width: 1.2rem;
132
- position: relative;
133
- left: -0.15rem;
104
+ font-family: Lato, sans-serif;
105
+ }
106
+ }
107
+
108
+ a {
109
+ /* post title in Archvies */
110
+ margin-left: 2.5rem;
111
+ position: relative;
112
+ top: 0.1rem;
113
+
114
+ &:hover {
115
+ border-bottom: none;
134
116
  }
135
- } // #archives .date
136
117
 
137
- } // #archives
118
+ &::before {
119
+ /* the dot before post title */
120
+ content: '';
121
+ display: inline-block;
122
+ position: relative;
123
+ border-radius: 50%;
124
+ width: 8px;
125
+ height: 8px;
126
+ float: left;
127
+ top: 1.35rem;
128
+ left: 71px;
129
+ background-color: var(--timeline-node-bg);
130
+ box-shadow: 0 0 3px 0 #c2c6cc;
131
+ z-index: 1;
132
+ }
133
+ }
134
+ } /* #archives */
138
135
 
139
136
  @media all and (max-width: 576px) {
140
137
  #archives {
@@ -8,15 +8,30 @@
8
8
 
9
9
  .categories {
10
10
  margin-bottom: 2rem;
11
+ border-color: var(--categories-border);
12
+
13
+ &.card,
14
+ .list-group {
15
+ @extend %rounded;
16
+ }
11
17
 
12
18
  .card-header {
13
- padding-right: 12px;
19
+ $radius: calc($base-radius - 1px);
20
+
21
+ padding: 0.75rem;
22
+ border-radius: $radius;
23
+ border-bottom: 0;
24
+
25
+ &.hide-border-bottom {
26
+ border-bottom-left-radius: 0;
27
+ border-bottom-right-radius: 0;
28
+ }
14
29
  }
15
30
 
16
31
  i {
17
32
  @extend %category-icon-color;
18
33
 
19
- font-size: 86%; // fontawesome icons
34
+ font-size: 86%; /* fontawesome icons */
20
35
  }
21
36
 
22
37
  .list-group-item {
@@ -29,9 +44,11 @@
29
44
  border-top-right-radius: 0;
30
45
  }
31
46
 
47
+ &:last-child {
48
+ border-bottom: 0;
49
+ }
32
50
  }
33
-
34
- } // .categories
51
+ } /* .categories */
35
52
 
36
53
  .category-trigger {
37
54
  width: 1.7rem;
@@ -40,28 +57,27 @@
40
57
  text-align: center;
41
58
  color: #6c757d !important;
42
59
 
43
- &:hover {
44
- i {
45
- color: var(--categories-icon-hover-color);
46
- }
47
- }
48
-
49
60
  i {
50
61
  position: relative;
51
62
  height: 0.7rem;
52
63
  width: 1rem;
53
64
  transition: transform 300ms ease;
54
65
  }
66
+
67
+ &:hover {
68
+ i {
69
+ color: var(--categories-icon-hover-color);
70
+ }
71
+ }
55
72
  }
56
73
 
57
- @media (hover: hover) { // only works on desktop
74
+ /* only works on desktop */
75
+ @media (hover: hover) {
58
76
  .category-trigger:hover {
59
77
  background-color: var(--categories-hover-bg);
60
78
  }
61
79
  }
62
80
 
63
81
  .rotate {
64
- -ms-transform: rotate(-90deg); /* IE 9 */
65
- -webkit-transform: rotate(-90deg); /* Safari 3-8 */
66
82
  transform: rotate(-90deg);
67
83
  }
@@ -13,31 +13,30 @@
13
13
  line-height: 1.5rem;
14
14
  padding: 0.6rem 0;
15
15
 
16
- &::before { // dot
17
- background: #999;
16
+ /* dot */
17
+ &::before {
18
+ background: #999999;
18
19
  width: 5px;
19
20
  height: 5px;
20
21
  border-radius: 50%;
21
22
  display: block;
22
- content: "";
23
+ content: '';
23
24
  position: relative;
24
25
  top: 0.6rem;
25
26
  margin-right: 0.5rem;
26
27
  }
27
28
 
28
- > a { /* post's title */
29
+ /* post's title */
30
+ > a {
29
31
  @extend %no-bottom-border;
30
32
 
31
33
  font-size: 1.1rem;
32
34
  }
33
-
34
- > span:last-child {
35
- white-space: nowrap;
36
- } /* post's date */
37
35
  }
38
36
  }
39
37
 
40
- #page-tag h1 > i { // tag icon
38
+ /* tag icon */
39
+ #page-tag h1 > i {
41
40
  font-size: 1.2rem;
42
41
  }
43
42
 
@@ -51,7 +50,7 @@
51
50
  a:hover {
52
51
  @extend %link-hover;
53
52
 
54
- margin-bottom: -1px; // Avoid jumping
53
+ margin-bottom: -1px; /* Avoid jumping */
55
54
  }
56
55
  }
57
56
 
@@ -2,9 +2,97 @@
2
2
  Style for Homepage
3
3
  */
4
4
 
5
+ #post-list {
6
+ margin-top: 2rem;
7
+
8
+ .card-wrapper {
9
+ display: block;
10
+
11
+ &:hover {
12
+ text-decoration: none;
13
+ }
14
+
15
+ &:not(:last-child) {
16
+ margin-bottom: 1.25rem;
17
+ }
18
+ }
19
+
20
+ .card {
21
+ %img-radius {
22
+ border-radius: $base-radius $base-radius 0 0;
23
+ }
24
+
25
+ .preview-img {
26
+ height: 10rem;
27
+
28
+ @extend %img-radius;
29
+
30
+ img {
31
+ width: 100%;
32
+ height: 100%;
33
+ -o-object-fit: cover;
34
+ object-fit: cover;
35
+
36
+ @extend %img-radius;
37
+ }
38
+ }
39
+
40
+ .card-body {
41
+ min-height: 10.5rem;
42
+ padding: 1rem;
43
+
44
+ .card-title {
45
+ @extend %text-clip;
46
+
47
+ color: var(--heading-color) !important;
48
+ font-size: 1.25rem;
49
+ }
50
+
51
+ %muted {
52
+ color: var(--text-muted-color) !important;
53
+ }
54
+
55
+ .card-text.content {
56
+ @extend %muted;
57
+
58
+ p {
59
+ @extend %text-clip;
60
+
61
+ line-height: 1.5;
62
+ margin: 0;
63
+ }
64
+ }
65
+
66
+ .post-meta {
67
+ @extend %muted;
68
+
69
+ i {
70
+ &:not(:first-child) {
71
+ margin-left: 1.5rem;
72
+ }
73
+ }
74
+
75
+ em {
76
+ @extend %normal-font-style;
77
+
78
+ color: inherit;
79
+ }
80
+
81
+ > div:first-child {
82
+ display: block;
83
+ white-space: nowrap;
84
+ overflow: hidden;
85
+ text-overflow: ellipsis;
86
+ }
87
+ }
88
+ }
89
+ }
90
+ } /* #post-list */
91
+
5
92
  .pagination {
6
- color: var(--btn-patinator-text-color);
7
- font-family: 'Lato', sans-serif;
93
+ color: var(--text-color);
94
+ font-family: Lato, sans-serif;
95
+ justify-content: space-evenly;
8
96
 
9
97
  a:hover {
10
98
  text-decoration: none;
@@ -12,26 +100,27 @@
12
100
 
13
101
  .page-item {
14
102
  .page-link {
15
- color: inherit;
16
- width: 2.5rem;
17
- height: 2.5rem;
18
- padding: 0;
103
+ color: var(--btn-patinator-text-color);
104
+ padding: 0 0.6rem;
19
105
  display: -webkit-box;
20
106
  -webkit-box-pack: center;
21
107
  -webkit-box-align: center;
22
- border-radius: 50%;
23
- border: 1px solid var(--btn-paginator-border-color);
24
- background-color: var(--button-bg);
108
+ border-radius: 0.5rem;
109
+ border: 0;
110
+ background-color: inherit;
111
+ }
25
112
 
26
- &:hover {
113
+ &.active {
114
+ .page-link {
27
115
  background-color: var(--btn-paginator-hover-color);
28
116
  }
29
117
  }
30
118
 
31
- &.active {
119
+ &:not(.active) {
32
120
  .page-link {
33
- background-color: var(--btn-paginator-hover-color);
34
- color: var(--btn-text-color);
121
+ &:hover {
122
+ box-shadow: inset var(--btn-border-color) 0 0 0 1px;
123
+ }
35
124
  }
36
125
  }
37
126
 
@@ -40,145 +129,74 @@
40
129
 
41
130
  .page-link {
42
131
  color: rgba(108, 117, 125, 0.57);
43
- border-color: var(--btn-paginator-border-color);
44
- background-color: var(--button-bg);
45
132
  }
46
133
  }
134
+ } /* .page-item */
135
+ } /* .pagination */
47
136
 
48
- &:first-child .page-link,
49
- &:last-child .page-link {
50
- border-radius: 50%;
51
- }
52
- } // .page-item
53
-
54
- } // .pagination
55
-
56
- #post-list {
57
- margin-top: 1rem;
58
- padding-right: 0.5rem;
59
-
60
- .post-preview {
61
- padding-top: 1.5rem;
62
- padding-bottom: 1rem;
63
- border-bottom: 1px solid var(--main-border-color);
64
-
65
- a:hover {
66
- @extend %link-hover;
67
- }
68
-
69
- h1 {
70
- font-size: 1.4rem;
71
- margin: 0;
137
+ /* Tablet */
138
+ @media all and (min-width: 768px) {
139
+ #post-list {
140
+ %img-radius {
141
+ border-radius: 0 $base-radius $base-radius 0;
72
142
  }
73
143
 
74
- .post-meta {
75
- i {
76
- font-size: 0.73rem;
77
-
78
- &:not(:first-child) {
79
- margin-left: 1.2rem;
80
- }
144
+ .card {
145
+ .preview-img {
146
+ width: 20rem;
147
+ height: 11.55rem; // can hold 2 lines each for title and content
81
148
  }
82
149
 
83
- em {
84
- @extend %normal-font-style;
85
- }
86
- }
87
-
88
- .post-content {
89
- margin-top: 0.6rem;
90
- margin-bottom: 0.6rem;
91
- color: var(--post-list-text-color);
92
-
93
- > p {
94
- /* Make preview shorter on the homepage */
95
- margin: 0;
96
- overflow: hidden;
97
- text-overflow: ellipsis;
98
- display: -webkit-box;
99
- -webkit-line-clamp: 2;
100
- -webkit-box-orient: vertical;
101
- }
102
- }
150
+ .card-body {
151
+ min-height: 10.75rem;
152
+ width: 60%;
153
+ padding: 1.75rem 1.75rem 1.25rem 1.75rem;
103
154
 
104
- .pin {
105
- > i {
106
- transform: rotate(45deg);
107
- padding-left: 3px;
108
- color: var(--pin-color);
109
- }
155
+ .card-text {
156
+ display: inherit !important;
157
+ }
110
158
 
111
- > span {
112
- display: none;
159
+ .post-meta {
160
+ i {
161
+ &:not(:first-child) {
162
+ margin-left: 1.75rem;
163
+ }
164
+ }
165
+ }
113
166
  }
114
167
  }
115
-
116
- } // .post-preview
117
- } // #post-list
168
+ }
169
+ }
118
170
 
119
171
  /* Hide SideBar and TOC */
120
172
  @media all and (max-width: 830px) {
121
173
  .pagination {
122
- justify-content: space-evenly;
123
-
124
174
  .page-item {
125
175
  &:not(:first-child):not(:last-child) {
126
176
  display: none;
127
177
  }
128
-
129
178
  }
130
-
131
179
  }
132
180
  }
133
181
 
134
182
  /* Sidebar is visible */
135
183
  @media all and (min-width: 831px) {
136
184
  #post-list {
137
- margin-top: 1.5rem;
138
-
139
- .post-preview .post-meta {
140
- .pin {
141
- background: var(--pin-bg);
142
- border-radius: 5px;
143
- line-height: 1.4rem;
144
- height: 1.3rem;
145
- margin-top: 3px;
146
- padding-left: 1px;
147
- padding-right: 6px;
148
-
149
- > span {
150
- display: inline;
151
- }
152
- }
153
- }
185
+ margin-top: 2.5rem;
154
186
  }
155
187
 
156
188
  .pagination {
157
189
  font-size: 0.85rem;
190
+ justify-content: center;
158
191
 
159
192
  .page-item {
160
193
  &:not(:last-child) {
161
194
  margin-right: 0.7rem;
162
195
  }
163
-
164
- .page-link {
165
- width: 2rem;
166
- height: 2rem;
167
- }
168
-
169
196
  }
170
197
 
171
198
  .page-index {
172
199
  display: none;
173
200
  }
174
-
175
- } // .pagination
176
-
177
- }
178
-
179
- /* Pannel hidden */
180
- @media all and (max-width: 1200px) {
181
- #post-list {
182
- padding-right: 0;
183
- }
201
+ } /* .pagination */
184
202
  }