jekyll-theme-chirpy 6.2.3 → 6.3.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: b6bbfe822ac8e5fce131965e3859c7505fbb89310f9ef93cc6ba9d3e55c4dc94
4
- data.tar.gz: 6332ba5af1bf7f477259280859bd7772d79152fc20c3b6ed8a26e3c479d38208
3
+ metadata.gz: 37820e3e111cbdf11fa68f85cdda700105a567fe6c991de6dfaa4fda3944b2b1
4
+ data.tar.gz: a2918e424cef8dcf29b01e6b7aabc12aa33732d9727e063cbea63789531c393c
5
5
  SHA512:
6
- metadata.gz: 116a3f5f8c9a8ad523ae19b42937927e17bb6ec698bf19ed2ae6c6e67f906382d815c0a8de261215313a5261b2888b19b129fbb6d31ddda3968f877707287c92
7
- data.tar.gz: 71a78325c8fac6ec7dd1eaeb43c6312a36f6a1fea814d326d487f23a6180b19e84d1ef0f0fe1009ef058c4a593af8a3f87037856cdd3885d397a0d10a3f818cd
6
+ metadata.gz: 154ecf741a74587402e58bf869011998a80003606a5c8e7dba337ab10160cecdc08ecc96387eb5d32aac58fbaabfd9bca60517e906b20b7b84494837b6f1b2e3
7
+ data.tar.gz: 59af752aea2a3c7b53758ac4ca840234573430e1f49f4bda59507ff699346b06c58c1b56e558f0b0dd3b18be660fcedd9d51bea6a485039152101e1379e3157d
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Chirpy Jekyll Theme
4
4
 
5
- A minimal, responsive and feature-rich Jekyll theme for technical writing.
5
+ A minimal, responsive, and feature-rich Jekyll theme for technical writing.
6
6
 
7
7
  [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)][gem] 
8
8
  [![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg?branch=master&event=push)][ci] 
@@ -55,9 +55,9 @@ For details, see the "[Contributing Guidelines][contribute-guide]".
55
55
 
56
56
  ## Credits
57
57
 
58
- This project is mainly built with [Jekyll][jekyllrb] ecosystem,
58
+ This project was built primarily with the [Jekyll][jekyllrb] ecosystem,
59
59
  [Bootstrap][bootstrap], [Font Awesome][icons], and some other [wonderful tools][lib].
60
- The avatar and favicon design come from [Clipart Max][image].
60
+ The avatar and favicon design from [Clipart Max][image].
61
61
 
62
62
  Many thanks to the [contributors][contributors] who participated in the development
63
63
  and to the folks who reported bugs or shared ideas.
data/_data/locales/en.yml CHANGED
@@ -40,7 +40,7 @@ copyright:
40
40
  Except where otherwise noted, the blog posts on this site are licensed
41
41
  under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
42
42
 
43
- meta: Using the :THEME theme for :PLATFORM
43
+ meta: Using the :THEME theme for :PLATFORM.
44
44
 
45
45
  not_found:
46
46
  statment: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
@@ -23,8 +23,8 @@ bootstrap:
23
23
  js: https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js
24
24
 
25
25
  toc:
26
- css: https://cdn.jsdelivr.net/npm/tocbot@4.21.2/dist/tocbot.min.css
27
- js: https://cdn.jsdelivr.net/npm/tocbot@4.21.2/dist/tocbot.min.js
26
+ css: https://cdn.jsdelivr.net/npm/tocbot@4.21.3/dist/tocbot.min.css
27
+ js: https://cdn.jsdelivr.net/npm/tocbot@4.21.3/dist/tocbot.min.js
28
28
 
29
29
  fontawesome:
30
30
  css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css
@@ -33,7 +33,7 @@ search:
33
33
  js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js
34
34
 
35
35
  mermaid:
36
- js: https://cdn.jsdelivr.net/npm/mermaid@10.5.0/dist/mermaid.min.js
36
+ js: https://cdn.jsdelivr.net/npm/mermaid@10.6.0/dist/mermaid.min.js
37
37
 
38
38
  dayjs:
39
39
  js:
@@ -1,5 +1,6 @@
1
1
  <iframe
2
2
  class="embed-video twitch"
3
+ loading="lazy"
3
4
  src="https://player.twitch.tv/?video={{ include.id }}&parent={{ site.url | split: '://' | last | remove: '/' }}"
4
5
  frameborder="0"
5
6
  allowfullscreen="true"
@@ -1,23 +1,38 @@
1
1
  <!-- Post sharing snippet -->
2
2
 
3
3
  <div class="share-wrapper d-flex align-items-center">
4
- <span class="share-label text-muted me-1">{{ site.data.locales[include.lang].post.share }}</span>
4
+ <span class="share-label text-muted">{{ site.data.locales[include.lang].post.share }}</span>
5
5
  <span class="share-icons">
