custom-chirpy 5.5.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.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +97 -0
- data/_data/assets/cross_origin.yml +62 -0
- data/_data/assets/self_host.yml +51 -0
- data/_data/authors.yml +17 -0
- data/_data/contact.yml +29 -0
- data/_data/locales/ar.yml +93 -0
- data/_data/locales/bg-BG.yml +83 -0
- data/_data/locales/cs-CZ.yml +91 -0
- data/_data/locales/de-DE.yml +82 -0
- data/_data/locales/el-GR.yml +93 -0
- data/_data/locales/en.yml +93 -0
- data/_data/locales/es-ES.yml +79 -0
- data/_data/locales/fi-FI.yml +92 -0
- data/_data/locales/fr-FR.yml +79 -0
- data/_data/locales/hu-HU.yml +81 -0
- data/_data/locales/id-ID.yml +79 -0
- data/_data/locales/it-IT.yml +93 -0
- data/_data/locales/ko-KR.yml +86 -0
- data/_data/locales/my-MM.yml +79 -0
- data/_data/locales/pt-BR.yml +79 -0
- data/_data/locales/ru-RU.yml +79 -0
- data/_data/locales/tr-TR.yml +79 -0
- data/_data/locales/uk-UA.yml +79 -0
- data/_data/locales/vi-VN.yml +77 -0
- data/_data/locales/zh-CN.yml +85 -0
- data/_data/share.yml +25 -0
- data/_includes/assets-origin.html +12 -0
- data/_includes/comments/disqus.html +54 -0
- data/_includes/comments/giscus.html +56 -0
- data/_includes/comments/utterances.html +51 -0
- data/_includes/comments.html +5 -0
- data/_includes/datetime.html +15 -0
- data/_includes/embed/twitch.html +4 -0
- data/_includes/embed/youtube.html +6 -0
- data/_includes/favicons.html +17 -0
- data/_includes/footer.html +36 -0
- data/_includes/google-analytics.html +14 -0
- data/_includes/head.html +115 -0
- data/_includes/js-selector.html +99 -0
- data/_includes/jsdelivr-combine.html +32 -0
- data/_includes/language-alias.html +70 -0
- data/_includes/mermaid.html +59 -0
- data/_includes/mode-toggle.html +129 -0
- data/_includes/no-linenos.html +10 -0
- data/_includes/post-nav.html +30 -0
- data/_includes/post-paginator.html +88 -0
- data/_includes/post-sharing.html +27 -0
- data/_includes/read-time.html +30 -0
- data/_includes/refactor-content.html +282 -0
- data/_includes/related-posts.html +103 -0
- data/_includes/search-loader.html +46 -0
- data/_includes/search-results.html +11 -0
- data/_includes/sidebar.html +106 -0
- data/_includes/toc.html +16 -0
- data/_includes/topbar.html +70 -0
- data/_includes/trending-tags.html +50 -0
- data/_includes/update-list.html +40 -0
- data/_layouts/archives.html +34 -0
- data/_layouts/categories.html +118 -0
- data/_layouts/category.html +22 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +71 -0
- data/_layouts/home.html +94 -0
- data/_layouts/page.html +63 -0
- data/_layouts/post.html +141 -0
- data/_layouts/tag.html +21 -0
- data/_layouts/tags.html +23 -0
- data/_sass/addon/commons.scss +1731 -0
- data/_sass/addon/module.scss +163 -0
- data/_sass/addon/syntax.scss +275 -0
- data/_sass/addon/variables.scss +30 -0
- data/_sass/colors/dark-syntax.scss +87 -0
- data/_sass/colors/dark-typography.scss +170 -0
- data/_sass/colors/light-syntax.scss +83 -0
- data/_sass/colors/light-typography.scss +104 -0
- data/_sass/jekyll-theme-chirpy.scss +24 -0
- data/_sass/layout/archives.scss +136 -0
- data/_sass/layout/categories.scss +66 -0
- data/_sass/layout/category-tag.scss +73 -0
- data/_sass/layout/home.scss +178 -0
- data/_sass/layout/post.scss +378 -0
- data/_sass/layout/tags.scss +19 -0
- data/_sass/variables-hook.scss +3 -0
- data/assets/404.html +14 -0
- data/assets/css/style.scss +12 -0
- data/assets/feed.xml +61 -0
- data/assets/img/favicons/android-chrome-192x192.png +0 -0
- data/assets/img/favicons/android-chrome-512x512.png +0 -0
- data/assets/img/favicons/apple-touch-icon.png +0 -0
- data/assets/img/favicons/browserconfig.xml +13 -0
- data/assets/img/favicons/favicon-16x16.png +0 -0
- data/assets/img/favicons/favicon-32x32.png +0 -0
- data/assets/img/favicons/favicon.ico +0 -0
- data/assets/img/favicons/mstile-150x150.png +0 -0
- data/assets/img/favicons/site.webmanifest +26 -0
- data/assets/js/data/search.json +20 -0
- data/assets/js/data/swcache.js +54 -0
- data/assets/js/dist/categories.min.js +6 -0
- data/assets/js/dist/commons.min.js +6 -0
- data/assets/js/dist/home.min.js +6 -0
- data/assets/js/dist/misc.min.js +6 -0
- data/assets/js/dist/page.min.js +6 -0
- data/assets/js/dist/post.min.js +6 -0
- data/assets/js/dist/pvreport.min.js +6 -0
- data/assets/js/pwa/app.js +47 -0
- data/assets/js/pwa/sw.js +90 -0
- data/assets/js/pwa/unregister.js +12 -0
- data/assets/robots.txt +10 -0
- metadata +236 -0
@@ -0,0 +1,178 @@
|
|
1
|
+
/*
|
2
|
+
Style for Homepage
|
3
|
+
*/
|
4
|
+
|
5
|
+
.pagination {
|
6
|
+
color: var(--btn-patinator-text-color);
|
7
|
+
font-family: Lato, sans-serif;
|
8
|
+
|
9
|
+
a:hover {
|
10
|
+
text-decoration: none;
|
11
|
+
}
|
12
|
+
|
13
|
+
.page-item {
|
14
|
+
.page-link {
|
15
|
+
color: inherit;
|
16
|
+
width: 2.5rem;
|
17
|
+
height: 2.5rem;
|
18
|
+
padding: 0;
|
19
|
+
display: -webkit-box;
|
20
|
+
-webkit-box-pack: center;
|
21
|
+
-webkit-box-align: center;
|
22
|
+
border-radius: 50%;
|
23
|
+
border: 1px solid var(--btn-paginator-border-color);
|
24
|
+
background-color: var(--button-bg);
|
25
|
+
|
26
|
+
&:hover {
|
27
|
+
background-color: var(--btn-paginator-hover-color);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
&.active {
|
32
|
+
.page-link {
|
33
|
+
background-color: var(--btn-paginator-hover-color);
|
34
|
+
color: var(--btn-text-color);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&.disabled {
|
39
|
+
cursor: not-allowed;
|
40
|
+
|
41
|
+
.page-link {
|
42
|
+
color: rgba(108, 117, 125, 0.57);
|
43
|
+
border-color: var(--btn-paginator-border-color);
|
44
|
+
background-color: var(--button-bg);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
&:first-child .page-link,
|
49
|
+
&:last-child .page-link {
|
50
|
+
border-radius: 50%;
|
51
|
+
}
|
52
|
+
} /* .page-item */
|
53
|
+
} /* .pagination */
|
54
|
+
|
55
|
+
#post-list {
|
56
|
+
margin-top: 1rem;
|
57
|
+
padding-right: 0.5rem;
|
58
|
+
|
59
|
+
.post-preview {
|
60
|
+
padding-top: 1.5rem;
|
61
|
+
padding-bottom: 1rem;
|
62
|
+
border-bottom: 1px solid var(--main-border-color);
|
63
|
+
|
64
|
+
a:hover {
|
65
|
+
@extend %link-hover;
|
66
|
+
}
|
67
|
+
|
68
|
+
h1 {
|
69
|
+
font-size: 1.4rem;
|
70
|
+
margin: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
.post-meta {
|
74
|
+
i {
|
75
|
+
font-size: 0.73rem;
|
76
|
+
|
77
|
+
&:not(:first-child) {
|
78
|
+
margin-left: 1.2rem;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
em {
|
83
|
+
@extend %normal-font-style;
|
84
|
+
}
|
85
|
+
|
86
|
+
.pin {
|
87
|
+
i {
|
88
|
+
-webkit-transform: rotate(45deg);
|
89
|
+
transform: rotate(45deg);
|
90
|
+
padding-left: 3px;
|
91
|
+
color: var(--pin-color);
|
92
|
+
}
|
93
|
+
|
94
|
+
span {
|
95
|
+
display: none;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.post-content {
|
101
|
+
margin-top: 0.6rem;
|
102
|
+
margin-bottom: 0.6rem;
|
103
|
+
color: var(--post-list-text-color);
|
104
|
+
|
105
|
+
> p {
|
106
|
+
/* Make preview shorter on the homepage */
|
107
|
+
margin: 0;
|
108
|
+
overflow: hidden;
|
109
|
+
text-overflow: ellipsis;
|
110
|
+
display: -webkit-box;
|
111
|
+
-webkit-line-clamp: 2;
|
112
|
+
-webkit-box-orient: vertical;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
} /* .post-preview */
|
116
|
+
} /* #post-list */
|
117
|
+
|
118
|
+
/* Hide SideBar and TOC */
|
119
|
+
@media all and (max-width: 830px) {
|
120
|
+
.pagination {
|
121
|
+
justify-content: space-evenly;
|
122
|
+
|
123
|
+
.page-item {
|
124
|
+
&:not(:first-child):not(:last-child) {
|
125
|
+
display: none;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
/* Sidebar is visible */
|
132
|
+
@media all and (min-width: 831px) {
|
133
|
+
#post-list {
|
134
|
+
margin-top: 1.5rem;
|
135
|
+
|
136
|
+
.post-preview .post-meta {
|
137
|
+
.pin {
|
138
|
+
background: var(--pin-bg);
|
139
|
+
border-radius: 5px;
|
140
|
+
line-height: 1.4rem;
|
141
|
+
height: 1.3rem;
|
142
|
+
margin-top: 3px;
|
143
|
+
padding-left: 1px;
|
144
|
+
padding-right: 6px;
|
145
|
+
|
146
|
+
> span {
|
147
|
+
display: inline;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
.pagination {
|
154
|
+
font-size: 0.85rem;
|
155
|
+
|
156
|
+
.page-item {
|
157
|
+
&:not(:last-child) {
|
158
|
+
margin-right: 0.7rem;
|
159
|
+
}
|
160
|
+
|
161
|
+
.page-link {
|
162
|
+
width: 2rem;
|
163
|
+
height: 2rem;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
.page-index {
|
168
|
+
display: none;
|
169
|
+
}
|
170
|
+
} /* .pagination */
|
171
|
+
}
|
172
|
+
|
173
|
+
/* Panel hidden */
|
174
|
+
@media all and (max-width: 1200px) {
|
175
|
+
#post-list {
|
176
|
+
padding-right: 0;
|
177
|
+
}
|
178
|
+
}
|
@@ -0,0 +1,378 @@
|
|
1
|
+
/*
|
2
|
+
Post-specific style
|
3
|
+
*/
|
4
|
+
|
5
|
+
@mixin btn-sharing-color($light-color, $important: false) {
|
6
|
+
@if $important {
|
7
|
+
color: var(--btn-share-color, $light-color) !important;
|
8
|
+
} @else {
|
9
|
+
color: var(--btn-share-color, $light-color);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin btn-post-nav {
|
14
|
+
width: 50%;
|
15
|
+
position: relative;
|
16
|
+
border-color: var(--btn-border-color);
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin dot($pl: 0.25rem, $pr: 0.25rem) {
|
20
|
+
content: "\2022";
|
21
|
+
padding-left: $pl;
|
22
|
+
padding-right: $pr;
|
23
|
+
}
|
24
|
+
|
25
|
+
%text-color {
|
26
|
+
color: var(--text-color);
|
27
|
+
}
|
28
|
+
|
29
|
+
.preview-img {
|
30
|
+
@extend %rounded;
|
31
|
+
|
32
|
+
&:not(.no-bg) {
|
33
|
+
img.lazyloaded {
|
34
|
+
background: var(--img-bg);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
img {
|
39
|
+
aspect-ratio: 40 / 21;
|
40
|
+
-o-object-fit: cover;
|
41
|
+
object-fit: cover;
|
42
|
+
|
43
|
+
@extend %rounded;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
h1 + .post-meta {
|
48
|
+
span + span::before {
|
49
|
+
@include dot;
|
50
|
+
}
|
51
|
+
|
52
|
+
em {
|
53
|
+
@extend %text-color;
|
54
|
+
|
55
|
+
a {
|
56
|
+
@extend %text-color;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.post-tail-wrapper {
|
62
|
+
margin-top: 6rem;
|
63
|
+
border-bottom: 1px double var(--main-border-color);
|
64
|
+
font-size: 0.85rem;
|
65
|
+
|
66
|
+
.post-tail-bottom a {
|
67
|
+
color: inherit;
|
68
|
+
}
|
69
|
+
|
70
|
+
.license-wrapper {
|
71
|
+
line-height: 1.2rem;
|
72
|
+
|
73
|
+
> a {
|
74
|
+
color: var(--text-color);
|
75
|
+
|
76
|
+
&:hover {
|
77
|
+
@extend %link-hover;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
span:last-child {
|
82
|
+
font-size: 0.85rem;
|
83
|
+
}
|
84
|
+
} /* .license-wrapper */
|
85
|
+
|
86
|
+
.post-meta a:not(:hover) {
|
87
|
+
@extend %link-underline;
|
88
|
+
}
|
89
|
+
|
90
|
+
.share-wrapper {
|
91
|
+
vertical-align: middle;
|
92
|
+
-webkit-user-select: none;
|
93
|
+
-moz-user-select: none;
|
94
|
+
user-select: none;
|
95
|
+
|
96
|
+
.share-icons {
|
97
|
+
font-size: 1.2rem;
|
98
|
+
|
99
|
+
> i {
|
100
|
+
position: relative;
|
101
|
+
bottom: 1px;
|
102
|
+
|
103
|
+
@extend %cursor-pointer;
|
104
|
+
|
105
|
+
&:hover {
|
106
|
+
@extend %btn-share-hovor;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
a {
|
111
|
+
&:not(:last-child) {
|
112
|
+
margin-right: 0.25rem;
|
113
|
+
}
|
114
|
+
|
115
|
+
&:hover {
|
116
|
+
text-decoration: none;
|
117
|
+
|
118
|
+
>i {
|
119
|
+
@extend %btn-share-hovor;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
.fab {
|
125
|
+
&.fa-twitter {
|
126
|
+
@include btn-sharing-color(rgba(29, 161, 242, 1));
|
127
|
+
}
|
128
|
+
|
129
|
+
&.fa-facebook-square {
|
130
|
+
@include btn-sharing-color(rgb(66, 95, 156));
|
131
|
+
}
|
132
|
+
|
133
|
+
&.fa-telegram {
|
134
|
+
@include btn-sharing-color(rgb(39, 159, 217));
|
135
|
+
}
|
136
|
+
|
137
|
+
&.fa-linkedin {
|
138
|
+
@include btn-sharing-color(rgb(0, 119, 181));
|
139
|
+
}
|
140
|
+
|
141
|
+
&.fa-weibo {
|
142
|
+
@include btn-sharing-color(rgb(229, 20, 43));
|
143
|
+
}
|
144
|
+
}
|
145
|
+
} /* .share-icons */
|
146
|
+
|
147
|
+
.fas.fa-link {
|
148
|
+
@include btn-sharing-color(rgb(171, 171, 171));
|
149
|
+
}
|
150
|
+
} /* .share-wrapper */
|
151
|
+
}
|
152
|
+
|
153
|
+
.post-tags {
|
154
|
+
line-height: 2rem;
|
155
|
+
}
|
156
|
+
|
157
|
+
.post-navigation {
|
158
|
+
padding-top: 3rem;
|
159
|
+
padding-bottom: 4rem;
|
160
|
+
|
161
|
+
.btn {
|
162
|
+
@include btn-post-nav;
|
163
|
+
|
164
|
+
color: var(--link-color);
|
165
|
+
|
166
|
+
&:hover {
|
167
|
+
background: #2a408e;
|
168
|
+
color: #ffffff;
|
169
|
+
border-color: #2a408e;
|
170
|
+
}
|
171
|
+
|
172
|
+
&.disabled {
|
173
|
+
@include btn-post-nav;
|
174
|
+
|
175
|
+
pointer-events: auto;
|
176
|
+
cursor: not-allowed;
|
177
|
+
background: none;
|
178
|
+
color: gray;
|
179
|
+
|
180
|
+
&:hover {
|
181
|
+
border-color: none;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
&.btn-outline-primary.disabled:focus {
|
186
|
+
box-shadow: none;
|
187
|
+
}
|
188
|
+
|
189
|
+
&::before {
|
190
|
+
color: var(--text-muted-color);
|
191
|
+
font-size: 0.65rem;
|
192
|
+
text-transform: uppercase;
|
193
|
+
content: attr(prompt);
|
194
|
+
}
|
195
|
+
|
196
|
+
&:first-child {
|
197
|
+
border-top-right-radius: 0;
|
198
|
+
border-bottom-right-radius: 0;
|
199
|
+
left: 0.5px;
|
200
|
+
}
|
201
|
+
|
202
|
+
&:last-child {
|
203
|
+
border-top-left-radius: 0;
|
204
|
+
border-bottom-left-radius: 0;
|
205
|
+
right: 0.5px;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
p {
|
210
|
+
font-size: 1.1rem;
|
211
|
+
line-height: 1.5rem;
|
212
|
+
margin-top: 0.3rem;
|
213
|
+
white-space: normal;
|
214
|
+
}
|
215
|
+
} /* .post-navigation */
|
216
|
+
|
217
|
+
@-webkit-keyframes fade-up {
|
218
|
+
from {
|
219
|
+
opacity: 0;
|
220
|
+
position: relative;
|
221
|
+
top: 2rem;
|
222
|
+
}
|
223
|
+
|
224
|
+
to {
|
225
|
+
opacity: 1;
|
226
|
+
position: relative;
|
227
|
+
top: 0;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
@keyframes fade-up {
|
232
|
+
from {
|
233
|
+
opacity: 0;
|
234
|
+
position: relative;
|
235
|
+
top: 2rem;
|
236
|
+
}
|
237
|
+
|
238
|
+
to {
|
239
|
+
opacity: 1;
|
240
|
+
position: relative;
|
241
|
+
top: 0;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
#toc-wrapper {
|
246
|
+
border-left: 1px solid rgba(158, 158, 158, 0.17);
|
247
|
+
position: -webkit-sticky;
|
248
|
+
position: sticky;
|
249
|
+
top: 4rem;
|
250
|
+
transition: top 0.2s ease-in-out;
|
251
|
+
-webkit-animation: fade-up 0.8s;
|
252
|
+
animation: fade-up 0.8s;
|
253
|
+
}
|
254
|
+
|
255
|
+
#toc {
|
256
|
+
ul.nav.navbar-nav {
|
257
|
+
margin: 0.5rem 0;
|
258
|
+
padding: 0;
|
259
|
+
|
260
|
+
li {
|
261
|
+
padding-top: 2px;
|
262
|
+
padding-bottom: 2px;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
nav[data-toggle="toc"] {
|
268
|
+
.nav {
|
269
|
+
.nav > li > a.active {
|
270
|
+
font-weight: 600 !important;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
/* --- Related Posts --- */
|
276
|
+
|
277
|
+
#related-posts {
|
278
|
+
> h3 {
|
279
|
+
@include label(1.1rem, 600);
|
280
|
+
}
|
281
|
+
|
282
|
+
em {
|
283
|
+
@extend %normal-font-style;
|
284
|
+
|
285
|
+
color: var(--relate-post-date);
|
286
|
+
}
|
287
|
+
|
288
|
+
p {
|
289
|
+
font-size: 0.9rem;
|
290
|
+
margin-bottom: 0.5rem;
|
291
|
+
overflow: hidden;
|
292
|
+
text-overflow: ellipsis;
|
293
|
+
display: -webkit-box;
|
294
|
+
-webkit-line-clamp: 2;
|
295
|
+
-webkit-box-orient: vertical;
|
296
|
+
}
|
297
|
+
|
298
|
+
a:hover {
|
299
|
+
text-decoration: none;
|
300
|
+
}
|
301
|
+
|
302
|
+
.card {
|
303
|
+
border-color: var(--card-border-color);
|
304
|
+
background-color: var(--card-bg);
|
305
|
+
box-shadow: 0 0 5px 0 var(--card-box-shadow);
|
306
|
+
transition: all 0.3s ease-in-out;
|
307
|
+
|
308
|
+
h3 {
|
309
|
+
@extend %text-color;
|
310
|
+
}
|
311
|
+
|
312
|
+
&:hover {
|
313
|
+
-webkit-transform: translate3d(0, -3px, 0);
|
314
|
+
transform: translate3d(0, -3px, 0);
|
315
|
+
box-shadow: 0 10px 15px -4px rgba(0, 0, 0, 0.15);
|
316
|
+
}
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
#tail-wrapper {
|
321
|
+
min-height: 2rem;
|
322
|
+
|
323
|
+
> div:last-of-type {
|
324
|
+
margin-bottom: 2rem;
|
325
|
+
}
|
326
|
+
|
327
|
+
#disqus_thread { /* stylelint-disable-line selector-id-pattern */
|
328
|
+
min-height: 8.5rem;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
%btn-share-hovor {
|
333
|
+
color: var(--btn-share-hover-color) !important;
|
334
|
+
}
|
335
|
+
|
336
|
+
.share-label {
|
337
|
+
@include label(inherit, 400, inherit);
|
338
|
+
|
339
|
+
&::after {
|
340
|
+
content: ":";
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
344
|
+
@media all and (max-width: 576px) {
|
345
|
+
.preview-img[data-src] {
|
346
|
+
margin-top: 2.2rem;
|
347
|
+
}
|
348
|
+
|
349
|
+
.post-tail-bottom {
|
350
|
+
flex-wrap: wrap-reverse !important;
|
351
|
+
|
352
|
+
> div:first-child {
|
353
|
+
width: 100%;
|
354
|
+
margin-top: 1rem;
|
355
|
+
}
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
359
|
+
@media all and (max-width: 768px) {
|
360
|
+
.post-content > p > img {
|
361
|
+
max-width: calc(100% + 1rem);
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
/* Hide SideBar and TOC */
|
366
|
+
@media all and (max-width: 849px) {
|
367
|
+
.post-navigation {
|
368
|
+
padding-left: 0;
|
369
|
+
padding-right: 0;
|
370
|
+
margin-left: -0.5rem;
|
371
|
+
margin-right: -0.5rem;
|
372
|
+
}
|
373
|
+
|
374
|
+
.preview-img[data-src] {
|
375
|
+
max-width: 100vw;
|
376
|
+
border-radius: 0;
|
377
|
+
}
|
378
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
Styles for Tab Tags
|
3
|
+
*/
|
4
|
+
|
5
|
+
.tag {
|
6
|
+
border-radius: 0.7em;
|
7
|
+
padding: 6px 8px 7px;
|
8
|
+
margin-right: 0.8rem;
|
9
|
+
line-height: 3rem;
|
10
|
+
letter-spacing: 0;
|
11
|
+
border: 1px solid var(--tag-border) !important;
|
12
|
+
box-shadow: 0 0 3px 0 var(--tag-shadow);
|
13
|
+
|
14
|
+
span {
|
15
|
+
margin-left: 0.6em;
|
16
|
+
font-size: 0.7em;
|
17
|
+
font-family: Oswald, sans-serif;
|
18
|
+
}
|
19
|
+
}
|
data/assets/404.html
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
|
4
|
+
/*
|
5
|
+
If the number of TAB files has changed, the following variable is required.
|
6
|
+
And it must be defined before `@import`.
|
7
|
+
*/
|
8
|
+
$tab-count: {{ site.tabs | size | plus: 1 }}; // plus 1 for home tab
|
9
|
+
|
10
|
+
@import "{{ site.theme }}";
|
11
|
+
|
12
|
+
/* append your custom style below */
|
data/assets/feed.xml
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
permalink: /feed.xml
|
4
|
+
# Atom Feed, reference: https://validator.w3.org/feed/docs/atom.html
|
5
|
+
---
|
6
|
+
|
7
|
+
{% capture source %}
|
8
|
+
<feed xmlns="http://www.w3.org/2005/Atom">
|
9
|
+
<id>{{ "/" | absolute_url }}</id>
|
10
|
+
<title>{{ site.title }}</title>
|
11
|
+
<subtitle>{{ site.description }}</subtitle>
|
12
|
+
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
13
|
+
<author>
|
14
|
+
<name>{{ site.social.name }}</name>
|
15
|
+
<uri>{{ "/" | absolute_url }}</uri>
|
16
|
+
</author>
|
17
|
+
<link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/>
|
18
|
+
<link rel="alternate" type="text/html" hreflang="{{ site.alt_lang | default: site.lang }}"
|
19
|
+
href="{{ '/' | absolute_url }}"/>
|
20
|
+
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
|
21
|
+
<rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights>
|
22
|
+
<icon>{{ site.baseurl }}/assets/img/favicons/favicon.ico</icon>
|
23
|
+
<logo>{{ site.baseurl }}/assets/img/favicons/favicon-96x96.png</logo>
|
24
|
+
|
25
|
+
{% for post in site.posts limit: 5 %}
|
26
|
+
{% assign post_absolute_url = post.url | absolute_url %}
|
27
|
+
<entry>
|
28
|
+
<title>{{ post.title }}</title>
|
29
|
+
<link href="{{ post_absolute_url }}" rel="alternate" type="text/html" title="{{ post.title }}" />
|
30
|
+
<published>{{ post.date | date_to_xmlschema }}</published>
|
31
|
+
{% if post.last_modified_at %}
|
32
|
+
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
|
33
|
+
{% else %}
|
34
|
+
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
35
|
+
{% endif %}
|
36
|
+
<id>{{ post_absolute_url }}</id>
|
37
|
+
<content src="{{ post_absolute_url }}" />
|
38
|
+
<author>
|
39
|
+
<name>{{ post.author | default: site.social.name }}</name>
|
40
|
+
</author>
|
41
|
+
|
42
|
+
{% if post.categories %}
|
43
|
+
{% for category in post.categories %}
|
44
|
+
<category term="{{ category }}" />
|
45
|
+
{% endfor %}
|
46
|
+
{% endif %}
|
47
|
+
|
48
|
+
{% if post.summary %}
|
49
|
+
<summary>{{ post.summary | strip }}</summary>
|
50
|
+
{% else %}
|
51
|
+
<summary>
|
52
|
+
{% include no-linenos.html content=post.content %}
|
53
|
+
{{ content | strip_html | truncate: 400 }}
|
54
|
+
</summary>
|
55
|
+
{% endif %}
|
56
|
+
|
57
|
+
</entry>
|
58
|
+
{% endfor %}
|
59
|
+
</feed>
|
60
|
+
{% endcapture %}
|
61
|
+
{{ source | replace: '&', '&' }}
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
|
5
|
+
<?xml version="1.0" encoding="utf-8"?>
|
6
|
+
<browserconfig>
|
7
|
+
<msapplication>
|
8
|
+
<tile>
|
9
|
+
<square150x150logo src="{{ '/assets/img/favicons/mstile-150x150.png' | relative_url }}" />
|
10
|
+
<TileColor>#da532c</TileColor>
|
11
|
+
</tile>
|
12
|
+
</msapplication>
|
13
|
+
</browserconfig>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|