jekyll-theme-chirpy-birdly 6.1.0 → 6.1.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.
- checksums.yaml +4 -4
- data/README.md +47 -46
- data/_data/locales/tr-TR.yml +4 -4
- data/_includes/footer.html +1 -1
- data/_includes/post-sharing.html +3 -5
- data/_includes/related-posts.html +28 -21
- data/_sass/addon/commons.scss +11 -10
- data/_sass/addon/module.scss +1 -6
- data/_sass/addon/syntax.scss +0 -1
- data/_sass/colors/dark-syntax.scss +20 -16
- data/_sass/colors/dark-typography.scss +5 -5
- data/_sass/colors/light-syntax.scss +22 -23
- data/_sass/colors/light-typography.scss +7 -7
- data/_sass/layout/post.scss +16 -13
- metadata +4 -10
- data/assets/js/dist/categories.min.js +0 -6
- data/assets/js/dist/commons.min.js +0 -6
- data/assets/js/dist/home.min.js +0 -6
- data/assets/js/dist/misc.min.js +0 -6
- data/assets/js/dist/page.min.js +0 -6
- data/assets/js/dist/post.min.js +0 -6
- /data/_sass/{jekyll-theme-chirpy.scss → jekyll-theme-chirpy-birdly.scss} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5b7326cc61aec502c3f5d200183c489b961cbf9575b23b3a3f537ac95a21a87
|
4
|
+
data.tar.gz: 413f0f40bae808adcda5f95d35876f0f372b19c2240e966a06d36b507a51df52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 549462ff965c7777b7ef72b2df2620d1f7275660e5b7ad1edd2442c7408118858ad176dfa68d09c3cab10deb7560f40fe116c7f1a50c8b0ebfeec922364c926e
|
7
|
+
data.tar.gz: c1b9c1313498f8cc9f8fcfdbd0c994b07c94147aa596012cf5f3aeb7c775bffd257149be3e61354cd63103e0d8493c80e136eb55e7c53868ced71775d8d907ba
|
data/README.md
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
<div align="center">
|
2
2
|
|
3
|
-
|
3
|
+
# Chirpy-Birdly Jekyll Theme
|
4
4
|
|
5
|
-
|
5
|
+
A minimal, responsive and feature-rich Jekyll theme for technical writing.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
[](https://rubygems.org/gems/jekyll-theme-chirpy-birdly)
|
8
|
+
[](https://github.com/jelilio/jekyll-theme-chirpy/actions/workflows/ci.yml)
|
9
|
+
[](https://www.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=github.com&utm_medium=referral&utm_content=jelilio/jekyll-theme-chirpy-birldy&utm_campaign=Badge_Grade)
|
10
|
+
[](https://github.com/jelilio/jekyll-theme-chirpy-birdly/blob/master/LICENSE)
|
11
|
+
[](https://996.icu)
|
12
12
|
|
13
|
-
|
13
|
+
[**Live Demo →**][demo]
|
14
14
|
|
15
|
-
|
15
|
+
[][demo]
|
16
16
|
|
17
17
|
</div>
|
18
18
|
|
@@ -24,34 +24,37 @@
|
|
24
24
|
</summary>
|
25
25
|
<p>
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
27
|
+
- Dark / Light Theme Mode
|
28
|
+
- Localized UI language
|
29
|
+
- Pinned Posts
|
30
|
+
- Hierarchical Categories
|
31
|
+
- Trending Tags
|
32
|
+
- Table of Contents
|
33
|
+
- Last Modified Date of Posts
|
34
|
+
- Syntax Highlighting
|
35
|
+
- Mathematical Expressions
|
36
|
+
- Mermaid Diagram & Flowchart
|
37
|
+
- Dark / Light Mode Images
|
38
|
+
- Embed Videos
|
39
|
+
- Disqus / Utterances / Giscus Comments
|
40
|
+
- Search
|
41
|
+
- Atom Feeds
|
42
|
+
- Google Analytics
|
43
|
+
- Page Views Reporting
|
44
|
+
- SEO & Performance Optimization
|
44
45
|
|
45
46
|
</p>
|
46
47
|
</details>
|
47
48
|
|
48
49
|
## Documentation
|
49
50
|
|
50
|
-
To explore usage, development, and upgrade guide of the project, please refer to
|
51
|
+
To explore usage, development, and upgrade guide of the project, please refer to
|
52
|
+
the [Wiki][wiki].
|
51
53
|
|
52
54
|
## Contributing
|
53
55
|
|
54
|
-
|
56
|
+
Welcome to report bugs, help improve the code or submit new features.
|
57
|
+
For more information, please see the ["Contributing Guidelines"][contribute-guide].
|
55
58
|
|
56
59
|
## Credits
|
57
60
|
|
@@ -59,36 +62,34 @@ This theme is mainly built with [Jekyll][jekyllrb] ecosystem,
|
|
59
62
|
[Bootstrap][bootstrap], [Font Awesome][icons] and some other [wonderful tools][lib].
|
60
63
|
The avatar and favicon design come from [Clipart Max][image].
|
61
64
|
|
62
|
-
|
63
|
-
|
65
|
+
Thanks to all the [contributors][contributors]. Also, folks who submitted issues
|
66
|
+
or unmerged PRs should not be forgotten. Because they reported bugs, shared ideas,
|
67
|
+
or inspired me to write more readable documentation.
|
64
68
|
|
65
|
-
Last but not least, thanks to [JetBrains][jetbrains] for providing the
|
69
|
+
Last but not least, thanks to [JetBrains][jetbrains] for providing the
|
70
|
+
_Open Source Development_ license.
|
66
71
|
|
67
72
|
## Sponsoring
|
68
73
|
|
69
74
|
If you'd like to sponsor this project, the following options are available.
|
70
75
|
|
71
|
-
[](https://ko-fi.com/coteschung)
|
77
|
+
[][donation]
|
78
|
+
[][donation]
|
74
79
|
|
75
80
|
## License
|
76
81
|
|
77
|
-
This work is published under [MIT
|
82
|
+
This work is published under [MIT][mit] License.
|
78
83
|
|
79
|
-
[gem]: https://rubygems.org/gems/jekyll-theme-chirpy
|
80
|
-
[ci]: https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster
|
81
|
-
[codacy]: https://app.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
|
82
|
-
[license]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE
|
83
84
|
[jekyllrb]: https://jekyllrb.com/
|
84
85
|
[bootstrap]: https://getbootstrap.com/
|
85
86
|
[icons]: https://fontawesome.com/
|
86
87
|
[image]: https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/
|
87
|
-
[demo]: https://
|
88
|
-
[wiki]: https://github.com/
|
89
|
-
[contribute-guide]: https://github.com/
|
90
|
-
[contributors]: https://github.com/
|
91
|
-
[lib]: https://github.com/
|
92
|
-
[jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
|
93
|
-
[ko-fi]: https://ko-fi.com/coteschung/
|
88
|
+
[demo]: https://jelilio.github.io/chirpy-birdly-demo/
|
89
|
+
[wiki]: https://github.com/jelilio/jekyll-theme-chirpy-birdly/wiki
|
90
|
+
[contribute-guide]: https://github.com/jelilio/jekyll-theme-chirpy-birdly/blob/master/.github/CONTRIBUTING.md
|
91
|
+
[contributors]: https://github.com/jelilio/jekyll-theme-chirpy-birdly/graphs/contributors
|
92
|
+
[lib]: https://github.com/jelilio/chirpy-static-assets
|
93
|
+
[jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy-birdly
|
94
94
|
[donation]: https://sponsor.cotes.page/
|
95
|
+
[mit]: https://github.com/jelilio/jekyll-theme-chirpy/blob/master/LICENSE
|
data/_data/locales/tr-TR.yml
CHANGED
@@ -23,7 +23,7 @@ search:
|
|
23
23
|
no_results: Hop! Öyle bir şey bulamadım.
|
24
24
|
|
25
25
|
panel:
|
26
|
-
lastmod:
|
26
|
+
lastmod: Yeni Güncellendi
|
27
27
|
trending_tags: Yükselen Etiketler
|
28
28
|
toc: İçindekiler
|
29
29
|
|
@@ -38,7 +38,7 @@ copyright:
|
|
38
38
|
brief: Bazı hakları saklıdır.
|
39
39
|
verbose: >-
|
40
40
|
Aksi belirtilmediği sürece, bu sitedeki gönderiler Creative Commons Atıf 4.0 Uluslararası (CC BY 4.0) Lisansı altındadır.
|
41
|
-
Kısaca sayfa linkini vererek
|
41
|
+
Kısaca sayfa linkini de vererek paylaşabilir veya düzenleyip paylaşabilirsin.
|
42
42
|
|
43
43
|
meta: :PLATFORM ve :THEME teması
|
44
44
|
|
@@ -53,8 +53,8 @@ notification:
|
|
53
53
|
|
54
54
|
post:
|
55
55
|
written_by: Yazan
|
56
|
-
posted:
|
57
|
-
updated:
|
56
|
+
posted: Gönderilme Tarihi
|
57
|
+
updated: Güncellenme Tarihi
|
58
58
|
words: sözcük
|
59
59
|
pageview_measure: görüntülenme
|
60
60
|
read_time:
|
data/_includes/footer.html
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
{%- endcapture -%}
|
10
10
|
|
11
11
|
{%- capture _theme -%}
|
12
|
-
<a href="https://github.com/
|
12
|
+
<a href="https://github.com/jelilio/jekyll-theme-chirpy-birdly" target="_blank" rel="noopener">Chirpy-Birdly</a>
|
13
13
|
{%- endcapture -%}
|
14
14
|
|
15
15
|
{{ site.data.locales[include.lang].meta | replace: ':PLATFORM', _platform | replace: ':THEME', _theme }}
|
data/_includes/post-sharing.html
CHANGED
@@ -22,16 +22,14 @@
|
|
22
22
|
</a>
|
23
23
|
{% endfor %}
|
24
24
|
|
25
|
-
<
|
25
|
+
<i
|
26
26
|
id="copy-link"
|
27
|
-
|
28
|
-
class="btn small"
|
27
|
+
class="fa-fw fas fa-link small"
|
29
28
|
data-bs-toggle="tooltip"
|
30
29
|
data-bs-placement="top"
|
31
30
|
title="{{ site.data.locales[include.lang].post.button.share_link.title }}"
|
32
31
|
data-title-succeed="{{ site.data.locales[include.lang].post.button.share_link.succeed }}"
|
33
32
|
>
|
34
|
-
|
35
|
-
</button>
|
33
|
+
</i>
|
36
34
|
</span>
|
37
35
|
</div>
|
@@ -1,4 +1,7 @@
|
|
1
|
-
<!--
|
1
|
+
<!--
|
2
|
+
Recommend the other 3 posts according to the tags and categories of the current post,
|
3
|
+
if the number is not enough, use the other latest posts to supplement.
|
4
|
+
-->
|
2
5
|
|
3
6
|
<!-- The total size of related posts -->
|
4
7
|
{% assign TOTAL_SIZE = 3 %}
|
@@ -11,21 +14,11 @@
|
|
11
14
|
|
12
15
|
{% assign SEPARATOR = ':' %}
|
13
16
|
|
14
|
-
{% assign match_posts = '' | split: '' %}
|
15
|
-
|
16
|
-
{% for category in page.categories %}
|
17
|
-
{% assign match_posts = match_posts | push: site.categories[category] | uniq %}
|
18
|
-
{% endfor %}
|
19
|
-
|
20
|
-
{% for tag in page.tags %}
|
21
|
-
{% assign match_posts = match_posts | push: site.tags[tag] | uniq %}
|
22
|
-
{% endfor %}
|
23
|
-
|
24
|
-
{% assign last_index = match_posts.size | minus: 1 %}
|
25
17
|
{% assign score_list = '' | split: '' %}
|
18
|
+
{% assign last_index = site.posts.size | minus: 1 %}
|
26
19
|
|
27
20
|
{% for i in (0..last_index) %}
|
28
|
-
{% assign post =
|
21
|
+
{% assign post = site.posts[i] %}
|
29
22
|
|
30
23
|
{% if post.url == page.url %}
|
31
24
|
{% continue %}
|
@@ -61,20 +54,34 @@
|
|
61
54
|
{% endfor %}
|
62
55
|
{% endif %}
|
63
56
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
{%
|
69
|
-
{%
|
57
|
+
<!-- Fill with the other newlest posts -->
|
58
|
+
{% assign less = TOTAL_SIZE | minus: index_list.size %}
|
59
|
+
|
60
|
+
{% if less > 0 %}
|
61
|
+
{% for i in (0..last_index) %}
|
62
|
+
{% assign post = site.posts[i] %}
|
63
|
+
{% if post.url != page.url %}
|
64
|
+
{% capture cur_index %}{{ i }}{% endcapture %}
|
65
|
+
{% unless index_list contains cur_index %}
|
66
|
+
{% assign index_list = index_list | push: cur_index %}
|
67
|
+
{% assign less = less | minus: 1 %}
|
68
|
+
{% if less <= 0 %}
|
69
|
+
{% break %}
|
70
|
+
{% endif %}
|
71
|
+
{% endunless %}
|
72
|
+
{% endif %}
|
73
|
+
{% endfor %}
|
74
|
+
{% endif %}
|
70
75
|
|
71
|
-
{% if
|
76
|
+
{% if index_list.size > 0 %}
|
72
77
|
<div id="related-posts" class="mb-2 mb-sm-4">
|
73
78
|
<h3 class="pt-2 mb-4 ms-1" data-toc-skip>
|
74
79
|
{{ site.data.locales[include.lang].post.relate_posts }}
|
75
80
|
</h3>
|
76
81
|
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-4 mb-4">
|
77
|
-
{% for
|
82
|
+
{% for entry in index_list %}
|
83
|
+
{% assign index = entry | plus: 0 %}
|
84
|
+
{% assign post = site.posts[index] %}
|
78
85
|
<div class="col">
|
79
86
|
<a href="{{ post.url | relative_url }}" class="card post-preview h-100">
|
80
87
|
<div class="card-body">
|
data/_sass/addon/commons.scss
CHANGED
@@ -176,8 +176,6 @@ footer {
|
|
176
176
|
font-size: 0.8rem;
|
177
177
|
background-color: var(--main-bg);
|
178
178
|
|
179
|
-
@extend %text-color;
|
180
|
-
|
181
179
|
div.d-flex {
|
182
180
|
height: $footer-height;
|
183
181
|
line-height: 1.2rem;
|
@@ -187,7 +185,7 @@ footer {
|
|
187
185
|
}
|
188
186
|
|
189
187
|
a {
|
190
|
-
@extend %text-
|
188
|
+
@extend %text-color;
|
191
189
|
|
192
190
|
&:hover {
|
193
191
|
@extend %link-hover;
|
@@ -245,6 +243,7 @@ i {
|
|
245
243
|
.post-tag {
|
246
244
|
line-height: 1.05rem;
|
247
245
|
font-size: 0.85rem;
|
246
|
+
border: 1px solid var(--btn-border-color);
|
248
247
|
border-radius: 0.8rem;
|
249
248
|
padding: 0.3rem 0.5rem;
|
250
249
|
margin: 0 0.35rem 0.5rem 0;
|
@@ -495,10 +494,9 @@ i {
|
|
495
494
|
display: inline-block;
|
496
495
|
min-width: 2rem;
|
497
496
|
text-align: center;
|
498
|
-
border-radius: 0.
|
499
|
-
border: 1px solid var(--btn-border-color);
|
497
|
+
border-radius: 0.3rem;
|
500
498
|
padding: 0 0.4rem;
|
501
|
-
color:
|
499
|
+
color: inherit;
|
502
500
|
line-height: 1.3rem;
|
503
501
|
|
504
502
|
&:not(:last-child) {
|
@@ -717,6 +715,7 @@ $btn-mb: 0.5rem;
|
|
717
715
|
}
|
718
716
|
|
719
717
|
#avatar {
|
718
|
+
margin: auto;
|
720
719
|
display: block;
|
721
720
|
width: 7rem;
|
722
721
|
height: 7rem;
|
@@ -747,20 +746,19 @@ $btn-mb: 0.5rem;
|
|
747
746
|
font-size: 1.75rem;
|
748
747
|
line-height: 1.2;
|
749
748
|
letter-spacing: 0.25px;
|
749
|
+
color: rgba(134, 133, 133, 0.99);
|
750
750
|
margin-top: 1.25rem;
|
751
751
|
margin-bottom: 0.5rem;
|
752
752
|
|
753
753
|
a {
|
754
754
|
@extend %clickable-transition;
|
755
755
|
@extend %sidebar-link-hover;
|
756
|
-
|
757
|
-
color: var(--site-title-color);
|
758
756
|
}
|
759
757
|
}
|
760
758
|
|
761
759
|
.site-subtitle {
|
762
760
|
font-size: 95%;
|
763
|
-
color: var(--
|
761
|
+
color: var(--sidebar-muted-color);
|
764
762
|
margin-top: 0.25rem;
|
765
763
|
word-spacing: 1px;
|
766
764
|
-webkit-user-select: none;
|
@@ -918,7 +916,7 @@ $btn-mb: 0.5rem;
|
|
918
916
|
|
919
917
|
#breadcrumb {
|
920
918
|
font-size: 1rem;
|
921
|
-
color:
|
919
|
+
color: gray;
|
922
920
|
padding-left: 0.5rem;
|
923
921
|
|
924
922
|
a:hover {
|
@@ -1105,6 +1103,7 @@ $btn-mb: 0.5rem;
|
|
1105
1103
|
/* --- main wrapper --- */
|
1106
1104
|
|
1107
1105
|
#main-wrapper {
|
1106
|
+
background-color: var(--main-bg);
|
1108
1107
|
position: relative;
|
1109
1108
|
min-height: calc(100vh - $footer-height-mobile);
|
1110
1109
|
|
@@ -1551,9 +1550,11 @@ $btn-mb: 0.5rem;
|
|
1551
1550
|
$icon-gap: 1rem; // for the bottom icons
|
1552
1551
|
|
1553
1552
|
.profile-wrapper {
|
1553
|
+
text-align: center;
|
1554
1554
|
margin-top: 3.5rem;
|
1555
1555
|
margin-bottom: 2.5rem;
|
1556
1556
|
padding-left: 3.5rem;
|
1557
|
+
padding-right: 3.5rem;
|
1557
1558
|
}
|
1558
1559
|
|
1559
1560
|
ul {
|
data/_sass/addon/module.scss
CHANGED
@@ -107,7 +107,7 @@
|
|
107
107
|
}
|
108
108
|
|
109
109
|
%sidebar-links {
|
110
|
-
color:
|
110
|
+
color: rgba(117, 117, 117, 0.9);
|
111
111
|
-webkit-user-select: none;
|
112
112
|
-moz-user-select: none;
|
113
113
|
-ms-user-select: none;
|
@@ -122,11 +122,6 @@
|
|
122
122
|
-webkit-box-orient: vertical;
|
123
123
|
}
|
124
124
|
|
125
|
-
%text-highlight {
|
126
|
-
color: inherit;
|
127
|
-
font-weight: 600;
|
128
|
-
}
|
129
|
-
|
130
125
|
/* ---------- scss mixin --------- */
|
131
126
|
|
132
127
|
@mixin mt-mb($value) {
|
data/_sass/addon/syntax.scss
CHANGED
@@ -5,40 +5,44 @@
|
|
5
5
|
@mixin dark-syntax {
|
6
6
|
--language-border-color: rgba(84, 83, 83, 0.27);
|
7
7
|
--highlight-bg-color: #252525;
|
8
|
-
--highlighter-rouge-color: #
|
9
|
-
--highlight-lineno-color: #
|
8
|
+
--highlighter-rouge-color: #de6b18;
|
9
|
+
--highlight-lineno-color: #6c6c6d;
|
10
10
|
--inline-code-bg: #272822;
|
11
11
|
--code-header-text-color: #6a6a6a;
|
12
12
|
--code-header-muted-color: rgb(60, 60, 60);
|
13
13
|
--code-header-icon-color: rgb(86, 86, 86);
|
14
14
|
--clipboard-checked-color: #2bcc2b;
|
15
|
-
--filepath-text-color: #
|
16
|
-
|
15
|
+
--filepath-text-color: #bdbdbd;
|
16
|
+
|
17
|
+
/* override Bootstrap */
|
18
|
+
pre {
|
19
|
+
color: #bfbfbf;
|
20
|
+
}
|
17
21
|
|
18
22
|
.highlight .gp {
|
19
|
-
color: #
|
23
|
+
color: #818c96;
|
20
24
|
}
|
21
25
|
|
22
26
|
/* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
|
23
27
|
|
24
28
|
.highlight pre { background-color: var(--highlight-bg-color); }
|
25
29
|
.highlight .hll { background-color: var(--highlight-bg-color); }
|
26
|
-
.highlight .c { color: #
|
30
|
+
.highlight .c { color: #75715e; } /* Comment */
|
27
31
|
.highlight .err { color: #960050; background-color: #1e0010; } /* Error */
|
28
32
|
.highlight .k { color: #66d9ef; } /* Keyword */
|
29
33
|
.highlight .l { color: #ae81ff; } /* Literal */
|
30
34
|
.highlight .n { color: #f8f8f2; } /* Name */
|
31
|
-
.highlight .o { color: #
|
35
|
+
.highlight .o { color: #f92672; } /* Operator */
|
32
36
|
.highlight .p { color: #f8f8f2; } /* Punctuation */
|
33
|
-
.highlight .cm { color: #
|
34
|
-
.highlight .cp { color: #
|
35
|
-
.highlight .c1 { color: #
|
36
|
-
.highlight .cs { color: #
|
37
|
+
.highlight .cm { color: #75715e; } /* Comment.Multiline */
|
38
|
+
.highlight .cp { color: #75715e; } /* Comment.Preproc */
|
39
|
+
.highlight .c1 { color: #75715e; } /* Comment.Single */
|
40
|
+
.highlight .cs { color: #75715e; } /* Comment.Special */
|
37
41
|
.highlight .ge { color: inherit; font-style: italic; } /* Generic.Emph */
|
38
42
|
.highlight .gs { font-weight: bold; } /* Generic.Strong */
|
39
43
|
.highlight .kc { color: #66d9ef; } /* Keyword.Constant */
|
40
44
|
.highlight .kd { color: #66d9ef; } /* Keyword.Declaration */
|
41
|
-
.highlight .kn { color: #
|
45
|
+
.highlight .kn { color: #f92672; } /* Keyword.Namespace */
|
42
46
|
.highlight .kp { color: #66d9ef; } /* Keyword.Pseudo */
|
43
47
|
.highlight .kr { color: #66d9ef; } /* Keyword.Reserved */
|
44
48
|
.highlight .kt { color: #66d9ef; } /* Keyword.Type */
|
@@ -57,9 +61,9 @@
|
|
57
61
|
.highlight .nn { color: #f8f8f2; } /* Name.Namespace */
|
58
62
|
.highlight .nx { color: #a6e22e; } /* Name.Other */
|
59
63
|
.highlight .py { color: #f8f8f2; } /* Name.Property */
|
60
|
-
.highlight .nt { color: #
|
64
|
+
.highlight .nt { color: #f92672; } /* Name.Tag */
|
61
65
|
.highlight .nv { color: #f8f8f2; } /* Name.Variable */
|
62
|
-
.highlight .ow { color: #
|
66
|
+
.highlight .ow { color: #f92672; } /* Operator.Word */
|
63
67
|
.highlight .w { color: #f8f8f2; } /* Text.Whitespace */
|
64
68
|
.highlight .mf { color: #ae81ff; } /* Literal.Number.Float */
|
65
69
|
.highlight .mh { color: #ae81ff; } /* Literal.Number.Hex */
|
@@ -81,7 +85,7 @@
|
|
81
85
|
.highlight .vg { color: #f8f8f2; } /* Name.Variable.Global */
|
82
86
|
.highlight .vi { color: #f8f8f2; } /* Name.Variable.Instance */
|
83
87
|
.highlight .il { color: #ae81ff; } /* Literal.Number.Integer.Long */
|
84
|
-
.highlight .gu { color: #
|
85
|
-
.highlight .gd { color: #
|
88
|
+
.highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
|
89
|
+
.highlight .gd { color: #f92672; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
|
86
90
|
.highlight .gi { color: #a6e22e; background-color: #0b5858; } /* Generic.Inserted & Diff Inserted */
|
87
91
|
}
|
@@ -10,11 +10,10 @@
|
|
10
10
|
|
11
11
|
/* Common color */
|
12
12
|
--text-color: rgb(175, 176, 177);
|
13
|
-
--text-muted-color: rgb(
|
13
|
+
--text-muted-color: rgb(107, 116, 124);
|
14
14
|
--heading-color: #cccccc;
|
15
|
-
--label-color: #a4a4c2;
|
16
15
|
--blockquote-border-color: rgb(66, 66, 66);
|
17
|
-
--blockquote-text-color:
|
16
|
+
--blockquote-text-color: rgb(117, 117, 117);
|
18
17
|
--link-color: rgb(138, 180, 248);
|
19
18
|
--link-underline-color: rgb(82, 108, 150);
|
20
19
|
--button-bg: rgb(39, 40, 43);
|
@@ -23,6 +22,7 @@
|
|
23
22
|
--btn-backtotop-border-color: var(--btn-border-color);
|
24
23
|
--btn-box-shadow: var(--main-bg);
|
25
24
|
--card-header-bg: rgb(48, 48, 48);
|
25
|
+
--label-color: rgb(108, 117, 125);
|
26
26
|
--checkbox-color: rgb(118, 120, 121);
|
27
27
|
--checkbox-checked-color: var(--link-color);
|
28
28
|
--img-bg: radial-gradient(circle, rgb(22, 22, 24) 0%, rgb(32, 32, 32) 100%);
|
@@ -34,8 +34,6 @@
|
|
34
34
|
);
|
35
35
|
|
36
36
|
/* Sidebar */
|
37
|
-
--site-title-color: #717070;
|
38
|
-
--site-subtitle-color: #6d6c6b;
|
39
37
|
--sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
|
40
38
|
--sidebar-muted-color: #6d6c6b;
|
41
39
|
--sidebar-active-color: rgb(255, 255, 255, 0.95);
|
@@ -60,6 +58,7 @@
|
|
60
58
|
|
61
59
|
/* Posts */
|
62
60
|
--toc-highlight: rgb(116, 178, 243);
|
61
|
+
--tag-bg: rgb(41, 40, 40);
|
63
62
|
--tag-hover: rgb(43, 56, 62);
|
64
63
|
--tb-odd-bg: rgba(42, 47, 53, 0.52); /* odd rows of the posts' table */
|
65
64
|
--tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
|
@@ -67,6 +66,7 @@
|
|
67
66
|
--footnote-target-bg: rgb(63, 81, 181);
|
68
67
|
--btn-share-color: #6c757d;
|
69
68
|
--btn-share-hover-color: #bfc1ca;
|
69
|
+
--relate-post-date: var(--text-muted-color);
|
70
70
|
--card-bg: #1e1e1e;
|
71
71
|
--card-hovor-bg: #464d51;
|
72
72
|
--card-shadow: rgb(21, 21, 21, 0.72) 0 6px 18px 0,
|
@@ -3,22 +3,22 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
@mixin light-syntax {
|
6
|
-
/*
|
6
|
+
/* see: <https://raw.githubusercontent.com/jwarby/pygments-css/master/github.css> */
|
7
7
|
.highlight .hll { background-color: #ffffcc; }
|
8
|
-
.highlight .c { color: #
|
8
|
+
.highlight .c { color: #999988; font-style: italic; } /* Comment */
|
9
9
|
.highlight .err { color: #a61717; background-color: #e3d2d2; } /* Error */
|
10
10
|
.highlight .k { color: #000000; font-weight: bold; } /* Keyword */
|
11
11
|
.highlight .o { color: #000000; font-weight: bold; } /* Operator */
|
12
|
-
.highlight .cm { color: #
|
13
|
-
.highlight .cp { color: #
|
14
|
-
.highlight .c1 { color: #
|
15
|
-
.highlight .cs { color: #
|
12
|
+
.highlight .cm { color: #999988; font-style: italic; } /* Comment.Multiline */
|
13
|
+
.highlight .cp { color: #999999; font-weight: bold; font-style: italic; } /* Comment.Preproc */
|
14
|
+
.highlight .c1 { color: #999988; font-style: italic; } /* Comment.Single */
|
15
|
+
.highlight .cs { color: #999999; font-weight: bold; font-style: italic; } /* Comment.Special */
|
16
16
|
.highlight .gd { color: #d01040; background-color: #ffdddd; } /* Generic.Deleted */
|
17
17
|
.highlight .ge { color: #000000; font-style: italic; } /* Generic.Emph */
|
18
18
|
.highlight .gr { color: #aa0000; } /* Generic.Error */
|
19
|
-
.highlight .gh { color: #
|
20
|
-
.highlight .gi { color: #
|
21
|
-
.highlight .go { color: #
|
19
|
+
.highlight .gh { color: #999999; } /* Generic.Heading */
|
20
|
+
.highlight .gi { color: #008080; background-color: #ddffdd; } /* Generic.Inserted */
|
21
|
+
.highlight .go { color: #888888; } /* Generic.Output */
|
22
22
|
.highlight .gp { color: #555555; } /* Generic.Prompt */
|
23
23
|
.highlight .gs { font-weight: bold; } /* Generic.Strong */
|
24
24
|
.highlight .gu { color: #aaaaaa; } /* Generic.Subheading */
|
@@ -31,10 +31,10 @@
|
|
31
31
|
.highlight .kt { color: #445588; font-weight: bold; } /* Keyword.Type */
|
32
32
|
.highlight .m { color: #009999; } /* Literal.Number */
|
33
33
|
.highlight .s { color: #d01040; } /* Literal.String */
|
34
|
-
.highlight .na { color: #
|
35
|
-
.highlight .nb { color: #
|
34
|
+
.highlight .na { color: #008080; } /* Name.Attribute */
|
35
|
+
.highlight .nb { color: #0086b3; } /* Name.Builtin */
|
36
36
|
.highlight .nc { color: #445588; font-weight: bold; } /* Name.Class */
|
37
|
-
.highlight .no { color: #
|
37
|
+
.highlight .no { color: #008080; } /* Name.Constant */
|
38
38
|
.highlight .nd { color: #3c5d5d; font-weight: bold; } /* Name.Decorator */
|
39
39
|
.highlight .ni { color: #800080; } /* Name.Entity */
|
40
40
|
.highlight .ne { color: #990000; font-weight: bold; } /* Name.Exception */
|
@@ -42,7 +42,7 @@
|
|
42
42
|
.highlight .nl { color: #990000; font-weight: bold; } /* Name.Label */
|
43
43
|
.highlight .nn { color: #555555; } /* Name.Namespace */
|
44
44
|
.highlight .nt { color: #000080; } /* Name.Tag */
|
45
|
-
.highlight .nv { color: #
|
45
|
+
.highlight .nv { color: #008080; } /* Name.Variable */
|
46
46
|
.highlight .ow { color: #000000; font-weight: bold; } /* Operator.Word */
|
47
47
|
.highlight .w { color: #bbbbbb; } /* Text.Whitespace */
|
48
48
|
.highlight .mf { color: #009999; } /* Literal.Number.Float */
|
@@ -60,23 +60,22 @@
|
|
60
60
|
.highlight .sr { color: #009926; } /* Literal.String.Regex */
|
61
61
|
.highlight .s1 { color: #d01040; } /* Literal.String.Single */
|
62
62
|
.highlight .ss { color: #990073; } /* Literal.String.Symbol */
|
63
|
-
.highlight .bp { color: #
|
64
|
-
.highlight .vc { color: #
|
65
|
-
.highlight .vg { color: #
|
66
|
-
.highlight .vi { color: #
|
63
|
+
.highlight .bp { color: #999999; } /* Name.Builtin.Pseudo */
|
64
|
+
.highlight .vc { color: #008080; } /* Name.Variable.Class */
|
65
|
+
.highlight .vg { color: #008080; } /* Name.Variable.Global */
|
66
|
+
.highlight .vi { color: #008080; } /* Name.Variable.Instance */
|
67
67
|
.highlight .il { color: #009999; } /* Literal.Number.Integer.Long */
|
68
68
|
|
69
69
|
/* --- custom light colors --- */
|
70
70
|
--language-border-color: rgba(172, 169, 169, 0.2);
|
71
|
-
--highlight-bg-color: #
|
71
|
+
--highlight-bg-color: #f7f7f7;
|
72
72
|
--highlighter-rouge-color: #3f596f;
|
73
|
-
--highlight-lineno-color: #
|
73
|
+
--highlight-lineno-color: #c2c6cc;
|
74
74
|
--inline-code-bg: #f6f6f7;
|
75
|
-
--code-header-text-color: #
|
76
|
-
--code-header-muted-color: #
|
77
|
-
--code-header-icon-color: #
|
75
|
+
--code-header-text-color: #a3a3b1;
|
76
|
+
--code-header-muted-color: #ebebeb;
|
77
|
+
--code-header-icon-color: #d1d1d1;
|
78
78
|
--clipboard-checked-color: #43c743;
|
79
|
-
--code-snippets-color: #b01662;
|
80
79
|
|
81
80
|
[class^='prompt-'] {
|
82
81
|
--inline-code-bg: #fbfafa;
|
@@ -10,11 +10,10 @@
|
|
10
10
|
|
11
11
|
/* Common color */
|
12
12
|
--text-color: #34343c;
|
13
|
-
--text-muted-color: #
|
13
|
+
--text-muted-color: #8e8e8e;
|
14
14
|
--heading-color: black;
|
15
|
-
--label-color: #4d4d5b;
|
16
15
|
--blockquote-border-color: #eeeeee;
|
17
|
-
--blockquote-text-color: #
|
16
|
+
--blockquote-text-color: #9a9a9a;
|
18
17
|
--link-color: #0153ab;
|
19
18
|
--link-underline-color: #dee2e6;
|
20
19
|
--button-bg: #ffffff;
|
@@ -37,10 +36,8 @@
|
|
37
36
|
);
|
38
37
|
|
39
38
|
/* Sidebar */
|
40
|
-
--site-title-color: rgb(113, 113, 113);
|
41
|
-
--site-subtitle-color: #717171;
|
42
39
|
--sidebar-bg: #f6f8fa;
|
43
|
-
--sidebar-muted-color: #
|
40
|
+
--sidebar-muted-color: #a2a19f;
|
44
41
|
--sidebar-active-color: #1d1d1d;
|
45
42
|
--sidebar-hover-bg: rgb(223, 233, 241, 0.64);
|
46
43
|
--sidebar-btn-bg: white;
|
@@ -63,13 +60,16 @@
|
|
63
60
|
--btn-text-color: #676666;
|
64
61
|
|
65
62
|
/* Posts */
|
66
|
-
--toc-highlight: #
|
63
|
+
--toc-highlight: #563d7c;
|
67
64
|
--btn-share-hover-color: var(--link-color);
|
68
65
|
--card-bg: white;
|
69
66
|
--card-hovor-bg: #e2e2e2;
|
70
67
|
--card-shadow: rgb(104, 104, 104, 0.05) 0 2px 6px 0,
|
71
68
|
rgba(211, 209, 209, 0.15) 0 0 0 1px;
|
69
|
+
--label-color: #616161;
|
70
|
+
--relate-post-date: rgba(30, 55, 70, 0.4);
|
72
71
|
--footnote-target-bg: lightcyan;
|
72
|
+
--tag-bg: rgba(0, 0, 0, 0.075);
|
73
73
|
--tag-border: #dee2e6;
|
74
74
|
--tag-shadow: var(--btn-border-color);
|
75
75
|
--tag-hover: rgb(222, 226, 230);
|
data/_sass/layout/post.scss
CHANGED
@@ -52,10 +52,10 @@ h1 + .post-meta {
|
|
52
52
|
}
|
53
53
|
|
54
54
|
em {
|
55
|
-
|
55
|
+
@extend %text-color;
|
56
56
|
|
57
57
|
a {
|
58
|
-
color
|
58
|
+
@extend %text-color;
|
59
59
|
}
|
60
60
|
}
|
61
61
|
}
|
@@ -73,7 +73,7 @@ h1 + .post-meta {
|
|
73
73
|
line-height: 1.2rem;
|
74
74
|
|
75
75
|
> a {
|
76
|
-
|
76
|
+
color: var(--text-color);
|
77
77
|
|
78
78
|
&:hover {
|
79
79
|
@extend %link-hover;
|
@@ -99,18 +99,15 @@ h1 + .post-meta {
|
|
99
99
|
.share-icons {
|
100
100
|
font-size: 1.2rem;
|
101
101
|
|
102
|
-
>
|
103
|
-
i {
|
104
|
-
@extend %btn-share-hovor;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
button {
|
102
|
+
> i {
|
109
103
|
position: relative;
|
110
|
-
bottom:
|
111
|
-
padding: 0;
|
104
|
+
bottom: 1px;
|
112
105
|
|
113
106
|
@extend %cursor-pointer;
|
107
|
+
|
108
|
+
&:hover {
|
109
|
+
@extend %btn-share-hovor;
|
110
|
+
}
|
114
111
|
}
|
115
112
|
|
116
113
|
a {
|
@@ -120,6 +117,10 @@ h1 + .post-meta {
|
|
120
117
|
|
121
118
|
&:hover {
|
122
119
|
text-decoration: none;
|
120
|
+
|
121
|
+
> i {
|
122
|
+
@extend %btn-share-hovor;
|
123
|
+
}
|
123
124
|
}
|
124
125
|
}
|
125
126
|
|
@@ -156,6 +157,8 @@ h1 + .post-meta {
|
|
156
157
|
line-height: 2rem;
|
157
158
|
|
158
159
|
.post-tag {
|
160
|
+
background: var(--tag-bg);
|
161
|
+
|
159
162
|
&:hover {
|
160
163
|
@extend %link-hover;
|
161
164
|
@extend %tag-hover;
|
@@ -331,7 +334,7 @@ h1 + .post-meta {
|
|
331
334
|
em {
|
332
335
|
@extend %normal-font-style;
|
333
336
|
|
334
|
-
color: var(--
|
337
|
+
color: var(--relate-post-date);
|
335
338
|
}
|
336
339
|
|
337
340
|
p {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-chirpy-birdly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jelili Adesina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -197,7 +197,7 @@ files:
|
|
197
197
|
- _sass/colors/dark-typography.scss
|
198
198
|
- _sass/colors/light-syntax.scss
|
199
199
|
- _sass/colors/light-typography.scss
|
200
|
-
- _sass/jekyll-theme-chirpy.scss
|
200
|
+
- _sass/jekyll-theme-chirpy-birdly.scss
|
201
201
|
- _sass/layout/archives.scss
|
202
202
|
- _sass/layout/categories.scss
|
203
203
|
- _sass/layout/category-tag.scss
|
@@ -219,17 +219,11 @@ files:
|
|
219
219
|
- assets/img/favicons/site.webmanifest
|
220
220
|
- assets/js/data/search.json
|
221
221
|
- assets/js/data/swcache.js
|
222
|
-
- assets/js/dist/categories.min.js
|
223
|
-
- assets/js/dist/commons.min.js
|
224
|
-
- assets/js/dist/home.min.js
|
225
|
-
- assets/js/dist/misc.min.js
|
226
|
-
- assets/js/dist/page.min.js
|
227
|
-
- assets/js/dist/post.min.js
|
228
222
|
- assets/js/pwa/app.js
|
229
223
|
- assets/js/pwa/sw.js
|
230
224
|
- assets/js/pwa/unregister.js
|
231
225
|
- assets/robots.txt
|
232
|
-
homepage: https://github.com/
|
226
|
+
homepage: https://github.com/jelilio/jekyll-theme-chirpy-birdly
|
233
227
|
licenses:
|
234
228
|
- MIT
|
235
229
|
metadata:
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Chirpy v6.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
|
-
* © 2019 Cotes Chung
|
4
|
-
* MIT Licensed
|
5
|
-
*/
|
6
|
-
!function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function r(e,r,o){return r&&t(e.prototype,r),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function l(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var i=$(".mode-toggle");var s=$("body"),u="sidebar-display",c=function(){function t(){e(this,t)}return r(t,null,[{key:"toggle",value:function(){!1===t.isExpanded?s.attr(u,""):s.removeAttr(u),t.isExpanded=!t.isExpanded}}]),t}();o(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),b=$("#main>.row"),v=$("#topbar-title"),m=$("#search-wrapper"),g=$("#search-result-wrapper"),y=$("#search-results"),h=$("#search-input"),C=$("#search-hints"),w=$("html,body"),k="loaded",A="unloaded",S="input-focus",T="d-flex",j=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){t.offset=window.scrollY,w.scrollTop(0)}},{key:"off",value:function(){w.scrollTop(t.offset)}}]),t}();o(j,"offset",0),o(j,"resultVisible",!1);var E=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){f.addClass(A),v.addClass(A),d.addClass(A),m.addClass(T),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),m.removeClass(T),f.removeClass(A),v.removeClass(A),d.removeClass(A)}}]),t}(),O=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){j.resultVisible||(j.on(),g.removeClass(A),b.addClass(A),j.resultVisible=!0)}},{key:"off",value:function(){j.resultVisible&&(y.empty(),C.hasClass(A)&&C.removeClass(A),g.addClass(A),b.removeClass(A),j.off(),h.val(""),j.resultVisible=!1)}}]),t}();function x(){return p.hasClass(k)}var P=$(".collapse");var V,I;$(".code-header>button").children().attr("class"),V=$(window),I=$("#back-to-top"),V.on("scroll",(function(){V.scrollTop()>50?I.fadeIn():I.fadeOut()})),I.on("click",(function(){V.scrollTop(0)})),n(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(e){return new bootstrap.Tooltip(e)})),0!==i.length&&i.off().on("click",(function(e){var t=$(e.target),r=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){E.on(),O.on(),h.trigger("focus")})),p.on("click",(function(){E.off(),O.off()})),h.on("focus",(function(){m.addClass(S)})),h.on("focusout",(function(){m.removeClass(S)})),h.on("input",(function(){""===h.val()?x()?C.removeClass(A):O.off():(O.on(),x()&&C.addClass(A))})),P.on("hide.bs.collapse",(function(){var e="h_"+$(this).attr("id").substring(2);e&&($("#".concat(e," .far.fa-folder-open")).attr("class","far fa-folder fa-fw"),$("#".concat(e," i.fas")).addClass("rotate"),$("#".concat(e)).removeClass("hide-border-bottom"))})),P.on("show.bs.collapse",(function(){var e="h_"+$(this).attr("id").substring(2);e&&($("#".concat(e," .far.fa-folder")).attr("class","far fa-folder-open fa-fw"),$("#".concat(e," i.fas")).removeClass("rotate"),$("#".concat(e)).addClass("hide-border-bottom"))}))}();
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Chirpy v6.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
|
-
* © 2019 Cotes Chung
|
4
|
-
* MIT Licensed
|
5
|
-
*/
|
6
|
-
!function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function r(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=$(".mode-toggle");var s=$("body"),u="sidebar-display",f=function(){function t(){e(this,t)}return r(t,null,[{key:"toggle",value:function(){!1===t.isExpanded?s.attr(u,""):s.removeAttr(u),t.isExpanded=!t.isExpanded}}]),t}();n(f,"isExpanded",!1);var c=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),b=$("#main>.row"),m=$("#topbar-title"),v=$("#search-wrapper"),y=$("#search-result-wrapper"),g=$("#search-results"),h=$("#search-input"),C=$("#search-hints"),w=$("html,body"),k="loaded",A="unloaded",S="input-focus",T="d-flex",j=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){t.offset=window.scrollY,w.scrollTop(0)}},{key:"off",value:function(){w.scrollTop(t.offset)}}]),t}();n(j,"offset",0),n(j,"resultVisible",!1);var E,O,x=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){c.addClass(A),m.addClass(A),d.addClass(A),v.addClass(T),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),v.removeClass(T),c.removeClass(A),m.removeClass(A),d.removeClass(A)}}]),t}(),P=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){j.resultVisible||(j.on(),y.removeClass(A),b.addClass(A),j.resultVisible=!0)}},{key:"off",value:function(){j.resultVisible&&(g.empty(),C.hasClass(A)&&C.removeClass(A),y.addClass(A),b.removeClass(A),j.off(),h.val(""),j.resultVisible=!1)}}]),t}();function V(){return p.hasClass(k)}E=$(window),O=$("#back-to-top"),E.on("scroll",(function(){E.scrollTop()>50?O.fadeIn():O.fadeOut()})),O.on("click",(function(){E.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(e){return new bootstrap.Tooltip(e)})),0!==l.length&&l.off().on("click",(function(e){var t=$(e.target),r=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",f.toggle),$("#mask").on("click",f.toggle),d.on("click",(function(){x.on(),P.on(),h.trigger("focus")})),p.on("click",(function(){x.off(),P.off()})),h.on("focus",(function(){v.addClass(S)})),h.on("focusout",(function(){v.removeClass(S)})),h.on("input",(function(){""===h.val()?V()?C.removeClass(A):P.off():(P.on(),V()&&C.addClass(A))}))}();
|
data/assets/js/dist/home.min.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Chirpy v6.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
|
-
* © 2019 Cotes Chung
|
4
|
-
* MIT Licensed
|
5
|
-
*/
|
6
|
-
!function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var s=$("body"),u="sidebar-display",c=function(){function e(){t(this,e)}return r(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?s.attr(u,""):s.removeAttr(u),e.isExpanded=!e.isExpanded}}]),e}();n(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),m=$("#search-cancel"),p=$("#main>.row"),g=$("#topbar-title"),v=$("#search-wrapper"),y=$("#search-result-wrapper"),b=$("#search-results"),h=$("#search-input"),C=$("#search-hints"),w=$("html,body"),k="loaded",T="unloaded",j="input-focus",A="d-flex",S=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){e.offset=window.scrollY,w.scrollTop(0)}},{key:"off",value:function(){w.scrollTop(e.offset)}}]),e}();n(S,"offset",0),n(S,"resultVisible",!1);var x=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){f.addClass(T),g.addClass(T),d.addClass(T),v.addClass(A),m.addClass(k)}},{key:"off",value:function(){m.removeClass(k),v.removeClass(A),f.removeClass(T),g.removeClass(T),d.removeClass(T)}}]),e}(),E=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){S.resultVisible||(S.on(),y.removeClass(T),p.addClass(T),S.resultVisible=!0)}},{key:"off",value:function(){S.resultVisible&&(b.empty(),C.hasClass(T)&&C.removeClass(T),y.addClass(T),p.removeClass(T),S.off(),h.val(""),S.resultVisible=!1)}}]),e}();function F(){return m.hasClass(k)}$(".collapse");function O(t){t.parent().removeClass("shimmer")}$(".code-header>button").children().attr("class");var D,P,V,I=function(){function e(){t(this,e)}return r(e,null,[{key:"attrTimestamp",get:function(){return"data-ts"}},{key:"attrDateFormat",get:function(){return"data-df"}},{key:"locale",get:function(){return $("html").attr("lang").substring(0,2)}},{key:"getTimestamp",value:function(t){return Number(t.attr(e.attrTimestamp))}},{key:"getDateFormat",value:function(t){return t.attr(e.attrDateFormat)}}]),e}();D=$(window),P=$("#back-to-top"),D.on("scroll",(function(){D.scrollTop()>50?P.fadeIn():P.fadeOut()})),P.on("click",(function(){D.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),r=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){x.on(),E.on(),h.trigger("focus")})),m.on("click",(function(){x.off(),E.off()})),h.on("focus",(function(){v.addClass(j)})),h.on("focusout",(function(){v.removeClass(j)})),h.on("input",(function(){""===h.val()?F()?C.removeClass(T):E.off():(E.on(),F()&&C.addClass(T))})),dayjs.locale(I.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(I.attrTimestamp,"]")).each((function(){var t=dayjs.unix(I.getTimestamp($(this))),e=t.format(I.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(I.attrTimestamp),$(this).removeAttr(I.attrDateFormat);var r=$(this).attr("data-bs-toggle");if(void 0!==r&&"tooltip"===r){var n=t.format("llll");$(this).attr("data-bs-title",n),new bootstrap.Tooltip($(this))}})),(V=$("#core-wrapper img[data-src]")).length<=0||(document.addEventListener("lazyloaded",(function(t){O($(t.target))})),V.each((function(){$(this).hasClass("ls-is-cached")&&O($(this))})))}();
|
data/assets/js/dist/misc.min.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Chirpy v6.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
|
-
* © 2019 Cotes Chung
|
4
|
-
* MIT Licensed
|
5
|
-
*/
|
6
|
-
!function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var s=$("body"),u="sidebar-display",c=function(){function e(){t(this,e)}return r(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?s.attr(u,""):s.removeAttr(u),e.isExpanded=!e.isExpanded}}]),e}();n(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),m=$("#search-cancel"),p=$("#main>.row"),v=$("#topbar-title"),g=$("#search-wrapper"),y=$("#search-result-wrapper"),b=$("#search-results"),h=$("#search-input"),C=$("#search-hints"),k=$("html,body"),w="loaded",T="unloaded",j="input-focus",A="d-flex",S=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){e.offset=window.scrollY,k.scrollTop(0)}},{key:"off",value:function(){k.scrollTop(e.offset)}}]),e}();n(S,"offset",0),n(S,"resultVisible",!1);var x=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){f.addClass(T),v.addClass(T),d.addClass(T),g.addClass(A),m.addClass(w)}},{key:"off",value:function(){m.removeClass(w),g.removeClass(A),f.removeClass(T),v.removeClass(T),d.removeClass(T)}}]),e}(),E=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){S.resultVisible||(S.on(),y.removeClass(T),p.addClass(T),S.resultVisible=!0)}},{key:"off",value:function(){S.resultVisible&&(b.empty(),C.hasClass(T)&&C.removeClass(T),y.addClass(T),p.removeClass(T),S.off(),h.val(""),S.resultVisible=!1)}}]),e}();function F(){return m.hasClass(w)}$(".collapse");$(".code-header>button").children().attr("class");var O,D,P=function(){function e(){t(this,e)}return r(e,null,[{key:"attrTimestamp",get:function(){return"data-ts"}},{key:"attrDateFormat",get:function(){return"data-df"}},{key:"locale",get:function(){return $("html").attr("lang").substring(0,2)}},{key:"getTimestamp",value:function(t){return Number(t.attr(e.attrTimestamp))}},{key:"getDateFormat",value:function(t){return t.attr(e.attrDateFormat)}}]),e}();O=$(window),D=$("#back-to-top"),O.on("scroll",(function(){O.scrollTop()>50?D.fadeIn():D.fadeOut()})),D.on("click",(function(){O.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),r=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){x.on(),E.on(),h.trigger("focus")})),m.on("click",(function(){x.off(),E.off()})),h.on("focus",(function(){g.addClass(j)})),h.on("focusout",(function(){g.removeClass(j)})),h.on("input",(function(){""===h.val()?F()?C.removeClass(T):E.off():(E.on(),F()&&C.addClass(T))})),dayjs.locale(P.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(P.attrTimestamp,"]")).each((function(){var t=dayjs.unix(P.getTimestamp($(this))),e=t.format(P.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(P.attrTimestamp),$(this).removeAttr(P.attrDateFormat);var r=$(this).attr("data-bs-toggle");if(void 0!==r&&"tooltip"===r){var n=t.format("llll");$(this).attr("data-bs-title",n),new bootstrap.Tooltip($(this))}}))}();
|
data/assets/js/dist/page.min.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Chirpy v6.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
|
-
* © 2019 Cotes Chung
|
4
|
-
* MIT Licensed
|
5
|
-
*/
|
6
|
-
!function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var u=$("body"),s="sidebar-display",c=function(){function e(){t(this,e)}return n(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?u.attr(s,""):u.removeAttr(s),e.isExpanded=!e.isExpanded}}]),e}();r(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),m=$("#main>.row"),v=$("#topbar-title"),g=$("#search-wrapper"),b=$("#search-result-wrapper"),h=$("#search-results"),y=$("#search-input"),C=$("#search-hints"),w=$("html,body"),k="loaded",S="unloaded",A="input-focus",T="d-flex",E=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){e.offset=window.scrollY,w.scrollTop(0)}},{key:"off",value:function(){w.scrollTop(e.offset)}}]),e}();r(E,"offset",0),r(E,"resultVisible",!1);var j=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){f.addClass(S),v.addClass(S),d.addClass(S),g.addClass(T),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),g.removeClass(T),f.removeClass(S),v.removeClass(S),d.removeClass(S)}}]),e}(),x=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){E.resultVisible||(E.on(),b.removeClass(S),m.addClass(S),E.resultVisible=!0)}},{key:"off",value:function(){E.resultVisible&&(h.empty(),C.hasClass(S)&&C.removeClass(S),b.addClass(S),m.removeClass(S),E.off(),y.val(""),E.resultVisible=!1)}}]),e}();function O(){return p.hasClass(k)}$(".collapse");var P=".code-header>button",V="fas fa-check",I="timeout",N="data-title-succeed",q="data-bs-original-title",z=2e3;function D(t){if($(t)[0].hasAttribute(I)){var e=$(t).attr(I);if(Number(e)>Date.now())return!0}return!1}function M(t){$(t).attr(I,Date.now()+z)}function U(t){$(t).removeAttr(I)}var B,J,L,Y=$(P).children().attr("class");function F(t){t.parent().removeClass("shimmer")}B=$(window),J=$("#back-to-top"),B.on("scroll",(function(){B.scrollTop()>50?J.fadeIn():J.fadeOut()})),J.on("click",(function(){B.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),n=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),n.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){j.on(),x.on(),y.trigger("focus")})),p.on("click",(function(){j.off(),x.off()})),y.on("focus",(function(){g.addClass(A)})),y.on("focusout",(function(){g.removeClass(A)})),y.on("input",(function(){""===y.val()?O()?C.removeClass(S):x.off():(x.on(),O()&&C.addClass(S))})),(L=$("#core-wrapper img[data-src]")).length<=0||(document.addEventListener("lazyloaded",(function(t){F($(t.target))})),L.each((function(){$(this).hasClass("ls-is-cached")&&F($(this))}))),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),function(){if($(P).length){var t=new ClipboardJS(P,{target:function(t){return t.parentNode.nextElementSibling.querySelector("code .rouge-code")}});o(document.querySelectorAll(P)).map((function(t){return new bootstrap.Tooltip(t,{placement:"left"})})),t.on("success",(function(t){t.clearSelection();var e=t.trigger;D(e)||(!function(t){$(t).children().attr("class",V)}(e),function(t){var e=$(t).attr(N);$(t).attr(q,e).tooltip("show")}(e),M(e),setTimeout((function(){!function(t){$(t).tooltip("hide").removeAttr(q)}(e),function(t){$(t).children().attr("class",Y)}(e),U(e)}),z))}))}$("#copy-link").on("click",(function(t){var e=$(t.target);D(e)||navigator.clipboard.writeText(window.location.href).then((function(){var t=e.attr(q),n=e.attr(N);e.attr(q,n).tooltip("show"),M(e),setTimeout((function(){e.attr(q,t),U(e)}),z)}))}))}()}();
|
data/assets/js/dist/post.min.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Chirpy v6.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
|
-
* © 2019 Cotes Chung
|
4
|
-
* MIT Licensed
|
5
|
-
*/
|
6
|
-
!function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var s=$("body"),c="sidebar-display",u=function(){function e(){t(this,e)}return r(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?s.attr(c,""):s.removeAttr(c),e.isExpanded=!e.isExpanded}}]),e}();n(u,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),m=$("#main>.row"),g=$("#topbar-title"),v=$("#search-wrapper"),h=$("#search-result-wrapper"),b=$("#search-results"),y=$("#search-input"),w=$("#search-hints"),C=$("html,body"),k="loaded",S="unloaded",T="input-focus",A="d-flex",j=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){e.offset=window.scrollY,C.scrollTop(0)}},{key:"off",value:function(){C.scrollTop(e.offset)}}]),e}();n(j,"offset",0),n(j,"resultVisible",!1);var x=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){f.addClass(S),g.addClass(S),d.addClass(S),v.addClass(A),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),v.removeClass(A),f.removeClass(S),g.removeClass(S),d.removeClass(S)}}]),e}(),E=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){j.resultVisible||(j.on(),h.removeClass(S),m.addClass(S),j.resultVisible=!0)}},{key:"off",value:function(){j.resultVisible&&(b.empty(),w.hasClass(S)&&w.removeClass(S),h.addClass(S),m.removeClass(S),j.off(),y.val(""),j.resultVisible=!1)}}]),e}();function D(){return p.hasClass(k)}$(".collapse");var O=".code-header>button",F="fas fa-check",P="timeout",N="data-title-succeed",V="data-bs-original-title",q=2e3;function I(t){if($(t)[0].hasAttribute(P)){var e=$(t).attr(P);if(Number(e)>Date.now())return!0}return!1}function z(t){$(t).attr(P,Date.now()+q)}function L(t){$(t).removeAttr(P)}var M=$(O).children().attr("class");function U(t){t.parent().removeClass("shimmer")}var _,B,J,Y=function(){function e(){t(this,e)}return r(e,null,[{key:"attrTimestamp",get:function(){return"data-ts"}},{key:"attrDateFormat",get:function(){return"data-df"}},{key:"locale",get:function(){return $("html").attr("lang").substring(0,2)}},{key:"getTimestamp",value:function(t){return Number(t.attr(e.attrTimestamp))}},{key:"getDateFormat",value:function(t){return t.attr(e.attrDateFormat)}}]),e}();_=$(window),B=$("#back-to-top"),_.on("scroll",(function(){_.scrollTop()>50?B.fadeIn():B.fadeOut()})),B.on("click",(function(){_.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),r=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",u.toggle),$("#mask").on("click",u.toggle),d.on("click",(function(){x.on(),E.on(),y.trigger("focus")})),p.on("click",(function(){x.off(),E.off()})),y.on("focus",(function(){v.addClass(T)})),y.on("focusout",(function(){v.removeClass(T)})),y.on("input",(function(){""===y.val()?D()?w.removeClass(S):E.off():(E.on(),D()&&w.addClass(S))})),(J=$("#core-wrapper img[data-src]")).length<=0||(document.addEventListener("lazyloaded",(function(t){U($(t.target))})),J.each((function(){$(this).hasClass("ls-is-cached")&&U($(this))}))),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),dayjs.locale(Y.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(Y.attrTimestamp,"]")).each((function(){var t=dayjs.unix(Y.getTimestamp($(this))),e=t.format(Y.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(Y.attrTimestamp),$(this).removeAttr(Y.attrDateFormat);var r=$(this).attr("data-bs-toggle");if(void 0!==r&&"tooltip"===r){var n=t.format("llll");$(this).attr("data-bs-title",n),new bootstrap.Tooltip($(this))}})),function(){if($(O).length){var t=new ClipboardJS(O,{target:function(t){return t.parentNode.nextElementSibling.querySelector("code .rouge-code")}});o(document.querySelectorAll(O)).map((function(t){return new bootstrap.Tooltip(t,{placement:"left"})})),t.on("success",(function(t){t.clearSelection();var e=t.trigger;I(e)||(!function(t){$(t).children().attr("class",F)}(e),function(t){var e=$(t).attr(N);$(t).attr(V,e).tooltip("show")}(e),z(e),setTimeout((function(){!function(t){$(t).tooltip("hide").removeAttr(V)}(e),function(t){$(t).children().attr("class",M)}(e),L(e)}),q))}))}$("#copy-link").on("click",(function(t){var e=$(t.target);I(e)||navigator.clipboard.writeText(window.location.href).then((function(){var t=e.attr(V),r=e.attr(N);e.attr(V,r).tooltip("show"),z(e),setTimeout((function(){e.attr(V,t),L(e)}),q)}))}))}(),document.querySelector("#core-wrapper h2,#core-wrapper h3")&&tocbot.init({tocSelector:"#toc",contentSelector:".post-content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3",orderedList:!1,scrollSmooth:!1})}();
|
File without changes
|