6
6
  {% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
7
7
  {% assign title = title | uri_escape %}
8
8
  {% assign url = page.url | absolute_url | url_encode %}
9
9
 
10
- {% for share in site.data.share.platforms %}
10
+ {% for share in site.data.share.platforms -%}
11
+ {%- capture tooltip -%}
12
+ data-bs-toggle="tooltip" data-bs-placement="top" title="{{ share.type }}" aria-label="{{ share.type }}"
13
+ {%- endcapture -%}
14
+
15
+ {% if share.type == 'Mastodon' %}
16
+ <script defer type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/share-to-mastodon/+esm"></script>
17
+ <button class="btn text-start" {{ tooltip }}>
18
+ <share-to-mastodon
19
+ class="share-mastodon"
20
+ message="{{ title }}"
21
+ url="{{ url }}"
22
+ {%- if share.instances -%}
23
+ customInstanceList="{{ share.instances | jsonify | xml_escape }}"
24
+ {%- endif %}
25
+ >
26
+ <i class="fa-fw {{ share.icon }}"></i>
27
+ </share-to-mastodon>
28
+ </button>
29
+
30
+ {% continue %}
31
+ {% endif %}
32
+
11
33
  {% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}
12
- <a
13
- href="{{ link }}"
14
- data-bs-toggle="tooltip"
15
- data-bs-placement="top"
16
- title="{{ share.type }}"
17
- target="_blank"
18
- rel="noopener"
19
- aria-label="{{ share.type }}"
20
- >
34
+
35
+ <a href="{{ link }}" target="_blank" rel="noopener" {{ tooltip }}>
21
36
  <i class="fa-fw {{ share.icon }}"></i>
22
37
  </a>
23
38
  {% endfor %}
@@ -31,7 +46,7 @@
31
46
  title="{{ site.data.locales[include.lang].post.button.share_link.title }}"
32
47
  data-title-succeed="{{ site.data.locales[include.lang].post.button.share_link.succeed }}"
33
48
  >
34
- <i class="fa-fw fas fa-link pe-none"></i>
49
+ <i class="fa-fw fas fa-link pe-none fs-6"></i>
35
50
  </button>
36
51
  </span>
37
52
  </div>
@@ -309,7 +309,6 @@ sup {
309
309
  .preview-img {
310
310
  aspect-ratio: 40 / 21;
311
311
  width: 100%;
312
- height: 100%;
313
312
  overflow: hidden;
314
313
 
315
314
  @extend %rounded;
@@ -324,6 +323,10 @@ sup {
324
323
  object-fit: cover;
325
324
 
326
325
  @extend %rounded;
326
+
327
+ @at-root #post-list & {
328
+ width: 100%;
329
+ }
327
330
  }
328
331
  }
329
332
 
@@ -63,7 +63,8 @@
63
63
 
64
64
  /* Posts */
65
65
  --toc-highlight: #0550ae;
66
- --btn-share-hover-color: var(--link-color);
66
+ --btn-share-color: gray;
67
+ --btn-share-hover-color: #0d6efd;
67
68
  --card-bg: white;
68
69
  --card-hovor-bg: #e2e2e2;
69
70
  --card-shadow: rgb(104, 104, 104, 0.05) 0 2px 6px 0,
@@ -2,14 +2,6 @@
2
2
  Post-specific style
3
3
  */
4
4
 
5
- @mixin btn-sharing-color($light-color, $important: false) {
6
- @if $important {
7
- color: var(--btn-share-color, $light-color) !important;
8
- } @else {
9
- color: var(--btn-share-color, $light-color);
10
- }
11
- }
12
-
13
5
  %btn-post-nav {
14
6
  width: 50%;
15
7
  position: relative;
@@ -72,11 +64,23 @@ h1 + .post-meta {
72
64
  -ms-user-select: none;
73
65
  user-select: none;
74
66
 
67
+ %icon-size {
68
+ font-size: 1.125rem;
69
+ }
70
+
75
71
  .share-icons {
76
- font-size: 1.2rem;
72
+ display: flex;
73
+
74
+ i {
75
+ color: var(--btn-share-color);
76
+
77
+ @extend %icon-size;
78
+ }
77
79
 
78
80
  > * {
79
- margin-left: 0.25rem;
81
+ @extend %icon-size;
82
+
83
+ margin-left: 0.5rem;
80
84
 
81
85
  &:hover {
82
86
  i {
@@ -86,44 +90,29 @@ h1 + .post-meta {
86
90
  }
87
91
 
88
92
  button {
89
- position: relative;
90
- bottom: 2px;
91
93
  padding: 0;
94
+ border: none;
95
+ line-height: inherit;
92
96
 
93
97
  @extend %cursor-pointer;
94
98
  }
95
-
96
- a :hover {
97
- text-decoration: none;
98
- }
99
-
100
- .fa-square-x-twitter {
101
- @include btn-sharing-color(black);
102
- }
103
-
104
- .fa-facebook-square {
105
- @include btn-sharing-color(rgb(66, 95, 156));
106
- }
107
-
108
- .fa-telegram {
109
- @include btn-sharing-color(rgb(39, 159, 217));
110
- }
111
-
112
- .fa-linkedin {
113
- @include btn-sharing-color(rgb(0, 119, 181));
114
- }
115
-
116
- .fa-weibo {
117
- @include btn-sharing-color(rgb(229, 20, 43));
118
- }
119
99
  } /* .share-icons */
120
-
121
- .fas.fa-link {
122
- @include btn-sharing-color(rgb(171, 171, 171));
123
- }
124
100
  } /* .share-wrapper */
125
101
  }
126
102
 
103
+ .share-mastodon {
104
+ /* See: https://github.com/justinribeiro/share-to-mastodon#properties */
105
+ --wc-stm-font-family: $font-family-base;
106
+ --wc-stm-dialog-background-color: var(--card-bg);
107
+ --wc-stm-form-button-border: 1px solid var(--btn-border-color);
108
+ --wc-stm-form-submit-background-color: var(--sidebar-btn-bg);
109
+ --wc-stm-form-cancel-background-color: var(--sidebar-btn-bg);
110
+ --wc-stm-form-button-background-color-hover: #007bff;
111
+ --wc-stm-form-button-color-hover: white;
112
+
113
+ font-size: 1rem;
114
+ }
115
+
127
116
  .post-tags {
128
117
  line-height: 2rem;
129
118
 
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !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,i(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=i(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 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 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 l=$(".mode-toggle");var s=$("body"),c="sidebar-display",u=function(){function t(){e(this,t)}return r(t,null,[{key:"toggle",value:function(){!1===t.isExpanded?s.attr(c,""):s.removeAttr(c),t.isExpanded=!t.isExpanded}}]),t}();o(u,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),b=$("#main-wrapper>.container>.row"),v=$("#topbar-title"),m=$("search"),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!==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",u.toggle),$("#mask").on("click",u.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"))}))}();
4
+ !function(){"use strict";const o=$(".mode-toggle");function t(o,t,s){return(t=function(o){var t=function(o,t){if("object"!=typeof o||null===o)return o;var s=o[Symbol.toPrimitive];if(void 0!==s){var e=s.call(o,t||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(o)}(o,"string");return"symbol"==typeof t?t:String(t)}(t))in o?Object.defineProperty(o,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[t]=s,o}const s=$("body"),e="sidebar-display";class a{static toggle(){!1===a.isExpanded?s.attr(e,""):s.removeAttr(e),a.isExpanded=!a.isExpanded}}t(a,"isExpanded",!1);const r=$("#sidebar-trigger"),l=$("#search-trigger"),n=$("#search-cancel"),i=$("#main-wrapper>.container>.row"),c=$("#topbar-title"),f=$("search"),d=$("#search-result-wrapper"),u=$("#search-results"),p=$("#search-input"),b=$("#search-hints"),g=$("html,body"),m="loaded",C="unloaded",v="input-focus",h="d-flex";class w{static on(){w.offset=window.scrollY,g.scrollTop(0)}static off(){g.scrollTop(w.offset)}}t(w,"offset",0),t(w,"resultVisible",!1);class y{static on(){r.addClass(C),c.addClass(C),l.addClass(C),f.addClass(h),n.addClass(m)}static off(){n.removeClass(m),f.removeClass(h),r.removeClass(C),c.removeClass(C),l.removeClass(C)}}class k{static on(){w.resultVisible||(w.on(),d.removeClass(C),i.addClass(C),w.resultVisible=!0)}static off(){w.resultVisible&&(u.empty(),b.hasClass(C)&&b.removeClass(C),d.addClass(C),i.removeClass(C),w.off(),p.val(""),w.resultVisible=!1)}}function T(){return n.hasClass(m)}const x=$(".collapse");$(".code-header>button").children().attr("class"),function(){const o=$(window),t=$("#back-to-top");o.on("scroll",(()=>{o.scrollTop()>50?t.fadeIn():t.fadeOut()})),t.on("click",(()=>{o.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((o=>new bootstrap.Tooltip(o))),0!==o.length&&o.off().on("click",(o=>{const t=$(o.target);let s=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),s.trigger("blur")})),$("#sidebar-trigger").on("click",a.toggle),$("#mask").on("click",a.toggle),l.on("click",(function(){y.on(),k.on(),p.trigger("focus")})),n.on("click",(function(){y.off(),k.off()})),p.on("focus",(function(){f.addClass(v)})),p.on("focusout",(function(){f.removeClass(v)})),p.on("input",(()=>{""===p.val()?T()?b.removeClass(C):k.off():(k.on(),T()&&b.addClass(C))})),x.on("hide.bs.collapse",(function(){const o="h_"+$(this).attr("id").substring(2);o&&($("#".concat(o," .far.fa-folder-open")).attr("class","far fa-folder fa-fw"),$("#".concat(o," i.fas")).addClass("rotate"),$("#".concat(o)).removeClass("hide-border-bottom"))})),x.on("show.bs.collapse",(function(){const o="h_"+$(this).attr("id").substring(2);o&&($("#".concat(o," .far.fa-folder")).attr("class","far fa-folder-open fa-fw"),$("#".concat(o," i.fas")).removeClass("rotate"),$("#".concat(o)).addClass("hide-border-bottom"))}))}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !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",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}();n(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),b=$("#main-wrapper>.container>.row"),m=$("#topbar-title"),v=$("search"),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(){f.addClass(A),m.addClass(A),d.addClass(A),v.addClass(T),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),v.removeClass(T),f.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",c.toggle),$("#mask").on("click",c.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))}))}();
4
+ !function(){"use strict";const e=$(".mode-toggle");function s(e,s,o){return(s=function(e){var s=function(e,s){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var t=o.call(e,s||"default");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:String(s)}(s))in e?Object.defineProperty(e,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[s]=o,e}const o=$("body"),t="sidebar-display";class r{static toggle(){!1===r.isExpanded?o.attr(t,""):o.removeAttr(t),r.isExpanded=!r.isExpanded}}s(r,"isExpanded",!1);const a=$("#sidebar-trigger"),l=$("#search-trigger"),i=$("#search-cancel"),n=$("#main-wrapper>.container>.row"),c=$("#topbar-title"),d=$("search"),f=$("#search-result-wrapper"),u=$("#search-results"),p=$("#search-input"),g=$("#search-hints"),m=$("html,body"),b="loaded",v="unloaded",C="input-focus",h="d-flex";class y{static on(){y.offset=window.scrollY,m.scrollTop(0)}static off(){m.scrollTop(y.offset)}}s(y,"offset",0),s(y,"resultVisible",!1);class w{static on(){a.addClass(v),c.addClass(v),l.addClass(v),d.addClass(h),i.addClass(b)}static off(){i.removeClass(b),d.removeClass(h),a.removeClass(v),c.removeClass(v),l.removeClass(v)}}class k{static on(){y.resultVisible||(y.on(),f.removeClass(v),n.addClass(v),y.resultVisible=!0)}static off(){y.resultVisible&&(u.empty(),g.hasClass(v)&&g.removeClass(v),f.addClass(v),n.removeClass(v),y.off(),p.val(""),y.resultVisible=!1)}}function T(){return i.hasClass(b)}!function(){const e=$(window),s=$("#back-to-top");e.on("scroll",(()=>{e.scrollTop()>50?s.fadeIn():s.fadeOut()})),s.on("click",(()=>{e.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((e=>new bootstrap.Tooltip(e))),0!==e.length&&e.off().on("click",(e=>{const s=$(e.target);let o=s.prop("tagName")==="button".toUpperCase()?s:s.parent();modeToggle.flipMode(),o.trigger("blur")})),$("#sidebar-trigger").on("click",r.toggle),$("#mask").on("click",r.toggle),l.on("click",(function(){w.on(),k.on(),p.trigger("focus")})),i.on("click",(function(){w.off(),k.off()})),p.on("focus",(function(){d.addClass(C)})),p.on("focusout",(function(){d.removeClass(C)})),p.on("input",(()=>{""===p.val()?T()?g.removeClass(v):k.off():(k.on(),T()&&g.addClass(v))}))}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !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-wrapper>.container>.row"),v=$("#topbar-title"),g=$("search"),h=$("#search-result-wrapper"),b=$("#search-results"),y=$("#search-input"),C=$("#search-hints"),k=$("html,body"),w="loaded",T="unloaded",A="input-focus",j="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 E=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(j),m.addClass(w)}},{key:"off",value:function(){m.removeClass(w),g.removeClass(j),f.removeClass(T),v.removeClass(T),d.removeClass(T)}}]),e}(),x=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){S.resultVisible||(S.on(),h.removeClass(T),p.addClass(T),S.resultVisible=!0)}},{key:"off",value:function(){S.resultVisible&&(b.empty(),C.hasClass(T)&&C.removeClass(T),h.addClass(T),p.removeClass(T),S.off(),y.val(""),S.resultVisible=!1)}}]),e}();function I(){return m.hasClass(w)}$(".collapse");$(".code-header>button").children().attr("class");var M="data-src",F="data-lqip",O={SHIMMER:"shimmer",BLUR:"blur"};function R(t){$(this).parent().removeClass(t)}function D(){this.complete&&(this.hasAttribute(F)?R.call(this,O.BLUR):R.call(this,O.SHIMMER))}function P(){var t=$(this),e=t.attr(M);t.attr("src",encodeURI(e)),t.removeAttr(M)}var U,V,H=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}();U=$(window),V=$("#back-to-top"),U.on("scroll",(function(){U.scrollTop()>50?V.fadeIn():V.fadeOut()})),V.on("click",(function(){U.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(){E.on(),x.on(),y.trigger("focus")})),m.on("click",(function(){E.off(),x.off()})),y.on("focus",(function(){g.addClass(A)})),y.on("focusout",(function(){g.removeClass(A)})),y.on("input",(function(){""===y.val()?I()?C.removeClass(T):x.off():(x.on(),I()&&C.addClass(T))})),dayjs.locale(H.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(H.attrTimestamp,"]")).each((function(){var t=dayjs.unix(H.getTimestamp($(this))),e=t.format(H.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(H.attrTimestamp),$(this).removeAttr(H.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(){var t=$("article img");t.length&&t.on("load",D),$('article img[loading="lazy"]').each((function(){this.complete&&R.call(this,O.SHIMMER)}));var e=$("article img[".concat(F,'="true"]'));e.length&&e.each(P)}()}();
4
+ !function(){"use strict";const t=$(".mode-toggle");function e(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var s=a.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const a=$("body"),s="sidebar-display";class o{static toggle(){!1===o.isExpanded?a.attr(s,""):a.removeAttr(s),o.isExpanded=!o.isExpanded}}e(o,"isExpanded",!1);const r=$("#sidebar-trigger"),i=$("#search-trigger"),l=$("#search-cancel"),n=$("#main-wrapper>.container>.row"),c=$("#topbar-title"),d=$("search"),u=$("#search-result-wrapper"),m=$("#search-results"),f=$("#search-input"),p=$("#search-hints"),g=$("html,body"),h="loaded",b="unloaded",v="input-focus",C="d-flex";class y{static on(){y.offset=window.scrollY,g.scrollTop(0)}static off(){g.scrollTop(y.offset)}}e(y,"offset",0),e(y,"resultVisible",!1);class w{static on(){r.addClass(b),c.addClass(b),i.addClass(b),d.addClass(C),l.addClass(h)}static off(){l.removeClass(h),d.removeClass(C),r.removeClass(b),c.removeClass(b),i.removeClass(b)}}class T{static on(){y.resultVisible||(y.on(),u.removeClass(b),n.addClass(b),y.resultVisible=!0)}static off(){y.resultVisible&&(m.empty(),p.hasClass(b)&&p.removeClass(b),u.addClass(b),n.removeClass(b),y.off(),f.val(""),y.resultVisible=!1)}}function k(){return l.hasClass(h)}$(".collapse");$(".code-header>button").children().attr("class");const x="data-src",E="data-lqip",j={SHIMMER:"shimmer",BLUR:"blur"};function M(t){$(this).parent().removeClass(t)}function S(){this.complete&&(this.hasAttribute(E)?M.call(this,j.BLUR):M.call(this,j.SHIMMER))}function A(){const t=$(this),e=t.attr(x);t.attr("src",encodeURI(e)),t.removeAttr(x)}class F{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return $("html").attr("lang").substring(0,2)}static getTimestamp(t){return Number(t.attr(F.attrTimestamp))}static getDateFormat(t){return t.attr(F.attrDateFormat)}}!function(){const t=$(window),e=$("#back-to-top");t.on("scroll",(()=>{t.scrollTop()>50?e.fadeIn():e.fadeOut()})),e.on("click",(()=>{t.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((t=>new bootstrap.Tooltip(t))),0!==t.length&&t.off().on("click",(t=>{const e=$(t.target);let a=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),a.trigger("blur")})),$("#sidebar-trigger").on("click",o.toggle),$("#mask").on("click",o.toggle),i.on("click",(function(){w.on(),T.on(),f.trigger("focus")})),l.on("click",(function(){w.off(),T.off()})),f.on("focus",(function(){d.addClass(v)})),f.on("focusout",(function(){d.removeClass(v)})),f.on("input",(()=>{""===f.val()?k()?p.removeClass(b):T.off():(T.on(),k()&&p.addClass(b))})),dayjs.locale(F.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(F.attrTimestamp,"]")).each((function(){const t=dayjs.unix(F.getTimestamp($(this))),e=t.format(F.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(F.attrTimestamp),$(this).removeAttr(F.attrDateFormat);const a=$(this).attr("data-bs-toggle");if(void 0===a||"tooltip"!==a)return;const s=t.format("llll");$(this).attr("data-bs-title",s),new bootstrap.Tooltip($(this))})),function(){const t=$("article img");t.length&&t.on("load",S),$('article img[loading="lazy"]').each((function(){this.complete&&M.call(this,j.SHIMMER)}));const e=$("article img[".concat(E,'="true"]'));e.length&&e.each(A)}()}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !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-wrapper>.container>.row"),v=$("#topbar-title"),g=$("search"),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))}}))}();
4
+ !function(){"use strict";const t=$(".mode-toggle");function e(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var s=a.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const a=$("body"),s="sidebar-display";class o{static toggle(){!1===o.isExpanded?a.attr(s,""):a.removeAttr(s),o.isExpanded=!o.isExpanded}}e(o,"isExpanded",!1);const r=$("#sidebar-trigger"),l=$("#search-trigger"),i=$("#search-cancel"),n=$("#main-wrapper>.container>.row"),c=$("#topbar-title"),d=$("search"),u=$("#search-result-wrapper"),f=$("#search-results"),m=$("#search-input"),p=$("#search-hints"),g=$("html,body"),b="loaded",h="unloaded",v="input-focus",C="d-flex";class y{static on(){y.offset=window.scrollY,g.scrollTop(0)}static off(){g.scrollTop(y.offset)}}e(y,"offset",0),e(y,"resultVisible",!1);class w{static on(){r.addClass(h),c.addClass(h),l.addClass(h),d.addClass(C),i.addClass(b)}static off(){i.removeClass(b),d.removeClass(C),r.removeClass(h),c.removeClass(h),l.removeClass(h)}}class T{static on(){y.resultVisible||(y.on(),u.removeClass(h),n.addClass(h),y.resultVisible=!0)}static off(){y.resultVisible&&(f.empty(),p.hasClass(h)&&p.removeClass(h),u.addClass(h),n.removeClass(h),y.off(),m.val(""),y.resultVisible=!1)}}function k(){return i.hasClass(b)}$(".collapse");$(".code-header>button").children().attr("class");class x{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return $("html").attr("lang").substring(0,2)}static getTimestamp(t){return Number(t.attr(x.attrTimestamp))}static getDateFormat(t){return t.attr(x.attrDateFormat)}}!function(){const t=$(window),e=$("#back-to-top");t.on("scroll",(()=>{t.scrollTop()>50?e.fadeIn():e.fadeOut()})),e.on("click",(()=>{t.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((t=>new bootstrap.Tooltip(t))),0!==t.length&&t.off().on("click",(t=>{const e=$(t.target);let a=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),a.trigger("blur")})),$("#sidebar-trigger").on("click",o.toggle),$("#mask").on("click",o.toggle),l.on("click",(function(){w.on(),T.on(),m.trigger("focus")})),i.on("click",(function(){w.off(),T.off()})),m.on("focus",(function(){d.addClass(v)})),m.on("focusout",(function(){d.removeClass(v)})),m.on("input",(()=>{""===m.val()?k()?p.removeClass(h):T.off():(T.on(),k()&&p.addClass(h))})),dayjs.locale(x.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(x.attrTimestamp,"]")).each((function(){const t=dayjs.unix(x.getTimestamp($(this))),e=t.format(x.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(x.attrTimestamp),$(this).removeAttr(x.attrDateFormat);const a=$(this).attr("data-bs-toggle");if(void 0===a||"tooltip"!==a)return;const s=t.format("llll");$(this).attr("data-bs-title",s),new bootstrap.Tooltip($(this))}))}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !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 c=$("body"),u="sidebar-display",s=function(){function e(){t(this,e)}return n(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?c.attr(u,""):c.removeAttr(u),e.isExpanded=!e.isExpanded}}]),e}();r(s,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),m=$("#main-wrapper>.container>.row"),v=$("#topbar-title"),g=$("search"),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}(),I=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 M(){return p.hasClass(k)}$(".collapse");var x=".code-header>button",O="fas fa-check",P="timeout",R="data-title-succeed",U="data-bs-original-title",V=2e3;function q(t){if($(t)[0].hasAttribute(P)){var e=$(t).attr(P);if(Number(e)>Date.now())return!0}return!1}function N(t){$(t).attr(P,Date.now()+V)}function B(t){$(t).removeAttr(P)}var H=$(x).children().attr("class");var z,D,L="data-src",J="data-lqip",Y={SHIMMER:"shimmer",BLUR:"blur"};function F(t){$(this).parent().removeClass(t)}function G(){this.complete&&(this.hasAttribute(J)?F.call(this,Y.BLUR):F.call(this,Y.SHIMMER))}function K(){var t=$(this),e=t.attr(L);t.attr("src",encodeURI(e)),t.removeAttr(L)}z=$(window),D=$("#back-to-top"),z.on("scroll",(function(){z.scrollTop()>50?D.fadeIn():D.fadeOut()})),D.on("click",(function(){z.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",s.toggle),$("#mask").on("click",s.toggle),d.on("click",(function(){j.on(),I.on(),y.trigger("focus")})),p.on("click",(function(){j.off(),I.off()})),y.on("focus",(function(){g.addClass(A)})),y.on("focusout",(function(){g.removeClass(A)})),y.on("input",(function(){""===y.val()?M()?C.removeClass(S):I.off():(I.on(),M()&&C.addClass(S))})),function(){var t=$("article img");t.length&&t.on("load",G),$('article img[loading="lazy"]').each((function(){this.complete&&F.call(this,Y.SHIMMER)}));var e=$("article img[".concat(J,'="true"]'));e.length&&e.each(K)}(),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),function(){if($(x).length){var t=new ClipboardJS(x,{target:function(t){return t.parentNode.nextElementSibling.querySelector("code .rouge-code")}});o(document.querySelectorAll(x)).map((function(t){return new bootstrap.Tooltip(t,{placement:"left"})})),t.on("success",(function(t){t.clearSelection();var e=t.trigger;q(e)||(!function(t){$(t).children().attr("class",O)}(e),function(t){var e=$(t).attr(R);$(t).attr(U,e).tooltip("show")}(e),N(e),setTimeout((function(){!function(t){$(t).tooltip("hide").removeAttr(U)}(e),function(t){$(t).children().attr("class",H)}(e),B(e)}),V))}))}var e=$("#copy-link");e.on("click",(function(t){var e=$(t.target);q(e)||navigator.clipboard.writeText(window.location.href).then((function(){var t=e.attr(U),n=e.attr(R);e.attr(U,n).tooltip("show"),N(e),setTimeout((function(){e.attr(U,t),B(e)}),V)}))})),e.on("mouseleave",(function(t){$(t.target).tooltip("hide")}))}()}();
4
+ !function(){"use strict";const t=$(".mode-toggle");function e(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var s=o.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const o=$("body"),s="sidebar-display";class n{static toggle(){!1===n.isExpanded?o.attr(s,""):o.removeAttr(s),n.isExpanded=!n.isExpanded}}e(n,"isExpanded",!1);const a=$("#sidebar-trigger"),r=$("#search-trigger"),i=$("#search-cancel"),l=$("#main-wrapper>.container>.row"),c=$("#topbar-title"),u=$("search"),d=$("#search-result-wrapper"),f=$("#search-results"),p=$("#search-input"),m=$("#search-hints"),g=$("html,body"),h="loaded",b="unloaded",v="input-focus",C="d-flex";class w{static on(){w.offset=window.scrollY,g.scrollTop(0)}static off(){g.scrollTop(w.offset)}}e(w,"offset",0),e(w,"resultVisible",!1);class y{static on(){a.addClass(b),c.addClass(b),r.addClass(b),u.addClass(C),i.addClass(h)}static off(){i.removeClass(h),u.removeClass(C),a.removeClass(b),c.removeClass(b),r.removeClass(b)}}class k{static on(){w.resultVisible||(w.on(),d.removeClass(b),l.addClass(b),w.resultVisible=!0)}static off(){w.resultVisible&&(f.empty(),m.hasClass(b)&&m.removeClass(b),d.addClass(b),l.removeClass(b),w.off(),p.val(""),w.resultVisible=!1)}}function S(){return i.hasClass(h)}$(".collapse");const T=".code-header>button",E="fas fa-check",A="timeout",x="data-title-succeed",M="data-bs-original-title",R=2e3;function I(t){if($(t)[0].hasAttribute(A)){let e=$(t).attr(A);if(Number(e)>Date.now())return!0}return!1}function V(t){$(t).attr(A,Date.now()+R)}function q(t){$(t).removeAttr(A)}const N=$(T).children().attr("class");const P="data-src",U="data-lqip",j={SHIMMER:"shimmer",BLUR:"blur"};function B(t){$(this).parent().removeClass(t)}function H(){this.complete&&(this.hasAttribute(U)?B.call(this,j.BLUR):B.call(this,j.SHIMMER))}function O(){const t=$(this),e=t.attr(P);t.attr("src",encodeURI(e)),t.removeAttr(P)}!function(){const t=$(window),e=$("#back-to-top");t.on("scroll",(()=>{t.scrollTop()>50?e.fadeIn():e.fadeOut()})),e.on("click",(()=>{t.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((t=>new bootstrap.Tooltip(t))),0!==t.length&&t.off().on("click",(t=>{const e=$(t.target);let o=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),o.trigger("blur")})),$("#sidebar-trigger").on("click",n.toggle),$("#mask").on("click",n.toggle),r.on("click",(function(){y.on(),k.on(),p.trigger("focus")})),i.on("click",(function(){y.off(),k.off()})),p.on("focus",(function(){u.addClass(v)})),p.on("focusout",(function(){u.removeClass(v)})),p.on("input",(()=>{""===p.val()?S()?m.removeClass(b):k.off():(k.on(),S()&&m.addClass(b))})),function(){const t=$("article img");t.length&&t.on("load",H),$('article img[loading="lazy"]').each((function(){this.complete&&B.call(this,j.SHIMMER)}));const e=$("article img[".concat(U,'="true"]'));e.length&&e.each(O)}(),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),function(){if($(T).length){const t=new ClipboardJS(T,{target:t=>t.parentNode.nextElementSibling.querySelector("code .rouge-code")});[...document.querySelectorAll(T)].map((t=>new bootstrap.Tooltip(t,{placement:"left"}))),t.on("success",(t=>{t.clearSelection();const e=t.trigger;I(e)||(!function(t){$(t).children().attr("class",E)}(e),function(t){const e=$(t).attr(x);$(t).attr(M,e).tooltip("show")}(e),V(e),setTimeout((()=>{!function(t){$(t).tooltip("hide").removeAttr(M)}(e),function(t){$(t).children().attr("class",N)}(e),q(e)}),R))}))}const t=$("#copy-link");t.on("click",(t=>{let e=$(t.target);I(e)||navigator.clipboard.writeText(window.location.href).then((()=>{const t=e.attr(M),o=e.attr(x);e.attr(M,o).tooltip("show"),V(e),setTimeout((()=>{e.attr(M,t),q(e)}),R)}))})),t.on("mouseleave",(function(t){$(t.target).tooltip("hide")}))}()}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !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 c=$("body"),s="sidebar-display",u=function(){function e(){t(this,e)}return r(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?c.attr(s,""):c.removeAttr(s),e.isExpanded=!e.isExpanded}}]),e}();n(u,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),m=$("#search-cancel"),p=$("#main-wrapper>.container>.row"),g=$("#topbar-title"),h=$("search"),v=$("#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 E=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){f.addClass(S),g.addClass(S),d.addClass(S),h.addClass(A),m.addClass(k)}},{key:"off",value:function(){m.removeClass(k),h.removeClass(A),f.removeClass(S),g.removeClass(S),d.removeClass(S)}}]),e}(),x=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){j.resultVisible||(j.on(),v.removeClass(S),p.addClass(S),j.resultVisible=!0)}},{key:"off",value:function(){j.resultVisible&&(b.empty(),w.hasClass(S)&&w.removeClass(S),v.addClass(S),p.removeClass(S),j.off(),y.val(""),j.resultVisible=!1)}}]),e}();function I(){return m.hasClass(k)}$(".collapse");var M=".code-header>button",D="fas fa-check",O="timeout",F="data-title-succeed",P="data-bs-original-title",R=2e3;function q(t){if($(t)[0].hasAttribute(O)){var e=$(t).attr(O);if(Number(e)>Date.now())return!0}return!1}function N(t){$(t).attr(O,Date.now()+R)}function U(t){$(t).removeAttr(O)}var V=$(M).children().attr("class");var z="data-src",B="data-lqip",H={SHIMMER:"shimmer",BLUR:"blur"};function L(t){$(this).parent().removeClass(t)}function _(){this.complete&&(this.hasAttribute(B)?L.call(this,H.BLUR):L.call(this,H.SHIMMER))}function J(){var t=$(this),e=t.attr(z);t.attr("src",encodeURI(e)),t.removeAttr(z)}var Y,G,K=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}();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(){E.on(),x.on(),y.trigger("focus")})),m.on("click",(function(){E.off(),x.off()})),y.on("focus",(function(){h.addClass(T)})),y.on("focusout",(function(){h.removeClass(T)})),y.on("input",(function(){""===y.val()?I()?w.removeClass(S):x.off():(x.on(),I()&&w.addClass(S))})),function(){var t=$("article img");t.length&&t.on("load",_),$('article img[loading="lazy"]').each((function(){this.complete&&L.call(this,H.SHIMMER)}));var e=$("article img[".concat(B,'="true"]'));e.length&&e.each(J)}(),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),dayjs.locale(K.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(K.attrTimestamp,"]")).each((function(){var t=dayjs.unix(K.getTimestamp($(this))),e=t.format(K.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(K.attrTimestamp),$(this).removeAttr(K.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($(M).length){var t=new ClipboardJS(M,{target:function(t){return t.parentNode.nextElementSibling.querySelector("code .rouge-code")}});o(document.querySelectorAll(M)).map((function(t){return new bootstrap.Tooltip(t,{placement:"left"})})),t.on("success",(function(t){t.clearSelection();var e=t.trigger;q(e)||(!function(t){$(t).children().attr("class",D)}(e),function(t){var e=$(t).attr(F);$(t).attr(P,e).tooltip("show")}(e),N(e),setTimeout((function(){!function(t){$(t).tooltip("hide").removeAttr(P)}(e),function(t){$(t).children().attr("class",V)}(e),U(e)}),R))}))}var e=$("#copy-link");e.on("click",(function(t){var e=$(t.target);q(e)||navigator.clipboard.writeText(window.location.href).then((function(){var t=e.attr(P),r=e.attr(F);e.attr(P,r).tooltip("show"),N(e),setTimeout((function(){e.attr(P,t),U(e)}),R)}))})),e.on("mouseleave",(function(t){$(t.target).tooltip("hide")}))}(),document.querySelector("main h2")&&tocbot.init({tocSelector:"#toc",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1}),Y=$(window),G=$("#back-to-top"),Y.on("scroll",(function(){Y.scrollTop()>50?G.fadeIn():G.fadeOut()})),G.on("click",(function(){Y.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)}))}();
4
+ !function(){"use strict";const t=$(".mode-toggle");function e(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var a=o.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const o=$("body"),a="sidebar-display";class r{static toggle(){!1===r.isExpanded?o.attr(a,""):o.removeAttr(a),r.isExpanded=!r.isExpanded}}e(r,"isExpanded",!1);const s=$("#sidebar-trigger"),n=$("#search-trigger"),i=$("#search-cancel"),l=$("#main-wrapper>.container>.row"),c=$("#topbar-title"),u=$("search"),d=$("#search-result-wrapper"),m=$("#search-results"),f=$("#search-input"),p=$("#search-hints"),g=$("html,body"),h="loaded",b="unloaded",v="input-focus",C="d-flex";class w{static on(){w.offset=window.scrollY,g.scrollTop(0)}static off(){g.scrollTop(w.offset)}}e(w,"offset",0),e(w,"resultVisible",!1);class y{static on(){s.addClass(b),c.addClass(b),n.addClass(b),u.addClass(C),i.addClass(h)}static off(){i.removeClass(h),u.removeClass(C),s.removeClass(b),c.removeClass(b),n.removeClass(b)}}class S{static on(){w.resultVisible||(w.on(),d.removeClass(b),l.addClass(b),w.resultVisible=!0)}static off(){w.resultVisible&&(m.empty(),p.hasClass(b)&&p.removeClass(b),d.addClass(b),l.removeClass(b),w.off(),f.val(""),w.resultVisible=!1)}}function T(){return i.hasClass(h)}$(".collapse");const k=".code-header>button",x="fas fa-check",A="timeout",E="data-title-succeed",j="data-bs-original-title",D=2e3;function M(t){if($(t)[0].hasAttribute(A)){let e=$(t).attr(A);if(Number(e)>Date.now())return!0}return!1}function F(t){$(t).attr(A,Date.now()+D)}function R(t){$(t).removeAttr(A)}const q=$(k).children().attr("class");const I="data-src",N="data-lqip",V={SHIMMER:"shimmer",BLUR:"blur"};function P(t){$(this).parent().removeClass(t)}function U(){this.complete&&(this.hasAttribute(N)?P.call(this,V.BLUR):P.call(this,V.SHIMMER))}function z(){const t=$(this),e=t.attr(I);t.attr("src",encodeURI(e)),t.removeAttr(I)}class B{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return $("html").attr("lang").substring(0,2)}static getTimestamp(t){return Number(t.attr(B.attrTimestamp))}static getDateFormat(t){return t.attr(B.attrDateFormat)}}0!==t.length&&t.off().on("click",(t=>{const e=$(t.target);let o=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),o.trigger("blur")})),$("#sidebar-trigger").on("click",r.toggle),$("#mask").on("click",r.toggle),n.on("click",(function(){y.on(),S.on(),f.trigger("focus")})),i.on("click",(function(){y.off(),S.off()})),f.on("focus",(function(){u.addClass(v)})),f.on("focusout",(function(){u.removeClass(v)})),f.on("input",(()=>{""===f.val()?T()?p.removeClass(b):S.off():(S.on(),T()&&p.addClass(b))})),function(){const t=$("article img");t.length&&t.on("load",U),$('article img[loading="lazy"]').each((function(){this.complete&&P.call(this,V.SHIMMER)}));const e=$("article img[".concat(N,'="true"]'));e.length&&e.each(z)}(),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),dayjs.locale(B.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(B.attrTimestamp,"]")).each((function(){const t=dayjs.unix(B.getTimestamp($(this))),e=t.format(B.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(B.attrTimestamp),$(this).removeAttr(B.attrDateFormat);const o=$(this).attr("data-bs-toggle");if(void 0===o||"tooltip"!==o)return;const a=t.format("llll");$(this).attr("data-bs-title",a),new bootstrap.Tooltip($(this))})),function(){if($(k).length){const t=new ClipboardJS(k,{target:t=>t.parentNode.nextElementSibling.querySelector("code .rouge-code")});[...document.querySelectorAll(k)].map((t=>new bootstrap.Tooltip(t,{placement:"left"}))),t.on("success",(t=>{t.clearSelection();const e=t.trigger;M(e)||(!function(t){$(t).children().attr("class",x)}(e),function(t){const e=$(t).attr(E);$(t).attr(j,e).tooltip("show")}(e),F(e),setTimeout((()=>{!function(t){$(t).tooltip("hide").removeAttr(j)}(e),function(t){$(t).children().attr("class",q)}(e),R(e)}),D))}))}const t=$("#copy-link");t.on("click",(t=>{let e=$(t.target);M(e)||navigator.clipboard.writeText(window.location.href).then((()=>{const t=e.attr(j),o=e.attr(E);e.attr(j,o).tooltip("show"),F(e),setTimeout((()=>{e.attr(j,t),R(e)}),D)}))})),t.on("mouseleave",(function(t){$(t.target).tooltip("hide")}))}(),document.querySelector("main h2")&&tocbot.init({tocSelector:"#toc",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1}),function(){const t=$(window),e=$("#back-to-top");t.on("scroll",(()=>{t.scrollTop()>50?e.fadeIn():e.fadeOut()})),e.on("click",(()=>{t.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((t=>new bootstrap.Tooltip(t)))}();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-chirpy
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.3
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cotes Chung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-10 00:00:00.000000000 Z
11
+ date: 2023-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.7'
61
+ version: '2.8'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.7'
68
+ version: '2.8'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jekyll-archives
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -245,7 +245,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
245
  requirements:
246
246
  - - ">="
247
247
  - !ruby/object:Gem::Version
248
- version: '2.6'
248
+ version: '3.0'
249
249
  required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  requirements:
251
251
  - - ">="
@@ -255,5 +255,5 @@ requirements: []
255
255
  rubygems_version: 3.4.20
256
256
  signing_key:
257
257
  specification_version: 4
258
- summary: A minimal, responsive and feature-rich Jekyll theme for technical writing.
258
+ summary: A minimal, responsive, and feature-rich Jekyll theme for technical writing.
259
259
  test_files: []