jekyll-theme-chirpy-birdly 6.0.2 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20f64bbc8e1cb021da8258e66df0112c95d5aafbc22e6f19aceef5a964ad960c
4
- data.tar.gz: 134df2f9d921ce5f06324d0c27165c6cca2eee4cceef58215c0efbc5a261f979
3
+ metadata.gz: ba25929e745b6e9c7adf8fd1ec75a32ece175fbc36b965dd85b1c372e2148baa
4
+ data.tar.gz: a61fa4fa9c23612e690c069b94d94f0b7922f4602b5f9287af076f709fde4745
5
5
  SHA512:
6
- metadata.gz: 0ef797d5e0fb14c856c5be4a65d464c9a85cfc9d634da50a1509d3b545ad53d5a6369b0623a086b0ef633434c96f3e38cae1acb12c5455c362a5d8f4f11f4d96
7
- data.tar.gz: c0fe9ef265aed5a1604fcf3f1dfdeac36d99512767160a70e9664b854cac53df02a3c7abf4e03fcb656964ff4e41f3d8748ff1d014ab1383018df3fe39b66310
6
+ metadata.gz: 596ffd5877163778310c5e3524ee57869efe783a4d4d84f73efa340ee2fa9705376267e07bff5be7616e898f45d9291f04de5af57e6489dee9f751f4e9469efc
7
+ data.tar.gz: 392be9f8e779da397a24ee26fdaeb521d76c3f4799496d5c9169b6e64f82cf2fb2075b7eef91af7c6a65ab850883c18201f56a640c087a1c8eb32a9a6c4137da
data/README.md CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  A minimal, responsive and feature-rich Jekyll theme for technical writing.
6
6
 
7
- [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)](https://rubygems.org/gems/jekyll-theme-chirpy)
8
- [![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml)
9
- [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)](https://www.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cotes2020/jekyll-theme-chirpy&utm_campaign=Badge_Grade)
10
- [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
7
+ [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)][gem] 
8
+ [![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg?branch=master&event=push)][ci] 
9
+ [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)][codacy] 
10
+ [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)][license] 
11
11
  [![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
12
12
 
13
13
  [**Live Demo →**][demo]
@@ -26,21 +26,20 @@
26
26
 
27
27
  - Dark / Light Theme Mode
28
28
  - Localized UI language
29
- - Pinned Posts
29
+ - Pinned Posts on Home Page
30
30
  - Hierarchical Categories
31
31
  - Trending Tags
32
32
  - Table of Contents
33
- - Last Modified Date of Posts
33
+ - Last Modified Date
34
34
  - Syntax Highlighting
35
35
  - Mathematical Expressions
36
- - Mermaid Diagram & Flowchart
36
+ - Mermaid Diagrams & Flowcharts
37
37
  - Dark / Light Mode Images
38
38
  - Embed Videos
39
39
  - Disqus / Utterances / Giscus Comments
40
- - Search
40
+ - Built-in Search
41
41
  - Atom Feeds
42
42
  - Google Analytics
43
- - Page Views Reporting
44
43
  - SEO & Performance Optimization
45
44
 
46
45
  </p>
@@ -48,13 +47,11 @@
48
47
 
49
48
  ## Documentation
50
49
 
51
- To explore usage, development, and upgrade guide of the project, please refer to
52
- the [Wiki][wiki].
50
+ To explore usage, development, and upgrade guide of the project, please refer to the [**Wiki**][wiki].
53
51
 
54
52
  ## Contributing
55
53
 
56
- Welcome to report bugs, help improve the code or submit new features.
57
- For more information, please see the ["Contributing Guidelines"][contribute-guide].
54
+ Contributions (Issues/PRs/Discussions) are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. For details, see the "[Contributing Guidelines][contribute-guide]".
58
55
 
59
56
  ## Credits
60
57
 
@@ -62,34 +59,36 @@ This theme is mainly built with [Jekyll][jekyllrb] ecosystem,
62
59
  [Bootstrap][bootstrap], [Font Awesome][icons] and some other [wonderful tools][lib].
63
60
  The avatar and favicon design come from [Clipart Max][image].
64
61
 
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.
62
+ Many thanks to the [contributors][contributors] who participated in the development
63
+ and to the folks who reported bugs or shared ideas.
68
64
 
69
- Last but not least, thanks to [JetBrains][jetbrains] for providing the
70
- _Open Source Development_ license.
65
+ Last but not least, thanks to [JetBrains][jetbrains] for providing the _Open Source License_.
71
66
 
72
67
  ## Sponsoring
73
68
 
74
69
  If you'd like to sponsor this project, the following options are available.
75
70
 
76
- [![Ko-fi](https://img.shields.io/badge/-Buy%20Me%20a%20Coffee-ff5f5f?logo=ko-fi&logoColor=white)](https://ko-fi.com/coteschung)
77
- [![Wechat Pay](https://img.shields.io/badge/-Tip%20Me%20on%20WeChat-brightgreen?logo=wechat&logoColor=white)][donation]
78
- [![Alipay](https://img.shields.io/badge/-Tip%20Me%20on%20Alipay-blue?logo=alipay&logoColor=white)][donation]
71
+ [![Ko-fi](https://img.shields.io/badge/Support_Me_on_Ko--fi-ff5e5b?logo=ko-fi&logoColor=white)][ko-fi]&nbsp;
72
+ [![Wechat Pay](https://img.shields.io/badge/Tip_Me_on_WeChat-brightgreen?logo=wechat&logoColor=white)][donation]&nbsp;
73
+ [![Alipay](https://img.shields.io/badge/Tip_Me_on_Alipay-blue?logo=alipay&logoColor=white)][donation]
79
74
 
80
75
  ## License
81
76
 
82
- This work is published under [MIT][mit] License.
77
+ This work is published under [MIT License][license].
83
78
 
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
84
83
  [jekyllrb]: https://jekyllrb.com/
85
84
  [bootstrap]: https://getbootstrap.com/
86
85
  [icons]: https://fontawesome.com/
87
86
  [image]: https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/
88
87
  [demo]: https://cotes2020.github.io/chirpy-demo/
89
88
  [wiki]: https://github.com/cotes2020/jekyll-theme-chirpy/wiki
90
- [contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/CONTRIBUTING.md
89
+ [contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md
91
90
  [contributors]: https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors
92
91
  [lib]: https://github.com/cotes2020/chirpy-static-assets
93
92
  [jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
93
+ [ko-fi]: https://ko-fi.com/coteschung/
94
94
  [donation]: https://sponsor.cotes.page/
95
- [mit]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE
@@ -23,7 +23,7 @@ search:
23
23
  no_results: Hop! Öyle bir şey bulamadım.
24
24
 
25
25
  panel:
26
- lastmod: Yeni Güncellendi
26
+ lastmod: Son Güncellenenler
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 de vererek paylaşabilir veya düzenleyip paylaşabilirsin.
41
+ Kısaca sayfa linkini vererek değiştirebilir / paylaşabilirsiniz.
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: Gönderilme Tarihi
57
- updated: Güncellenme Tarihi
56
+ posted: Gönderim
57
+ updated: Güncelleme
58
58
  words: sözcük
59
59
  pageview_measure: görüntülenme
60
60
  read_time:
@@ -9,7 +9,7 @@
9
9
  {%- endcapture -%}
10
10
 
11
11
  {%- capture _theme -%}
12
- <a href="https://github.com/jelilio/jekyll-theme-chirpy-birdly" target="_blank" rel="noopener">Chirpy-Birdly</a>
12
+ <a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a>
13
13
  {%- endcapture -%}
14
14
 
15
15
  {{ site.data.locales[include.lang].meta | replace: ':PLATFORM', _platform | replace: ':THEME', _theme }}
data/_includes/head.html CHANGED
@@ -45,7 +45,7 @@
45
45
  {{ site.title }}
46
46
  </title>
47
47
 
48
- {% include favicons.html %}
48
+ {% include_cached favicons.html %}
49
49
 
50
50
  {% if site.resources.ignore_env != jekyll.environment and site.resources.self_hosted %}
51
51
  <link href="{{ site.data.origin[type].webfonts | relative_url }}" rel="stylesheet">
@@ -1,6 +1,6 @@
1
1
  <!-- The paginator for post list on HomgPage. -->
2
2
 
3
- <ul class="pagination align-items-center mt-4 mb-5 ps-lg-2">
3
+ <ul class="pagination align-items-center mt-4 mb-1 ps-lg-2">
4
4
  <!-- left arrow -->
5
5
  {% if paginator.previous_page %}
6
6
  {% assign prev_url = paginator.previous_page_path | relative_url %}
@@ -22,14 +22,16 @@
22
22
  </a>
23
23
  {% endfor %}
24
24
 
25
- <i
25
+ <button
26
26
  id="copy-link"
27
- class="fa-fw fas fa-link small"
27
+ aria-label="Copy link"
28
+ class="btn small"
28
29
  data-bs-toggle="tooltip"
29
30
  data-bs-placement="top"
30
31
  title="{{ site.data.locales[include.lang].post.button.share_link.title }}"
31
32
  data-title-succeed="{{ site.data.locales[include.lang].post.button.share_link.succeed }}"
32
33
  >
33
- </i>
34
+ <i class="fa-fw fas fa-link pe-none"></i>
35
+ </button>
34
36
  </span>
35
37
  </div>
@@ -1,7 +1,4 @@
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
- -->
1
+ <!-- Recommend the other 3 posts according to the tags and categories of the current post. -->
5
2
 
6
3
  <!-- The total size of related posts -->
7
4
  {% assign TOTAL_SIZE = 3 %}
@@ -14,11 +11,21 @@
14
11
 
15
12
  {% assign SEPARATOR = ':' %}
16
13
 
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 %}
17
25
  {% assign score_list = '' | split: '' %}
18
- {% assign last_index = site.posts.size | minus: 1 %}
19
26
 
20
27
  {% for i in (0..last_index) %}
21
- {% assign post = site.posts[i] %}
28
+ {% assign post = match_posts[i] %}
22
29
 
23
30
  {% if post.url == page.url %}
24
31
  {% continue %}
@@ -54,34 +61,20 @@
54
61
  {% endfor %}
55
62
  {% endif %}
56
63
 
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 %}
64
+ {% assign relate_posts = '' | split: '' %}
65
+
66
+ {% for index in index_list %}
67
+ {% assign i = index | to_integer %}
68
+ {% assign relate_posts = relate_posts | push: match_posts[i] %}
69
+ {% endfor %}
75
70
 
76
- {% if index_list.size > 0 %}
71
+ {% if relate_posts.size > 0 %}
77
72
  <div id="related-posts" class="mb-2 mb-sm-4">
78
73
  <h3 class="pt-2 mb-4 ms-1" data-toc-skip>
79
74
  {{ site.data.locales[include.lang].post.relate_posts }}
80
75
  </h3>
81
76
  <div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-4 mb-4">
82
- {% for entry in index_list %}
83
- {% assign index = entry | plus: 0 %}
84
- {% assign post = site.posts[index] %}
77
+ {% for post in relate_posts %}
85
78
  <div class="col">
86
79
  <a href="{{ post.url | relative_url }}" class="card post-preview h-100">
87
80
  <div class="card-body">
@@ -3,7 +3,7 @@
3
3
  <div id="search-result-wrapper" class="d-flex justify-content-center unloaded">
4
4
  <div class="col-11 post-content">
5
5
  <div id="search-hints">
6
- {% include trending-tags.html %}
6
+ {% include_cached trending-tags.html %}
7
7
  </div>
8
8
  <div id="search-results" class="d-flex flex-wrap justify-content-center text-muted mt-3"></div>
9
9
  </div>
@@ -5,7 +5,7 @@ layout: page
5
5
 
6
6
  {% include lang.html %}
7
7
 
8
- <div id="page-category" class="mb-5">
8
+ <div id="page-category">
9
9
  <h1 class="ps-lg-2">
10
10
  <i class="far fa-folder-open fa-fw text-muted"></i>
11
11
  {{ page.title }}
@@ -26,11 +26,11 @@ layout: compress
26
26
  <div id="main" class="container px-xxl-5">
27
27
  {% include topbar.html lang=lang %}
28
28
  {{ content }}
29
- {% include search-results.html lang=lang %}
29
+ {% include_cached search-results.html lang=lang %}
30
30
  </div>
31
31
  </div>
32
32
 
33
- {% include footer.html lang=lang %}
33
+ {% include_cached footer.html lang=lang %}
34
34
 
35
35
  <div id="mask"></div>
36
36
 
@@ -71,6 +71,6 @@ layout: compress
71
71
  {% include mermaid.html %}
72
72
  {% endif %}
73
73
 
74
- {% include search-loader.html %}
74
+ {% include_cached search-loader.html %}
75
75
  </body>
76
76
  </html>
data/_layouts/home.html CHANGED
@@ -40,16 +40,7 @@ refactor: true
40
40
  {% endfor %}
41
41
  {% endif %}
42
42
 
43
- {% if paginator.total_pages > 1 %}
44
- {% assign has_paginator = true %}
45
- {% endif %}
46
-
47
- <div
48
- id="post-list"
49
- {% unless has_paginator %}
50
- class="mb-5"
51
- {% endunless %}
52
- >
43
+ <div id="post-list">
53
44
  {% for post in posts %}
54
45
  <a href="{{ post.url | relative_url }}" class="card-wrapper">
55
46
  <div class="card post-preview flex-md-row-reverse">
@@ -63,7 +54,7 @@ refactor: true
63
54
  {% assign src = post.img_path | append: '/' | append: src | replace: '//', '/' %}
64
55
  {% endunless %}
65
56
 
66
- {% assign alt = post.image.alt | default: 'Preview Image' %}
57
+ {% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %}
67
58
 
68
59
  <img src="{{ src }}" w="17" h="10" alt="{{ alt }}" {{ lqip }}>
69
60
  {% endif %}
@@ -114,6 +105,6 @@ refactor: true
114
105
  </div>
115
106
  <!-- #post-list -->
116
107
 
117
- {% if has_paginator %}
108
+ {% if paginator.total_pages > 1 %}
118
109
  {% include post-paginator.html %}
119
110
  {% endif %}
data/_layouts/page.html CHANGED
@@ -5,7 +5,11 @@ layout: default
5
5
  {% include lang.html %}
6
6
  {% include origin-type.html %}
7
7
 
8
- <div class="row">
8
+ {% if layout.tail_includes %}
9
+ {% assign has_tail = true %}
10
+ {% endif %}
11
+
12
+ <div class="row{% unless has_tail %} mb-5{% endunless %}">
9
13
  <!-- core -->
10
14
  <div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
11
15
  {% capture padding %}
@@ -40,8 +44,8 @@ layout: default
40
44
  <!-- panel -->
41
45
  <div id="panel-wrapper" class="col-xl-3 ps-2 text-muted">
42
46
  <div class="access">
43
- {% include update-list.html lang=lang %}
44
- {% include trending-tags.html lang=lang %}
47
+ {% include_cached update-list.html lang=lang %}
48
+ {% include_cached trending-tags.html lang=lang %}
45
49
  </div>
46
50
 
47
51
  {% for _include in layout.panel_includes %}
@@ -52,7 +56,7 @@ layout: default
52
56
  </div>
53
57
 
54
58
  <!-- tail -->
55
- {% if layout.tail_includes %}
59
+ {% if has_tail %}
56
60
  <div class="row">
57
61
  <div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
58
62
  {% for _include in layout.tail_includes %}
data/_layouts/post.html CHANGED
@@ -31,7 +31,7 @@ tail_includes:
31
31
  {% if page.image %}
32
32
  {% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
33
33
  {% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
34
- {% capture alt %}alt="{{ page.image.alt | default: "Preview Image" }}"{% endcapture %}
34
+ {% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %}
35
35
 
36
36
  {% capture lqip %}
37
37
  {% if page.image.lqip %}
data/_layouts/tag.html CHANGED
@@ -5,7 +5,7 @@ layout: page
5
5
 
6
6
  {% include lang.html %}
7
7
 
8
- <div id="page-tag" class="mb-5">
8
+ <div id="page-tag">
9
9
  <h1 class="ps-lg-2">
10
10
  <i class="fa fa-tag fa-fw text-muted"></i>
11
11
  {{ page.title }}
@@ -176,6 +176,8 @@ footer {
176
176
  font-size: 0.8rem;
177
177
  background-color: var(--main-bg);
178
178
 
179
+ @extend %text-color;
180
+
179
181
  div.d-flex {
180
182
  height: $footer-height;
181
183
  line-height: 1.2rem;
@@ -185,7 +187,7 @@ footer {
185
187
  }
186
188
 
187
189
  a {
188
- @extend %text-color;
190
+ @extend %text-highlight;
189
191
 
190
192
  &:hover {
191
193
  @extend %link-hover;
@@ -243,7 +245,6 @@ i {
243
245
  .post-tag {
244
246
  line-height: 1.05rem;
245
247
  font-size: 0.85rem;
246
- border: 1px solid var(--btn-border-color);
247
248
  border-radius: 0.8rem;
248
249
  padding: 0.3rem 0.5rem;
249
250
  margin: 0 0.35rem 0.5rem 0;
@@ -494,9 +495,10 @@ i {
494
495
  display: inline-block;
495
496
  min-width: 2rem;
496
497
  text-align: center;
497
- border-radius: 0.3rem;
498
+ border-radius: 0.5rem;
499
+ border: 1px solid var(--btn-border-color);
498
500
  padding: 0 0.4rem;
499
- color: inherit;
501
+ color: var(--text-muted-color);
500
502
  line-height: 1.3rem;
501
503
 
502
504
  &:not(:last-child) {
@@ -715,7 +717,6 @@ $btn-mb: 0.5rem;
715
717
  }
716
718
 
717
719
  #avatar {
718
- margin: auto;
719
720
  display: block;
720
721
  width: 7rem;
721
722
  height: 7rem;
@@ -746,19 +747,20 @@ $btn-mb: 0.5rem;
746
747
  font-size: 1.75rem;
747
748
  line-height: 1.2;
748
749
  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);
756
758
  }
757
759
  }
758
760
 
759
761
  .site-subtitle {
760
762
  font-size: 95%;
761
- color: var(--sidebar-muted-color);
763
+ color: var(--site-subtitle-color);
762
764
  margin-top: 0.25rem;
763
765
  word-spacing: 1px;
764
766
  -webkit-user-select: none;
@@ -916,7 +918,7 @@ $btn-mb: 0.5rem;
916
918
 
917
919
  #breadcrumb {
918
920
  font-size: 1rem;
919
- color: gray;
921
+ color: var(--text-muted-color);
920
922
  padding-left: 0.5rem;
921
923
 
922
924
  a:hover {
@@ -957,8 +959,9 @@ $btn-mb: 0.5rem;
957
959
  /* 'Cancel' link */
958
960
  #search-cancel {
959
961
  color: var(--link-color);
960
- margin-left: 1rem;
962
+ margin-left: 0.75rem;
961
963
  display: none;
964
+ white-space: nowrap;
962
965
 
963
966
  @extend %cursor-pointer;
964
967
  }
@@ -1102,7 +1105,6 @@ $btn-mb: 0.5rem;
1102
1105
  /* --- main wrapper --- */
1103
1106
 
1104
1107
  #main-wrapper {
1105
- background-color: var(--main-bg);
1106
1108
  position: relative;
1107
1109
  min-height: calc(100vh - $footer-height-mobile);
1108
1110
 
@@ -1207,16 +1209,12 @@ $btn-mb: 0.5rem;
1207
1209
 
1208
1210
  */
1209
1211
 
1210
- @media all and (width <= 576px) {
1212
+ @media all and (max-width: 576px) {
1211
1213
  #main-wrapper {
1212
1214
  min-height: calc(100vh - #{$footer-height-mobile});
1213
1215
  }
1214
1216
 
1215
1217
  #core-wrapper {
1216
- min-height: calc(
1217
- 100vh - #{$topbar-height} - #{$footer-height-mobile}
1218
- ) !important;
1219
-
1220
1218
  .post-content {
1221
1219
  > blockquote[class^='prompt-'] {
1222
1220
  @include ml-mr(-1.25rem);
@@ -1233,7 +1231,7 @@ $btn-mb: 0.5rem;
1233
1231
  }
1234
1232
  }
1235
1233
 
1236
- @media all and (width <= 768px) {
1234
+ @media all and (max-width: 768px) {
1237
1235
  %full-width {
1238
1236
  max-width: 100%;
1239
1237
  }
@@ -1249,7 +1247,7 @@ $btn-mb: 0.5rem;
1249
1247
  }
1250
1248
 
1251
1249
  /* hide sidebar and panel */
1252
- @media all and (width <= 849px) {
1250
+ @media all and (max-width: 849px) {
1253
1251
  @mixin slide($append: null) {
1254
1252
  $basic: transform 0.4s ease;
1255
1253
 
@@ -1353,14 +1351,14 @@ $btn-mb: 0.5rem;
1353
1351
  } /* max-width: 849px */
1354
1352
 
1355
1353
  /* Phone & Pad */
1356
- @media all and (width >= 577px) and (width <= 1199px) {
1354
+ @media all and (min-width: 577px) and (max-width: 1199px) {
1357
1355
  footer .d-flex > div {
1358
1356
  width: 312px;
1359
1357
  }
1360
1358
  }
1361
1359
 
1362
1360
  /* Sidebar is visible */
1363
- @media all and (width >= 850px) {
1361
+ @media all and (min-width: 850px) {
1364
1362
  /* Solved jumping scrollbar */
1365
1363
  html {
1366
1364
  overflow-y: scroll;
@@ -1429,7 +1427,7 @@ $btn-mb: 0.5rem;
1429
1427
  }
1430
1428
 
1431
1429
  /* Pad horizontal */
1432
- @media all and (width >= 992px) and (width <= 1199px) {
1430
+ @media all and (min-width: 992px) and (max-width: 1199px) {
1433
1431
  #main .col-lg-11 {
1434
1432
  flex: 0 0 96%;
1435
1433
  max-width: 96%;
@@ -1437,7 +1435,7 @@ $btn-mb: 0.5rem;
1437
1435
  }
1438
1436
 
1439
1437
  /* Compact icons in sidebar & panel hidden */
1440
- @media all and (width >= 850px) and (width <= 1199px) {
1438
+ @media all and (min-width: 850px) and (max-width: 1199px) {
1441
1439
  #search-results > div {
1442
1440
  max-width: 700px;
1443
1441
  }
@@ -1452,7 +1450,7 @@ $btn-mb: 0.5rem;
1452
1450
  }
1453
1451
 
1454
1452
  /* panel hidden */
1455
- @media all and (width <= 1199px) {
1453
+ @media all and (max-width: 1199px) {
1456
1454
  #panel-wrapper {
1457
1455
  display: none;
1458
1456
  }
@@ -1464,7 +1462,7 @@ $btn-mb: 0.5rem;
1464
1462
 
1465
1463
  /* --- desktop mode, both sidebar and panel are visible --- */
1466
1464
 
1467
- @media all and (width >= 1200px) {
1465
+ @media all and (min-width: 1200px) {
1468
1466
  #back-to-top {
1469
1467
  bottom: 6.5rem;
1470
1468
  }
@@ -1505,13 +1503,13 @@ $btn-mb: 0.5rem;
1505
1503
  }
1506
1504
  }
1507
1505
 
1508
- @media all and (width >= 1400px) {
1506
+ @media all and (min-width: 1400px) {
1509
1507
  #back-to-top {
1510
1508
  right: calc((100vw - #{$sidebar-width} - 1140px) / 2 + 3rem);
1511
1509
  }
1512
1510
  }
1513
1511
 
1514
- @media all and (width >= 1650px) {
1512
+ @media all and (min-width: 1650px) {
1515
1513
  $icon-gap: 1rem;
1516
1514
 
1517
1515
  #main-wrapper,
@@ -1553,11 +1551,9 @@ $btn-mb: 0.5rem;
1553
1551
  $icon-gap: 1rem; // for the bottom icons
1554
1552
 
1555
1553
  .profile-wrapper {
1556
- text-align: center;
1557
1554
  margin-top: 3.5rem;
1558
1555
  margin-bottom: 2.5rem;
1559
1556
  padding-left: 3.5rem;
1560
- padding-right: 3.5rem;
1561
1557
  }
1562
1558
 
1563
1559
  ul {
@@ -107,7 +107,7 @@
107
107
  }
108
108
 
109
109
  %sidebar-links {
110
- color: rgba(117, 117, 117, 0.9);
110
+ color: var(--sidebar-muted-color);
111
111
  -webkit-user-select: none;
112
112
  -moz-user-select: none;
113
113
  -ms-user-select: none;
@@ -122,6 +122,11 @@
122
122
  -webkit-box-orient: vertical;
123
123
  }
124
124
 
125
+ %text-highlight {
126
+ color: inherit;
127
+ font-weight: 600;
128
+ }
129
+
125
130
  /* ---------- scss mixin --------- */
126
131
 
127
132
  @mixin mt-mb($value) {
@@ -63,6 +63,7 @@ html {
63
63
  font-size: $code-font-size;
64
64
  line-height: 1.4rem;
65
65
  word-wrap: normal; /* Fixed Safari overflow-x */
66
+ color: var(--code-snippets-color);
66
67
  }
67
68
 
68
69
  table {
@@ -240,7 +241,7 @@ div {
240
241
  }
241
242
  }
242
243
 
243
- @media all and (width >= 576px) {
244
+ @media all and (min-width: 576px) {
244
245
  div[class^='language-'] {
245
246
  .post-content > & {
246
247
  @include ml-mr(0);
@@ -5,44 +5,40 @@
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: #de6b18;
9
- --highlight-lineno-color: #6c6c6d;
8
+ --highlighter-rouge-color: #ff6e4e;
9
+ --highlight-lineno-color: #666666;
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: #bdbdbd;
16
-
17
- /* override Bootstrap */
18
- pre {
19
- color: #bfbfbf;
20
- }
15
+ --filepath-text-color: #cacaca;
16
+ --code-snippets-color: #c2c2c2;
21
17
 
22
18
  .highlight .gp {
23
- color: #818c96;
19
+ color: #87939d;
24
20
  }
25
21
 
26
22
  /* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
27
23
 
28
24
  .highlight pre { background-color: var(--highlight-bg-color); }
29
25
  .highlight .hll { background-color: var(--highlight-bg-color); }
30
- .highlight .c { color: #75715e; } /* Comment */
26
+ .highlight .c { color: #938d75; } /* Comment */
31
27
  .highlight .err { color: #960050; background-color: #1e0010; } /* Error */
32
28
  .highlight .k { color: #66d9ef; } /* Keyword */
33
29
  .highlight .l { color: #ae81ff; } /* Literal */
34
30
  .highlight .n { color: #f8f8f2; } /* Name */
35
- .highlight .o { color: #f92672; } /* Operator */
31
+ .highlight .o { color: #ff329c; } /* Operator */
36
32
  .highlight .p { color: #f8f8f2; } /* Punctuation */
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 */
33
+ .highlight .cm { color: #938d75; } /* Comment.Multiline */
34
+ .highlight .cp { color: #938d75; } /* Comment.Preproc */
35
+ .highlight .c1 { color: #938d75; } /* Comment.Single */
36
+ .highlight .cs { color: #938d75; } /* Comment.Special */
41
37
  .highlight .ge { color: inherit; font-style: italic; } /* Generic.Emph */
42
38
  .highlight .gs { font-weight: bold; } /* Generic.Strong */
43
39
  .highlight .kc { color: #66d9ef; } /* Keyword.Constant */
44
40
  .highlight .kd { color: #66d9ef; } /* Keyword.Declaration */
45
- .highlight .kn { color: #f92672; } /* Keyword.Namespace */
41
+ .highlight .kn { color: #ff329c; } /* Keyword.Namespace */
46
42
  .highlight .kp { color: #66d9ef; } /* Keyword.Pseudo */
47
43
  .highlight .kr { color: #66d9ef; } /* Keyword.Reserved */
48
44
  .highlight .kt { color: #66d9ef; } /* Keyword.Type */
@@ -61,9 +57,9 @@
61
57
  .highlight .nn { color: #f8f8f2; } /* Name.Namespace */
62
58
  .highlight .nx { color: #a6e22e; } /* Name.Other */
63
59
  .highlight .py { color: #f8f8f2; } /* Name.Property */
64
- .highlight .nt { color: #f92672; } /* Name.Tag */
60
+ .highlight .nt { color: #ff329c; } /* Name.Tag */
65
61
  .highlight .nv { color: #f8f8f2; } /* Name.Variable */
66
- .highlight .ow { color: #f92672; } /* Operator.Word */
62
+ .highlight .ow { color: #ff329c; } /* Operator.Word */
67
63
  .highlight .w { color: #f8f8f2; } /* Text.Whitespace */
68
64
  .highlight .mf { color: #ae81ff; } /* Literal.Number.Float */
69
65
  .highlight .mh { color: #ae81ff; } /* Literal.Number.Hex */
@@ -85,7 +81,7 @@
85
81
  .highlight .vg { color: #f8f8f2; } /* Name.Variable.Global */
86
82
  .highlight .vi { color: #f8f8f2; } /* Name.Variable.Instance */
87
83
  .highlight .il { color: #ae81ff; } /* Literal.Number.Integer.Long */
88
- .highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
89
- .highlight .gd { color: #f92672; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
84
+ .highlight .gu { color: #938d75; } /* Generic.Subheading & Diff Unified/Comment? */
85
+ .highlight .gd { color: #ff329c; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
90
86
  .highlight .gi { color: #a6e22e; background-color: #0b5858; } /* Generic.Inserted & Diff Inserted */
91
87
  }
@@ -10,10 +10,11 @@
10
10
 
11
11
  /* Common color */
12
12
  --text-color: rgb(175, 176, 177);
13
- --text-muted-color: rgb(107, 116, 124);
13
+ --text-muted-color: rgb(125, 136, 146);
14
14
  --heading-color: #cccccc;
15
+ --label-color: #a4a4c2;
15
16
  --blockquote-border-color: rgb(66, 66, 66);
16
- --blockquote-text-color: rgb(117, 117, 117);
17
+ --blockquote-text-color: #868686;
17
18
  --link-color: rgb(138, 180, 248);
18
19
  --link-underline-color: rgb(82, 108, 150);
19
20
  --button-bg: rgb(39, 40, 43);
@@ -22,7 +23,6 @@
22
23
  --btn-backtotop-border-color: var(--btn-border-color);
23
24
  --btn-box-shadow: var(--main-bg);
24
25
  --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,6 +34,8 @@
34
34
  );
35
35
 
36
36
  /* Sidebar */
37
+ --site-title-color: #717070;
38
+ --site-subtitle-color: #6d6c6b;
37
39
  --sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
38
40
  --sidebar-muted-color: #6d6c6b;
39
41
  --sidebar-active-color: rgb(255, 255, 255, 0.95);
@@ -58,7 +60,6 @@
58
60
 
59
61
  /* Posts */
60
62
  --toc-highlight: rgb(116, 178, 243);
61
- --tag-bg: rgb(41, 40, 40);
62
63
  --tag-hover: rgb(43, 56, 62);
63
64
  --tb-odd-bg: rgba(42, 47, 53, 0.52); /* odd rows of the posts' table */
64
65
  --tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
@@ -66,7 +67,6 @@
66
67
  --footnote-target-bg: rgb(63, 81, 181);
67
68
  --btn-share-color: #6c757d;
68
69
  --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
- /* see: <https://raw.githubusercontent.com/jwarby/pygments-css/master/github.css> */
6
+ /* based on: <https://raw.githubusercontent.com/jwarby/pygments-css/master/github.css> */
7
7
  .highlight .hll { background-color: #ffffcc; }
8
- .highlight .c { color: #999988; font-style: italic; } /* Comment */
8
+ .highlight .c { color: #717165; 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: #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 */
12
+ .highlight .cm { color: #717165; font-style: italic; } /* Comment.Multiline */
13
+ .highlight .cp { color: #707070; font-style: italic; } /* Comment.Preproc */
14
+ .highlight .c1 { color: #717165; font-style: italic; } /* Comment.Single */
15
+ .highlight .cs { color: #707070; 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: #999999; } /* Generic.Heading */
20
- .highlight .gi { color: #008080; background-color: #ddffdd; } /* Generic.Inserted */
21
- .highlight .go { color: #888888; } /* Generic.Output */
19
+ .highlight .gh { color: #707070; } /* Generic.Heading */
20
+ .highlight .gi { color: #005e5e; background-color: #ddffdd; } /* Generic.Inserted */
21
+ .highlight .go { color: #707070; } /* 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: #008080; } /* Name.Attribute */
35
- .highlight .nb { color: #0086b3; } /* Name.Builtin */
34
+ .highlight .na { color: #005e5e; } /* Name.Attribute */
35
+ .highlight .nb { color: #0078a1; } /* Name.Builtin */
36
36
  .highlight .nc { color: #445588; font-weight: bold; } /* Name.Class */
37
- .highlight .no { color: #008080; } /* Name.Constant */
37
+ .highlight .no { color: #005e5e; } /* 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: #008080; } /* Name.Variable */
45
+ .highlight .nv { color: #005e5e; } /* 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,22 +60,23 @@
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: #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 */
63
+ .highlight .bp { color: #707070; } /* Name.Builtin.Pseudo */
64
+ .highlight .vc { color: #005e5e; } /* Name.Variable.Class */
65
+ .highlight .vg { color: #005e5e; } /* Name.Variable.Global */
66
+ .highlight .vi { color: #005e5e; } /* 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: #f7f7f7;
71
+ --highlight-bg-color: #fcfcfc;
72
72
  --highlighter-rouge-color: #3f596f;
73
- --highlight-lineno-color: #c2c6cc;
73
+ --highlight-lineno-color: #959595;
74
74
  --inline-code-bg: #f6f6f7;
75
- --code-header-text-color: #a3a3b1;
76
- --code-header-muted-color: #ebebeb;
77
- --code-header-icon-color: #d1d1d1;
75
+ --code-header-text-color: #a3a3a3;
76
+ --code-header-muted-color: #e2e1e1;
77
+ --code-header-icon-color: #c9c8c8;
78
78
  --clipboard-checked-color: #43c743;
79
+ --code-snippets-color: #b01662;
79
80
 
80
81
  [class^='prompt-'] {
81
82
  --inline-code-bg: #fbfafa;
@@ -10,10 +10,11 @@
10
10
 
11
11
  /* Common color */
12
12
  --text-color: #34343c;
13
- --text-muted-color: #8e8e8e;
13
+ --text-muted-color: #757575;
14
14
  --heading-color: black;
15
+ --label-color: #4d4d5b;
15
16
  --blockquote-border-color: #eeeeee;
16
- --blockquote-text-color: #9a9a9a;
17
+ --blockquote-text-color: #757575;
17
18
  --link-color: #0153ab;
18
19
  --link-underline-color: #dee2e6;
19
20
  --button-bg: #ffffff;
@@ -36,8 +37,10 @@
36
37
  );
37
38
 
38
39
  /* Sidebar */
40
+ --site-title-color: rgb(113, 113, 113);
41
+ --site-subtitle-color: #717171;
39
42
  --sidebar-bg: #f6f8fa;
40
- --sidebar-muted-color: #a2a19f;
43
+ --sidebar-muted-color: #545454;
41
44
  --sidebar-active-color: #1d1d1d;
42
45
  --sidebar-hover-bg: rgb(223, 233, 241, 0.64);
43
46
  --sidebar-btn-bg: white;
@@ -60,16 +63,13 @@
60
63
  --btn-text-color: #676666;
61
64
 
62
65
  /* Posts */
63
- --toc-highlight: #563d7c;
66
+ --toc-highlight: #47566c;
64
67
  --btn-share-hover-color: var(--link-color);
65
68
  --card-bg: white;
66
69
  --card-hovor-bg: #e2e2e2;
67
70
  --card-shadow: rgb(104, 104, 104, 0.05) 0 2px 6px 0,
68
71
  rgba(211, 209, 209, 0.15) 0 0 0 1px;
69
- --label-color: #616161;
70
- --relate-post-date: rgba(30, 55, 70, 0.4);
71
72
  --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);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy)
2
+ * Chirpy v6.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -133,7 +133,7 @@
133
133
  }
134
134
  } /* #archives */
135
135
 
136
- @media all and (width <= 576px) {
136
+ @media all and (max-width: 576px) {
137
137
  #archives {
138
138
  margin-top: -1rem;
139
139
 
@@ -59,7 +59,7 @@
59
59
  }
60
60
  }
61
61
 
62
- @media all and (width <= 576px) {
62
+ @media all and (max-width: 576px) {
63
63
  #page-category,
64
64
  #page-tag {
65
65
  ul > li {
@@ -139,7 +139,7 @@
139
139
  } /* .pagination */
140
140
 
141
141
  /* Tablet */
142
- @media all and (width >= 768px) {
142
+ @media all and (min-width: 768px) {
143
143
  #post-list {
144
144
  %img-radius {
145
145
  border-radius: 0 $base-radius $base-radius 0;
@@ -173,7 +173,7 @@
173
173
  }
174
174
 
175
175
  /* Hide SideBar and TOC */
176
- @media all and (width <= 830px) {
176
+ @media all and (max-width: 830px) {
177
177
  .pagination {
178
178
  justify-content: space-evenly;
179
179
 
@@ -186,7 +186,7 @@
186
186
  }
187
187
 
188
188
  /* Sidebar is visible */
189
- @media all and (width >= 831px) {
189
+ @media all and (min-width: 831px) {
190
190
  #post-list {
191
191
  margin-top: 2.5rem;
192
192
  }
@@ -212,7 +212,7 @@
212
212
  }
213
213
 
214
214
  /* Panel is visible */
215
- @media all and (width >= 1200px) {
215
+ @media all and (min-width: 1200px) {
216
216
  #post-list {
217
217
  padding-right: 0.5rem;
218
218
  }
@@ -52,10 +52,10 @@ h1 + .post-meta {
52
52
  }
53
53
 
54
54
  em {
55
- @extend %text-color;
55
+ color: var(--text-color);
56
56
 
57
57
  a {
58
- @extend %text-color;
58
+ color: inherit;
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
- color: var(--text-color);
76
+ @extend %text-highlight;
77
77
 
78
78
  &:hover {
79
79
  @extend %link-hover;
@@ -99,15 +99,18 @@ h1 + .post-meta {
99
99
  .share-icons {
100
100
  font-size: 1.2rem;
101
101
 
102
- > i {
102
+ > *:hover {
103
+ i {
104
+ @extend %btn-share-hovor;
105
+ }
106
+ }
107
+
108
+ button {
103
109
  position: relative;
104
- bottom: 1px;
110
+ bottom: 2px;
111
+ padding: 0;
105
112
 
106
113
  @extend %cursor-pointer;
107
-
108
- &:hover {
109
- @extend %btn-share-hovor;
110
- }
111
114
  }
112
115
 
113
116
  a {
@@ -117,10 +120,6 @@ h1 + .post-meta {
117
120
 
118
121
  &:hover {
119
122
  text-decoration: none;
120
-
121
- > i {
122
- @extend %btn-share-hovor;
123
- }
124
123
  }
125
124
  }
126
125
 
@@ -157,8 +156,6 @@ h1 + .post-meta {
157
156
  line-height: 2rem;
158
157
 
159
158
  .post-tag {
160
- background: var(--tag-bg);
161
-
162
159
  &:hover {
163
160
  @extend %link-hover;
164
161
  @extend %tag-hover;
@@ -334,7 +331,7 @@ h1 + .post-meta {
334
331
  em {
335
332
  @extend %normal-font-style;
336
333
 
337
- color: var(--relate-post-date);
334
+ color: var(--text-muted-color);
338
335
  }
339
336
 
340
337
  p {
@@ -380,7 +377,7 @@ h1 + .post-meta {
380
377
  }
381
378
  }
382
379
 
383
- @media all and (width <= 576px) {
380
+ @media all and (max-width: 576px) {
384
381
  .preview-img[data-src] {
385
382
  margin-top: 2.2rem;
386
383
  }
@@ -395,14 +392,14 @@ h1 + .post-meta {
395
392
  }
396
393
  }
397
394
 
398
- @media all and (width <= 768px) {
395
+ @media all and (max-width: 768px) {
399
396
  .post-content > p > img {
400
397
  max-width: calc(100% + 1rem);
401
398
  }
402
399
  }
403
400
 
404
401
  /* Hide SideBar and TOC */
405
- @media all and (width <= 849px) {
402
+ @media all and (max-width: 849px) {
406
403
  .post-navigation {
407
404
  padding-left: 0;
408
405
  padding-right: 0;
@@ -0,0 +1,6 @@
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"))}))}();
@@ -0,0 +1,6 @@
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))}))}();
@@ -0,0 +1,6 @@
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))})))}();
@@ -0,0 +1,6 @@
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))}}))}();
@@ -0,0 +1,6 @@
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)}))}))}()}();
@@ -0,0 +1,6 @@
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})}();
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.0.2
4
+ version: 6.1.0
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-06-15 00:00:00.000000000 Z
11
+ date: 2023-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.4'
97
+ - !ruby/object:Gem::Dependency
98
+ name: jekyll-include-cache
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.2'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.2'
97
111
  description:
98
112
  email:
99
113
  - jelilio.adesina@gmail.com
@@ -183,7 +197,7 @@ files:
183
197
  - _sass/colors/dark-typography.scss
184
198
  - _sass/colors/light-syntax.scss
185
199
  - _sass/colors/light-typography.scss
186
- - _sass/jekyll-theme-chirpy-birdly.scss
200
+ - _sass/jekyll-theme-chirpy.scss
187
201
  - _sass/layout/archives.scss
188
202
  - _sass/layout/categories.scss
189
203
  - _sass/layout/category-tag.scss
@@ -205,11 +219,17 @@ files:
205
219
  - assets/img/favicons/site.webmanifest
206
220
  - assets/js/data/search.json
207
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
208
228
  - assets/js/pwa/app.js
209
229
  - assets/js/pwa/sw.js
210
230
  - assets/js/pwa/unregister.js
211
231
  - assets/robots.txt
212
- homepage: https://github.com/jelilio/jekyll-theme-chirpy-birdly
232
+ homepage: https://github.com/cotes2020/jekyll-theme-chirpy
213
233
  licenses:
214
234
  - MIT
215
235
  metadata: