jekyll-theme-chirpy-clarkezone 5.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +105 -0
  4. data/_data/assets/cross_origin.yml +62 -0
  5. data/_data/assets/self_host.yml +51 -0
  6. data/_data/authors.yml +17 -0
  7. data/_data/contact.yml +30 -0
  8. data/_data/locales/bg-BG.yml +83 -0
  9. data/_data/locales/de-DE.yml +82 -0
  10. data/_data/locales/en.yml +93 -0
  11. data/_data/locales/es-ES.yml +79 -0
  12. data/_data/locales/fr-FR.yml +79 -0
  13. data/_data/locales/hu-HU.yml +81 -0
  14. data/_data/locales/id-ID.yml +79 -0
  15. data/_data/locales/ko-KR.yml +86 -0
  16. data/_data/locales/my-MM.yml +79 -0
  17. data/_data/locales/pt-BR.yml +79 -0
  18. data/_data/locales/ru-RU.yml +79 -0
  19. data/_data/locales/tr-TR.yml +79 -0
  20. data/_data/locales/uk-UA.yml +79 -0
  21. data/_data/locales/vi-VN.yml +77 -0
  22. data/_data/locales/zh-CN.yml +85 -0
  23. data/_data/share.yml +27 -0
  24. data/_includes/assets-origin.html +12 -0
  25. data/_includes/comments/disqus.html +54 -0
  26. data/_includes/comments/giscus.html +56 -0
  27. data/_includes/comments/utterances.html +51 -0
  28. data/_includes/comments.html +5 -0
  29. data/_includes/datetime.html +15 -0
  30. data/_includes/favicons.html +17 -0
  31. data/_includes/footer.html +36 -0
  32. data/_includes/google-analytics.html +14 -0
  33. data/_includes/head.html +115 -0
  34. data/_includes/js-selector.html +100 -0
  35. data/_includes/jsdelivr-combine.html +32 -0
  36. data/_includes/language-alias.html +70 -0
  37. data/_includes/mermaid.html +57 -0
  38. data/_includes/mode-toggle.html +129 -0
  39. data/_includes/no-linenos.html +10 -0
  40. data/_includes/post-nav.html +30 -0
  41. data/_includes/post-paginator.html +88 -0
  42. data/_includes/post-sharing.html +27 -0
  43. data/_includes/read-time.html +30 -0
  44. data/_includes/refactor-content.html +282 -0
  45. data/_includes/related-posts.html +103 -0
  46. data/_includes/search-loader.html +46 -0
  47. data/_includes/search-results.html +11 -0
  48. data/_includes/sidebar.html +93 -0
  49. data/_includes/toc.html +16 -0
  50. data/_includes/topbar.html +70 -0
  51. data/_includes/trending-tags.html +50 -0
  52. data/_includes/update-list.html +40 -0
  53. data/_layouts/archives.html +34 -0
  54. data/_layouts/categories.html +118 -0
  55. data/_layouts/category.html +22 -0
  56. data/_layouts/compress.html +10 -0
  57. data/_layouts/default.html +71 -0
  58. data/_layouts/home.html +94 -0
  59. data/_layouts/page.html +63 -0
  60. data/_layouts/post.html +150 -0
  61. data/_layouts/tag.html +21 -0
  62. data/_layouts/tags.html +23 -0
  63. data/_sass/addon/commons.scss +1667 -0
  64. data/_sass/addon/module.scss +154 -0
  65. data/_sass/addon/syntax.scss +283 -0
  66. data/_sass/addon/variables.scss +30 -0
  67. data/_sass/colors/dark-syntax.scss +87 -0
  68. data/_sass/colors/dark-typography.scss +157 -0
  69. data/_sass/colors/light-syntax.scss +83 -0
  70. data/_sass/colors/light-typography.scss +93 -0
  71. data/_sass/jekyll-theme-chirpy-clarkezone.scss +24 -0
  72. data/_sass/layout/archives.scss +136 -0
  73. data/_sass/layout/categories.scss +66 -0
  74. data/_sass/layout/category-tag.scss +73 -0
  75. data/_sass/layout/home.scss +178 -0
  76. data/_sass/layout/post.scss +369 -0
  77. data/_sass/layout/tags.scss +19 -0
  78. data/_sass/variables-hook.scss +3 -0
  79. data/assets/404.html +14 -0
  80. data/assets/css/style.scss +12 -0
  81. data/assets/feed.xml +61 -0
  82. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  83. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  84. data/assets/img/favicons/apple-touch-icon.png +0 -0
  85. data/assets/img/favicons/browserconfig.xml +13 -0
  86. data/assets/img/favicons/favicon-16x16.png +0 -0
  87. data/assets/img/favicons/favicon-32x32.png +0 -0
  88. data/assets/img/favicons/favicon.ico +0 -0
  89. data/assets/img/favicons/mstile-150x150.png +0 -0
  90. data/assets/img/favicons/site.webmanifest +26 -0
  91. data/assets/js/data/search.json +18 -0
  92. data/assets/js/data/swcache.js +55 -0
  93. data/assets/js/dist/categories.min.js +6 -0
  94. data/assets/js/dist/commons.min.js +6 -0
  95. data/assets/js/dist/home.min.js +6 -0
  96. data/assets/js/dist/misc.min.js +6 -0
  97. data/assets/js/dist/page.min.js +6 -0
  98. data/assets/js/dist/post.min.js +6 -0
  99. data/assets/js/dist/pvreport.min.js +6 -0
  100. data/assets/js/pwa/app.js +47 -0
  101. data/assets/js/pwa/sw.js +89 -0
  102. data/assets/js/pwa/unregister.js +12 -0
  103. data/assets/robots.txt +10 -0
  104. metadata +236 -0
