jekyll-theme-chirpy 6.3.0 → 6.3.1

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: 37820e3e111cbdf11fa68f85cdda700105a567fe6c991de6dfaa4fda3944b2b1
4
- data.tar.gz: a2918e424cef8dcf29b01e6b7aabc12aa33732d9727e063cbea63789531c393c
3
+ metadata.gz: d6b370807897d8c9fe01bfd141f2a7185813028b35f7a9b4ab724f3a1b62a391
4
+ data.tar.gz: 620eba1ab58b0632444d5ec24654473bc6ec72af84cfd25e82e0f5a8de874c9c
5
5
  SHA512:
6
- metadata.gz: 154ecf741a74587402e58bf869011998a80003606a5c8e7dba337ab10160cecdc08ecc96387eb5d32aac58fbaabfd9bca60517e906b20b7b84494837b6f1b2e3
7
- data.tar.gz: 59af752aea2a3c7b53758ac4ca840234573430e1f49f4bda59507ff699346b06c58c1b56e558f0b0dd3b18be660fcedd9d51bea6a485039152101e1379e3157d
6
+ metadata.gz: a95fa7d49bc42ad70521755383f12e58e6dab7bdfd3a07961f6aea569b517c612661992b81f86cbe00a1f4d46835939e730b0f7c3ddd51ec405ba025b391518e
7
+ data.tar.gz: c26eab647a2138111f38906dd2735095f5882404c23631e2f37a7f31bf05c6305cf3aa48225c6089d0180375e5fadae7670aeabea302bd5c5985ede526582b73
@@ -309,6 +309,7 @@ sup {
309
309
  .preview-img {
310
310
  aspect-ratio: 40 / 21;
311
311
  width: 100%;
312
+ height: 100%;
312
313
  overflow: hidden;
313
314
 
314
315
  @extend %rounded;
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
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.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
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.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
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.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
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.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
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.3.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
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.3.0
4
+ version: 6.3.1
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-11-10 00:00:00.000000000 Z
11
+ date: 2023-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll