jekyll-theme-chirpy 6.2.3 → 6.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/_data/locales/en.yml +1 -1
- data/_data/origin/cors.yml +3 -3
- data/_includes/embed/twitch.html +1 -0
- data/_includes/post-sharing.html +27 -12
- data/_sass/addon/commons.scss +4 -0
- data/_sass/colors/typography-light.scss +2 -1
- data/_sass/layout/post.scss +29 -40
- data/assets/js/dist/categories.min.js +2 -2
- data/assets/js/dist/commons.min.js +2 -2
- data/assets/js/dist/home.min.js +2 -2
- data/assets/js/dist/misc.min.js +2 -2
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6b370807897d8c9fe01bfd141f2a7185813028b35f7a9b4ab724f3a1b62a391
|
4
|
+
data.tar.gz: 620eba1ab58b0632444d5ec24654473bc6ec72af84cfd25e82e0f5a8de874c9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a95fa7d49bc42ad70521755383f12e58e6dab7bdfd3a07961f6aea569b517c612661992b81f86cbe00a1f4d46835939e730b0f7c3ddd51ec405ba025b391518e
|
7
|
+
data.tar.gz: c26eab647a2138111f38906dd2735095f5882404c23631e2f37a7f31bf05c6305cf3aa48225c6089d0180375e5fadae7670aeabea302bd5c5985ede526582b73
|
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
|
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
|
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.
|
data/_data/origin/cors.yml
CHANGED
@@ -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.
|
27
|
-
js: https://cdn.jsdelivr.net/npm/tocbot@4.21.
|
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.
|
36
|
+
js: https://cdn.jsdelivr.net/npm/mermaid@10.6.0/dist/mermaid.min.js
|
37
37
|
|
38
38
|
dayjs:
|
39
39
|
js:
|
data/_includes/embed/twitch.html
CHANGED
data/_includes/post-sharing.html
CHANGED
@@ -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
|
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
|
-
|
13
|
-
|
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>
|
data/_sass/addon/commons.scss
CHANGED
@@ -63,7 +63,8 @@
|
|
63
63
|
|
64
64
|
/* Posts */
|
65
65
|
--toc-highlight: #0550ae;
|
66
|
-
--btn-share-
|
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,
|
data/_sass/layout/post.scss
CHANGED
@@ -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
|
-
|
72
|
+
display: flex;
|
73
|
+
|
74
|
+
i {
|
75
|
+
color: var(--btn-share-color);
|
76
|
+
|
77
|
+
@extend %icon-size;
|
78
|
+
}
|
77
79
|
|
78
80
|
> * {
|
79
|
-
|
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
|
+
* Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
3
|
*/
|
4
|
-
!function(){"use strict";
|
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
|
+
* Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
3
|
*/
|
4
|
-
!function(){"use strict";
|
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))}))}();
|
data/assets/js/dist/home.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
|
-
* Chirpy v6.
|
2
|
+
* Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
3
|
*/
|
4
|
-
!function(){"use strict";
|
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)}()}();
|
data/assets/js/dist/misc.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
|
-
* Chirpy v6.
|
2
|
+
* Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
3
|
*/
|
4
|
-
!function(){"use strict";
|
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))}))}();
|
data/assets/js/dist/page.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
|
-
* Chirpy v6.
|
2
|
+
* Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
3
|
*/
|
4
|
-
!function(){"use strict";
|
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")}))}()}();
|
data/assets/js/dist/post.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
|
-
* Chirpy v6.
|
2
|
+
* Chirpy v6.3.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
3
|
*/
|
4
|
-
!function(){"use strict";
|
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.
|
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
|
+
date: 2023-11-12 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.
|
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.
|
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: '
|
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: []
|