@@ -0,0 +1,369 @@
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
+ img.preview-img {
30
+ margin: 0;
31
+ border-radius: 6px;
32
+
33
+ &.bg[data-loaded="true"] {
34
+ background: var(--preview-img-bg);
35
+ }
36
+ }
37
+
38
+ h1 + .post-meta {
39
+ span + span::before {
40
+ @include dot;
41
+ }
42
+
43
+ em {
44
+ @extend %text-color;
45
+
46
+ a {
47
+ @extend %text-color;
48
+ }
49
+ }
50
+ }
51
+
52
+ .post-tail-wrapper {
53
+ margin-top: 6rem;
54
+ border-bottom: 1px double var(--main-border-color);
55
+ font-size: 0.85rem;
56
+
57
+ .post-tail-bottom a {
58
+ color: inherit;
59
+ }
60
+
61
+ .license-wrapper {
62
+ line-height: 1.2rem;
63
+
64
+ > a {
65
+ color: var(--text-color);
66
+
67
+ &:hover {
68
+ @extend %link-hover;
69
+ }
70
+ }
71
+
72
+ span:last-child {
73
+ font-size: 0.85rem;
74
+ }
75
+ } /* .license-wrapper */
76
+
77
+ .post-meta a:not(:hover) {
78
+ @extend %link-underline;
79
+ }
80
+
81
+ .share-wrapper {
82
+ vertical-align: middle;
83
+ -webkit-user-select: none;
84
+ -moz-user-select: none;
85
+ user-select: none;
86
+
87
+ .share-icons {
88
+ font-size: 1.2rem;
89
+
90
+ > i {
91
+ position: relative;
92
+ bottom: 1px;
93
+
94
+ @extend %cursor-pointer;
95
+
96
+ &:hover {
97
+ @extend %btn-share-hovor;
98
+ }
99
+ }
100
+
101
+ a {
102
+ &:not(:last-child) {
103
+ margin-right: 0.25rem;
104
+ }
105
+
106
+ &:hover {
107
+ text-decoration: none;
108
+
109
+ >i {
110
+ @extend %btn-share-hovor;
111
+ }
112
+ }
113
+ }
114
+
115
+ .fab {
116
+ &.fa-twitter {
117
+ @include btn-sharing-color(rgba(29, 161, 242, 1));
118
+ }
119
+
120
+ &.fa-facebook-square {
121
+ @include btn-sharing-color(rgb(66, 95, 156));
122
+ }
123
+
124
+ &.fa-telegram {
125
+ @include btn-sharing-color(rgb(39, 159, 217));
126
+ }
127
+
128
+ &.fa-linkedin {
129
+ @include btn-sharing-color(rgb(0, 119, 181));
130
+ }
131
+
132
+ &.fa-weibo {
133
+ @include btn-sharing-color(rgb(229, 20, 43));
134
+ }
135
+ }
136
+ } /* .share-icons */
137
+
138
+ .fas.fa-link {
139
+ @include btn-sharing-color(rgb(171, 171, 171));
140
+ }
141
+ } /* .share-wrapper */
142
+ }
143
+
144
+ .post-tags {
145
+ line-height: 2rem;
146
+ }
147
+
148
+ .post-navigation {
149
+ padding-top: 3rem;
150
+ padding-bottom: 4rem;
151
+
152
+ .btn {
153
+ @include btn-post-nav;
154
+
155
+ color: var(--link-color);
156
+
157
+ &:hover {
158
+ background: #2a408e;
159
+ color: #ffffff;
160
+ border-color: #2a408e;
161
+ }
162
+
163
+ &.disabled {
164
+ @include btn-post-nav;
165
+
166
+ pointer-events: auto;
167
+ cursor: not-allowed;
168
+ background: none;
169
+ color: gray;
170
+
171
+ &:hover {
172
+ border-color: none;
173
+ }
174
+ }
175
+
176
+ &.btn-outline-primary.disabled:focus {
177
+ box-shadow: none;
178
+ }
179
+
180
+ &::before {
181
+ color: var(--text-muted-color);
182
+ font-size: 0.65rem;
183
+ text-transform: uppercase;
184
+ content: attr(prompt);
185
+ }
186
+
187
+ &:first-child {
188
+ border-top-right-radius: 0;
189
+ border-bottom-right-radius: 0;
190
+ left: 0.5px;
191
+ }
192
+
193
+ &:last-child {
194
+ border-top-left-radius: 0;
195
+ border-bottom-left-radius: 0;
196
+ right: 0.5px;
197
+ }
198
+ }
199
+
200
+ p {
201
+ font-size: 1.1rem;
202
+ line-height: 1.5rem;
203
+ margin-top: 0.3rem;
204
+ white-space: normal;
205
+ }
206
+ } /* .post-navigation */
207
+
208
+ @-webkit-keyframes fade-up {
209
+ from {
210
+ opacity: 0;
211
+ position: relative;
212
+ top: 2rem;
213
+ }
214
+
215
+ to {
216
+ opacity: 1;
217
+ position: relative;
218
+ top: 0;
219
+ }
220
+ }
221
+
222
+ @keyframes fade-up {
223
+ from {
224
+ opacity: 0;
225
+ position: relative;
226
+ top: 2rem;
227
+ }
228
+
229
+ to {
230
+ opacity: 1;
231
+ position: relative;
232
+ top: 0;
233
+ }
234
+ }
235
+
236
+ #toc-wrapper {
237
+ border-left: 1px solid rgba(158, 158, 158, 0.17);
238
+ position: -webkit-sticky;
239
+ position: sticky;
240
+ top: 4rem;
241
+ transition: top 0.2s ease-in-out;
242
+ -webkit-animation: fade-up 0.8s;
243
+ animation: fade-up 0.8s;
244
+ }
245
+
246
+ #toc {
247
+ ul.nav.navbar-nav {
248
+ margin: 0.5rem 0;
249
+ padding: 0;
250
+
251
+ li {
252
+ padding-top: 2px;
253
+ padding-bottom: 2px;
254
+ }
255
+ }
256
+ }
257
+
258
+ nav[data-toggle="toc"] {
259
+ .nav {
260
+ .nav > li > a.active {
261
+ font-weight: 600 !important;
262
+ }
263
+ }
264
+ }
265
+
266
+ /* --- Related Posts --- */
267
+
268
+ #related-posts {
269
+ > h3 {
270
+ @include label(1.1rem, 600);
271
+ }
272
+
273
+ em {
274
+ @extend %normal-font-style;
275
+
276
+ color: var(--relate-post-date);
277
+ }
278
+
279
+ p {
280
+ font-size: 0.9rem;
281
+ margin-bottom: 0.5rem;
282
+ overflow: hidden;
283
+ text-overflow: ellipsis;
284
+ display: -webkit-box;
285
+ -webkit-line-clamp: 2;
286
+ -webkit-box-orient: vertical;
287
+ }
288
+
289
+ a:hover {
290
+ text-decoration: none;
291
+ }
292
+
293
+ .card {
294
+ border-color: var(--card-border-color);
295
+ background-color: var(--card-bg);
296
+ box-shadow: 0 0 5px 0 var(--card-box-shadow);
297
+ transition: all 0.3s ease-in-out;
298
+
299
+ h3 {
300
+ @extend %text-color;
301
+ }
302
+
303
+ &:hover {
304
+ -webkit-transform: translate3d(0, -3px, 0);
305
+ transform: translate3d(0, -3px, 0);
306
+ box-shadow: 0 10px 15px -4px rgba(0, 0, 0, 0.15);
307
+ }
308
+ }
309
+ }
310
+
311
+ #tail-wrapper {
312
+ min-height: 2rem;
313
+
314
+ > div:last-of-type {
315
+ margin-bottom: 2rem;
316
+ }
317
+
318
+ #disqus_thread { /* stylelint-disable-line selector-id-pattern */
319
+ min-height: 8.5rem;
320
+ }
321
+ }
322
+
323
+ %btn-share-hovor {
324
+ color: var(--btn-share-hover-color) !important;
325
+ }
326
+
327
+ .share-label {
328
+ @include label(inherit, 400, inherit);
329
+
330
+ &::after {
331
+ content: ":";
332
+ }
333
+ }
334
+
335
+ @media all and (max-width: 576px) {
336
+ .preview-img[data-src] {
337
+ margin-top: 2.2rem;
338
+ }
339
+
340
+ .post-tail-bottom {
341
+ flex-wrap: wrap-reverse !important;
342
+
343
+ > div:first-child {
344
+ width: 100%;
345
+ margin-top: 1rem;
346
+ }
347
+ }
348
+ }
349
+
350
+ @media all and (max-width: 768px) {
351
+ .post-content > p > img {
352
+ max-width: calc(100% + 1rem);
353
+ }
354
+ }
355
+
356
+ /* Hide SideBar and TOC */
357
+ @media all and (max-width: 849px) {
358
+ .post-navigation {
359
+ padding-left: 0;
360
+ padding-right: 0;
361
+ margin-left: -0.5rem;
362
+ margin-right: -0.5rem;
363
+ }
364
+
365
+ .preview-img[data-src] {
366
+ max-width: 100vw;
367
+ border-radius: 0;
368
+ }
369
+ }
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ /*
2
+ Appending custom SCSS variables will override the default ones in `_sass/addon/variables.scsss`
3
+ */
data/assets/404.html ADDED
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: page
3
+ title: "404: Page not found"
4
+ permalink: /404.html
5
+
6
+ redirect_from:
7
+ - /norobots/
8
+ - /assets/
9
+ - /posts/
10
+ ---
11
+
12
+ <div class="lead">
13
+ <p>{{site.data.locales[site.lang].not_found.statment }}</p>
14
+ </div>
@@ -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.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: '&', '&amp;' }}
@@ -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
@@ -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
+ }
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: compress
3
+ swcache: true
4
+ ---
5
+
6
+ [
7
+ {% for post in site.posts %}
8
+ {
9
+ "title": {{ post.title | jsonify }},
10
+ "url": {{ post.url | relative_url | jsonify }},
11
+ "categories": {{ post.categories | join: ', ' | jsonify }},
12
+ "tags": {{ post.tags | join: ', ' | jsonify }},
13
+ "date": "{{ post.date }}",
14
+ {% include no-linenos.html content=post.content %}
15
+ "snippet": {{ content | strip_html | strip_newlines | truncate: 200 | jsonify }}
16
+ }{% unless forloop.last %},{% endunless %}
17
+ {% endfor %}
18
+ ]
@@ -0,0 +1,55 @@
1
+ ---
2
+ layout: compress
3
+
4
+ # The list to be cached by PWA
5
+ ---
6
+
7
+ const resource = [
8
+
9
+ /* --- CSS --- */
10
+ '{{ "/assets/css/style.css" | relative_url }}',
11
+
12
+ /* --- PWA --- */
13
+ '{{ "/app.js" | relative_url }}',
14
+ '{{ "/sw.js" | relative_url }}',
15
+
16
+ /* --- HTML --- */
17
+ '{{ "/index.html" | relative_url }}',
18
+ '{{ "/404.html" | relative_url }}',
19
+ {% for tab in site.tabs %}
20
+ '{{ tab.url | relative_url }}',
21
+ {% endfor %}
22
+
23
+ /* --- Favicons & compressed JS --- */
24
+ {% assign cache_list = site.static_files | where: 'swcache', true %}
25
+ {% for file in cache_list %}
26
+ '{{ file.path | relative_url }}'{%- unless forloop.last -%},{%- endunless -%}
27
+ {% endfor %}
28
+
29
+ ];
30
+
31
+ /* The request url with below domain will be cached */
32
+ const allowedDomains = [
33
+ {% if site.google_analytics.id != empty and site.google_analytics.id %}
34
+ 'www.googletagmanager.com',
35
+ 'www.google-analytics.com',
36
+ {% endif %}
37
+
38
+ '{{ site.url | split: "//" | last }}',
39
+
40
+ {% if site.img_cdn contains '//' and site.img_cdn %}
41
+ '{{ site.img_cdn | split: '//' | last | split: '/' | first }}',
42
+ {% endif %}
43
+
44
+ 'fonts.gstatic.com',
45
+ 'fonts.googleapis.com',
46
+ 'cdn.jsdelivr.net',
47
+ 'polyfill.io'
48
+ ];
49
+
50
+ /* Requests that include the following path will be banned */
51
+ const denyUrls = [
52
+ {% if site.google_analytics.pv.cache_path %}
53
+ '{{ site.google_analytics.pv.cache_path | absolute_url }}'
54
+ {% endif %}
55
+ ];
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Chirpy v5.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
+ * © 2019 Cotes Chung
4
+ * MIT Licensed
5
+ */
6
+ $(function(){$(window).scroll(()=>{50<$(this).scrollTop()&&"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(){$(".mode-toggle").click(o=>{o=$(o.target);(o.prop("tagName")==="button".toUpperCase()?o:o.parent()).blur(),flipMode()})});const ScrollHelper=function(){const o=$("body"),e="data-topbar-visible",t=$("#topbar-wrapper").outerHeight();let a=0,r=!1,l=!1;return{hideTopbar:()=>o.attr(e,!1),showTopbar:()=>o.attr(e,!0),addScrollUpTask:()=>{a+=1,r=r||!0},popScrollUpTask:()=>--a,hasScrollUpTask:()=>0<a,topbarLocked:()=>!0===r,unlockTopbar:()=>r=!1,getTopbarHeight:()=>t,orientationLocked:()=>!0===l,lockOrientation:()=>l=!0,unLockOrientation:()=>l=!1}}();$(function(){const o=$("#sidebar-trigger"),e=$("#search-trigger"),t=$("#search-cancel"),a=$("#main"),r=$("#topbar-title"),l=$("#search-wrapper"),n=$("#search-result-wrapper"),s=$("#search-results"),i=$("#search-input"),c=$("#search-hints"),d=function(){let o=0;return{block(){o=window.scrollY,$("html,body").scrollTop(0)},release(){$("html,body").scrollTop(o)},getOffset(){return o}}}(),p={on(){o.addClass("unloaded"),r.addClass("unloaded"),e.addClass("unloaded"),l.addClass("d-flex"),t.addClass("loaded")},off(){t.removeClass("loaded"),l.removeClass("d-flex"),o.removeClass("unloaded"),r.removeClass("unloaded"),e.removeClass("unloaded")}},f=function(){let o=!1;return{on(){o||(d.block(),n.removeClass("unloaded"),a.addClass("unloaded"),o=!0)},off(){o&&(s.empty(),c.hasClass("unloaded")&&c.removeClass("unloaded"),n.addClass("unloaded"),a.removeClass("unloaded"),d.release(),i.val(""),o=!1)},isVisible(){return o}}}();function u(){return t.hasClass("loaded")}e.click(function(){p.on(),f.on(),i.focus()}),t.click(function(){p.off(),f.off()}),i.focus(function(){l.addClass("input-focus")}),i.focusout(function(){l.removeClass("input-focus")}),i.on("input",()=>{""===i.val()?u()?c.removeClass("unloaded"):f.off():(f.on(),u()&&c.addClass("unloaded"))})}),$(function(){var o=function(){const o="sidebar-display";let e=!1;const t=$("body");return{toggle(){!1===e?t.attr(o,""):t.removeAttr(o),e=!e}}}();$("#sidebar-trigger").click(o.toggle),$("#mask").click(o.toggle)}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){const e=$("#search-input"),t=ScrollHelper.getTopbarHeight();let o,a=0;function r(){0!==$(window).scrollTop()&&(ScrollHelper.lockOrientation(),ScrollHelper.hideTopbar())}screen.orientation?screen.orientation.onchange=()=>{var o=screen.orientation.type;"landscape-primary"!==o&&"landscape-secondary"!==o||r()}:$(window).on("orientationchange",()=>{$(window).width()<$(window).height()&&r()}),$(window).scroll(()=>{o=o||!0}),setInterval(()=>{o&&(!function(){var o=$(this).scrollTop();if(!(Math.abs(a-o)<=t)){if(o>a)ScrollHelper.hideTopbar(),e.is(":focus")&&e.blur();else if(o+$(window).height()<$(document).height()){if(ScrollHelper.hasScrollUpTask())return;ScrollHelper.topbarLocked()?ScrollHelper.unlockTopbar():ScrollHelper.orientationLocked()?ScrollHelper.unLockOrientation():ScrollHelper.showTopbar()}a=o}}(),o=!1)},250)}),$(function(){var o="div.post>h1:first-of-type",e=$(o);const n=$("#topbar-title");if(0!==e.length&&!e.hasClass("dynamic-title")&&!n.is(":hidden")){const s=n.text().trim();let a=e.text().trim(),r=!1,l=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(a)&&(a=a.replace(/[0-9]/g,"").trim()),e.offset().top<$(window).scrollTop()&&n.text(a);new IntersectionObserver(o=>{var e,t;r?(t=$(window).scrollTop(),e=l<t,l=t,t=o[0],e?0===t.intersectionRatio&&n.text(a):1===t.intersectionRatio&&n.text(s)):r=!0},{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(o)),n.click(function(){$("body,html").animate({scrollTop:0},800)})}}),$(function(){var o=$(".collapse");o.on("hide.bs.collapse",function(){var o="h_"+$(this).attr("id").substring("l_".length);o&&($(`#${o} .far.fa-folder-open`).attr("class","far fa-folder fa-fw"),$(`#${o} i.fas`).addClass("rotate"),$("#"+o).removeClass("hide-border-bottom"))}),o.on("show.bs.collapse",function(){var o="h_"+$(this).attr("id").substring("l_".length);o&&($(`#${o} .far.fa-folder`).attr("class","far fa-folder-open fa-fw"),$(`#${o} i.fas`).removeClass("rotate"),$("#"+o).addClass("hide-border-bottom"))})});
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Chirpy v5.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
+ * © 2019 Cotes Chung
4
+ * MIT Licensed
5
+ */
6
+ $(function(){$(window).scroll(()=>{50<$(this).scrollTop()&&"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(){$(".mode-toggle").click(o=>{o=$(o.target);(o.prop("tagName")==="button".toUpperCase()?o:o.parent()).blur(),flipMode()})});const ScrollHelper=function(){const o=$("body"),e="data-topbar-visible",t=$("#topbar-wrapper").outerHeight();let l=0,r=!1,a=!1;return{hideTopbar:()=>o.attr(e,!1),showTopbar:()=>o.attr(e,!0),addScrollUpTask:()=>{l+=1,r=r||!0},popScrollUpTask:()=>--l,hasScrollUpTask:()=>0<l,topbarLocked:()=>!0===r,unlockTopbar:()=>r=!1,getTopbarHeight:()=>t,orientationLocked:()=>!0===a,lockOrientation:()=>a=!0,unLockOrientation:()=>a=!1}}();$(function(){const o=$("#sidebar-trigger"),e=$("#search-trigger"),t=$("#search-cancel"),l=$("#main"),r=$("#topbar-title"),a=$("#search-wrapper"),n=$("#search-result-wrapper"),s=$("#search-results"),i=$("#search-input"),c=$("#search-hints"),d=function(){let o=0;return{block(){o=window.scrollY,$("html,body").scrollTop(0)},release(){$("html,body").scrollTop(o)},getOffset(){return o}}}(),p={on(){o.addClass("unloaded"),r.addClass("unloaded"),e.addClass("unloaded"),a.addClass("d-flex"),t.addClass("loaded")},off(){t.removeClass("loaded"),a.removeClass("d-flex"),o.removeClass("unloaded"),r.removeClass("unloaded"),e.removeClass("unloaded")}},u=function(){let o=!1;return{on(){o||(d.block(),n.removeClass("unloaded"),l.addClass("unloaded"),o=!0)},off(){o&&(s.empty(),c.hasClass("unloaded")&&c.removeClass("unloaded"),n.addClass("unloaded"),l.removeClass("unloaded"),d.release(),i.val(""),o=!1)},isVisible(){return o}}}();function f(){return t.hasClass("loaded")}e.click(function(){p.on(),u.on(),i.focus()}),t.click(function(){p.off(),u.off()}),i.focus(function(){a.addClass("input-focus")}),i.focusout(function(){a.removeClass("input-focus")}),i.on("input",()=>{""===i.val()?f()?c.removeClass("unloaded"):u.off():(u.on(),f()&&c.addClass("unloaded"))})}),$(function(){var o=function(){const o="sidebar-display";let e=!1;const t=$("body");return{toggle(){!1===e?t.attr(o,""):t.removeAttr(o),e=!e}}}();$("#sidebar-trigger").click(o.toggle),$("#mask").click(o.toggle)}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){const e=$("#search-input"),t=ScrollHelper.getTopbarHeight();let o,l=0;function r(){0!==$(window).scrollTop()&&(ScrollHelper.lockOrientation(),ScrollHelper.hideTopbar())}screen.orientation?screen.orientation.onchange=()=>{var o=screen.orientation.type;"landscape-primary"!==o&&"landscape-secondary"!==o||r()}:$(window).on("orientationchange",()=>{$(window).width()<$(window).height()&&r()}),$(window).scroll(()=>{o=o||!0}),setInterval(()=>{o&&(!function(){var o=$(this).scrollTop();if(!(Math.abs(l-o)<=t)){if(o>l)ScrollHelper.hideTopbar(),e.is(":focus")&&e.blur();else if(o+$(window).height()<$(document).height()){if(ScrollHelper.hasScrollUpTask())return;ScrollHelper.topbarLocked()?ScrollHelper.unlockTopbar():ScrollHelper.orientationLocked()?ScrollHelper.unLockOrientation():ScrollHelper.showTopbar()}l=o}}(),o=!1)},250)}),$(function(){var o="div.post>h1:first-of-type",e=$(o);const n=$("#topbar-title");if(0!==e.length&&!e.hasClass("dynamic-title")&&!n.is(":hidden")){const s=n.text().trim();let l=e.text().trim(),r=!1,a=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(l)&&(l=l.replace(/[0-9]/g,"").trim()),e.offset().top<$(window).scrollTop()&&n.text(l);new IntersectionObserver(o=>{var e,t;r?(t=$(window).scrollTop(),e=a<t,a=t,t=o[0],e?0===t.intersectionRatio&&n.text(l):1===t.intersectionRatio&&n.text(s)):r=!0},{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(o)),n.click(function(){$("body,html").animate({scrollTop:0},800)})}});
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Chirpy v5.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
+ * © 2019 Cotes Chung
4
+ * MIT Licensed
5
+ */
6
+ $(function(){$(window).scroll(()=>{50<$(this).scrollTop()&&"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(){$(".mode-toggle").click(e=>{e=$(e.target);(e.prop("tagName")==="button".toUpperCase()?e:e.parent()).blur(),flipMode()})});const ScrollHelper=function(){const e=$("body"),t="data-topbar-visible",o=$("#topbar-wrapper").outerHeight();let a=0,l=!1,r=!1;return{hideTopbar:()=>e.attr(t,!1),showTopbar:()=>e.attr(t,!0),addScrollUpTask:()=>{a+=1,l=l||!0},popScrollUpTask:()=>--a,hasScrollUpTask:()=>0<a,topbarLocked:()=>!0===l,unlockTopbar:()=>l=!1,getTopbarHeight:()=>o,orientationLocked:()=>!0===r,lockOrientation:()=>r=!0,unLockOrientation:()=>r=!1}}(),LocaleHelper=($(function(){const e=$("#sidebar-trigger"),t=$("#search-trigger"),o=$("#search-cancel"),a=$("#main"),l=$("#topbar-title"),r=$("#search-wrapper"),n=$("#search-result-wrapper"),s=$("#search-results"),i=$("#search-input"),c=$("#search-hints"),d=function(){let e=0;return{block(){e=window.scrollY,$("html,body").scrollTop(0)},release(){$("html,body").scrollTop(e)},getOffset(){return e}}}(),p={on(){e.addClass("unloaded"),l.addClass("unloaded"),t.addClass("unloaded"),r.addClass("d-flex"),o.addClass("loaded")},off(){o.removeClass("loaded"),r.removeClass("d-flex"),e.removeClass("unloaded"),l.removeClass("unloaded"),t.removeClass("unloaded")}},u=function(){let e=!1;return{on(){e||(d.block(),n.removeClass("unloaded"),a.addClass("unloaded"),e=!0)},off(){e&&(s.empty(),c.hasClass("unloaded")&&c.removeClass("unloaded"),n.addClass("unloaded"),a.removeClass("unloaded"),d.release(),i.val(""),e=!1)},isVisible(){return e}}}();function f(){return o.hasClass("loaded")}t.click(function(){p.on(),u.on(),i.focus()}),o.click(function(){p.off(),u.off()}),i.focus(function(){r.addClass("input-focus")}),i.focusout(function(){r.removeClass("input-focus")}),i.on("input",()=>{""===i.val()?f()?c.removeClass("unloaded"):u.off():(u.on(),f()&&c.addClass("unloaded"))})}),$(function(){var e=function(){const e="sidebar-display";let t=!1;const o=$("body");return{toggle(){!1===t?o.attr(e,""):o.removeAttr(e),t=!t}}}();$("#sidebar-trigger").click(e.toggle),$("#mask").click(e.toggle)}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){const t=$("#search-input"),o=ScrollHelper.getTopbarHeight();let e,a=0;function l(){0!==$(window).scrollTop()&&(ScrollHelper.lockOrientation(),ScrollHelper.hideTopbar())}screen.orientation?screen.orientation.onchange=()=>{var e=screen.orientation.type;"landscape-primary"!==e&&"landscape-secondary"!==e||l()}:$(window).on("orientationchange",()=>{$(window).width()<$(window).height()&&l()}),$(window).scroll(()=>{e=e||!0}),setInterval(()=>{e&&(!function(){var e=$(this).scrollTop();if(!(Math.abs(a-e)<=o)){if(e>a)ScrollHelper.hideTopbar(),t.is(":focus")&&t.blur();else if(e+$(window).height()<$(document).height()){if(ScrollHelper.hasScrollUpTask())return;ScrollHelper.topbarLocked()?ScrollHelper.unlockTopbar():ScrollHelper.orientationLocked()?ScrollHelper.unLockOrientation():ScrollHelper.showTopbar()}a=e}}(),e=!1)},250)}),$(function(){var e="div.post>h1:first-of-type",t=$(e);const n=$("#topbar-title");if(0!==t.length&&!t.hasClass("dynamic-title")&&!n.is(":hidden")){const s=n.text().trim();let a=t.text().trim(),l=!1,r=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(a)&&(a=a.replace(/[0-9]/g,"").trim()),t.offset().top<$(window).scrollTop()&&n.text(a);new IntersectionObserver(e=>{var t,o;l?(o=$(window).scrollTop(),t=r<o,r=o,o=e[0],t?0===o.intersectionRatio&&n.text(a):1===o.intersectionRatio&&n.text(s)):l=!0},{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(e)),n.click(function(){$("body,html").animate({scrollTop:0},800)})}}),function(){const e=$("html").attr("lang").substr(0,2),t="data-ts",o="data-df";return{locale:()=>e,attrTimestamp:()=>t,attrDateFormat:()=>o,getTimestamp:e=>Number(e.attr(t)),getDateFormat:e=>e.attr(o)}}());$(function(){dayjs.locale(LocaleHelper.locale()),dayjs.extend(window.dayjs_plugin_localizedFormat),$(`[${LocaleHelper.attrTimestamp()}]`).each(function(){var e=dayjs.unix(LocaleHelper.getTimestamp($(this))),t=e.format(LocaleHelper.getDateFormat($(this))),t=($(this).text(t),$(this).removeAttr(LocaleHelper.attrTimestamp()),$(this).removeAttr(LocaleHelper.attrDateFormat()),$(this).attr("data-toggle"));void 0!==t&&"tooltip"===t&&(t=e.format("llll"),$(this).attr("data-original-title",t))})});
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Chirpy v5.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
+ * © 2019 Cotes Chung
4
+ * MIT Licensed
5
+ */
6
+ $(function(){$(window).scroll(()=>{50<$(this).scrollTop()&&"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(){$(".mode-toggle").click(e=>{e=$(e.target);(e.prop("tagName")==="button".toUpperCase()?e:e.parent()).blur(),flipMode()})});const ScrollHelper=function(){const e=$("body"),t="data-topbar-visible",o=$("#topbar-wrapper").outerHeight();let a=0,l=!1,r=!1;return{hideTopbar:()=>e.attr(t,!1),showTopbar:()=>e.attr(t,!0),addScrollUpTask:()=>{a+=1,l=l||!0},popScrollUpTask:()=>--a,hasScrollUpTask:()=>0<a,topbarLocked:()=>!0===l,unlockTopbar:()=>l=!1,getTopbarHeight:()=>o,orientationLocked:()=>!0===r,lockOrientation:()=>r=!0,unLockOrientation:()=>r=!1}}(),LocaleHelper=($(function(){const e=$("#sidebar-trigger"),t=$("#search-trigger"),o=$("#search-cancel"),a=$("#main"),l=$("#topbar-title"),r=$("#search-wrapper"),n=$("#search-result-wrapper"),s=$("#search-results"),i=$("#search-input"),c=$("#search-hints"),d=function(){let e=0;return{block(){e=window.scrollY,$("html,body").scrollTop(0)},release(){$("html,body").scrollTop(e)},getOffset(){return e}}}(),p={on(){e.addClass("unloaded"),l.addClass("unloaded"),t.addClass("unloaded"),r.addClass("d-flex"),o.addClass("loaded")},off(){o.removeClass("loaded"),r.removeClass("d-flex"),e.removeClass("unloaded"),l.removeClass("unloaded"),t.removeClass("unloaded")}},u=function(){let e=!1;return{on(){e||(d.block(),n.removeClass("unloaded"),a.addClass("unloaded"),e=!0)},off(){e&&(s.empty(),c.hasClass("unloaded")&&c.removeClass("unloaded"),n.addClass("unloaded"),a.removeClass("unloaded"),d.release(),i.val(""),e=!1)},isVisible(){return e}}}();function f(){return o.hasClass("loaded")}t.click(function(){p.on(),u.on(),i.focus()}),o.click(function(){p.off(),u.off()}),i.focus(function(){r.addClass("input-focus")}),i.focusout(function(){r.removeClass("input-focus")}),i.on("input",()=>{""===i.val()?f()?c.removeClass("unloaded"):u.off():(u.on(),f()&&c.addClass("unloaded"))})}),$(function(){var e=function(){const e="sidebar-display";let t=!1;const o=$("body");return{toggle(){!1===t?o.attr(e,""):o.removeAttr(e),t=!t}}}();$("#sidebar-trigger").click(e.toggle),$("#mask").click(e.toggle)}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){const t=$("#search-input"),o=ScrollHelper.getTopbarHeight();let e,a=0;function l(){0!==$(window).scrollTop()&&(ScrollHelper.lockOrientation(),ScrollHelper.hideTopbar())}screen.orientation?screen.orientation.onchange=()=>{var e=screen.orientation.type;"landscape-primary"!==e&&"landscape-secondary"!==e||l()}:$(window).on("orientationchange",()=>{$(window).width()<$(window).height()&&l()}),$(window).scroll(()=>{e=e||!0}),setInterval(()=>{e&&(!function(){var e=$(this).scrollTop();if(!(Math.abs(a-e)<=o)){if(e>a)ScrollHelper.hideTopbar(),t.is(":focus")&&t.blur();else if(e+$(window).height()<$(document).height()){if(ScrollHelper.hasScrollUpTask())return;ScrollHelper.topbarLocked()?ScrollHelper.unlockTopbar():ScrollHelper.orientationLocked()?ScrollHelper.unLockOrientation():ScrollHelper.showTopbar()}a=e}}(),e=!1)},250)}),$(function(){var e="div.post>h1:first-of-type",t=$(e);const n=$("#topbar-title");if(0!==t.length&&!t.hasClass("dynamic-title")&&!n.is(":hidden")){const s=n.text().trim();let a=t.text().trim(),l=!1,r=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(a)&&(a=a.replace(/[0-9]/g,"").trim()),t.offset().top<$(window).scrollTop()&&n.text(a);new IntersectionObserver(e=>{var t,o;l?(o=$(window).scrollTop(),t=r<o,r=o,o=e[0],t?0===o.intersectionRatio&&n.text(a):1===o.intersectionRatio&&n.text(s)):l=!0},{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(e)),n.click(function(){$("body,html").animate({scrollTop:0},800)})}}),function(){const e=$("html").attr("lang").substr(0,2),t="data-ts",o="data-df";return{locale:()=>e,attrTimestamp:()=>t,attrDateFormat:()=>o,getTimestamp:e=>Number(e.attr(t)),getDateFormat:e=>e.attr(o)}}());$(function(){dayjs.locale(LocaleHelper.locale()),dayjs.extend(window.dayjs_plugin_localizedFormat),$(`[${LocaleHelper.attrTimestamp()}]`).each(function(){var e=dayjs.unix(LocaleHelper.getTimestamp($(this))),t=e.format(LocaleHelper.getDateFormat($(this))),t=($(this).text(t),$(this).removeAttr(LocaleHelper.attrTimestamp()),$(this).removeAttr(LocaleHelper.attrDateFormat()),$(this).attr("data-toggle"));void 0!==t&&"tooltip"===t&&(t=e.format("llll"),$(this).attr("data-original-title",t))})});