jekyll-theme-chirpy 4.1.1 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +3 -2
- data/_data/locales/en.yml +3 -4
- data/_data/locales/id-ID.yml +86 -0
- data/_data/locales/zh-CN.yml +3 -4
- data/_includes/disqus.html +42 -13
- data/_includes/footer.html +3 -3
- data/_includes/head.html +5 -5
- data/_includes/js-selector.html +1 -1
- data/_includes/lang.html +8 -0
- data/_includes/panel.html +5 -3
- data/_includes/post-nav.html +4 -4
- data/_includes/post-sharing.html +3 -3
- data/_includes/read-time.html +5 -4
- data/_includes/refactor-content.html +29 -13
- data/_includes/related-posts.html +1 -1
- data/_includes/search-loader.html +2 -2
- data/_includes/search-results.html +1 -1
- data/_includes/sidebar.html +2 -2
- data/_includes/timeago.html +3 -3
- data/_includes/topbar.html +9 -9
- data/_layouts/archives.html +3 -1
- data/_layouts/categories.html +5 -3
- data/_layouts/category.html +3 -1
- data/_layouts/default.html +3 -1
- data/_layouts/home.html +3 -1
- data/_layouts/page.html +1 -1
- data/_layouts/post.html +9 -7
- data/_layouts/tag.html +3 -1
- data/_sass/addon/commons.scss +20 -4
- data/_sass/addon/syntax.scss +74 -22
- data/_sass/colors/dark-syntax.scss +17 -14
- data/_sass/colors/dark-typography.scss +15 -13
- data/_sass/colors/light-syntax.scss +4 -1
- data/_sass/colors/light-typography.scss +12 -11
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/post.scss +0 -10
- data/assets/404.html +6 -4
- data/assets/feed.xml +1 -1
- data/assets/js/data/search.json +1 -1
- data/assets/js/dist/categories.min.js +1 -1
- data/assets/js/dist/commons.min.js +1 -1
- data/assets/js/dist/home.min.js +1 -1
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/pvreport.min.js +1 -1
- metadata +4 -3
- data/assets/js/lib/jquery.disqusloader.min.js +0 -8
@@ -3,20 +3,6 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
@mixin dark-syntax {
|
6
|
-
/* ----- My styles ------ */
|
7
|
-
--highlight-bg-color: #252525;
|
8
|
-
--highlighter-rouge-color: #de6b18;
|
9
|
-
--highlight-lineno-color: #6c6c6d;
|
10
|
-
--highlight-lineno-border-color: #303435;
|
11
|
-
--inline-code-bg: #272822;
|
12
|
-
|
13
|
-
.highlight {
|
14
|
-
.gp { color: #818c96; }
|
15
|
-
}
|
16
|
-
|
17
|
-
pre { color: #bfbfbf; } /* override Bootstrap */
|
18
|
-
kbd { background-color: black; }
|
19
|
-
|
20
6
|
/* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
|
21
7
|
.highlight pre { background-color: var(--highlight-bg-color); }
|
22
8
|
.highlight .hll { background-color: var(--highlight-bg-color); }
|
@@ -81,4 +67,21 @@
|
|
81
67
|
.highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
|
82
68
|
.highlight .gd { color: #f92672; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
|
83
69
|
.highlight .gi { color: #a6e22e; background-color: #0b5858; } /* Generic.Inserted & Diff Inserted */
|
70
|
+
|
71
|
+
/* ----- custom styles ------ */
|
72
|
+
|
73
|
+
--highlight-bg-color: #252525;
|
74
|
+
--highlighter-rouge-color: #de6b18;
|
75
|
+
--highlight-lineno-color: #6c6c6d;
|
76
|
+
--inline-code-bg: #272822;
|
77
|
+
--code-header-bg: #353535;
|
78
|
+
--lang-badge-color: #6c6c6d;
|
79
|
+
--clipboard-checked-color: #2bcc2b;
|
80
|
+
|
81
|
+
.highlight {
|
82
|
+
.gp { color: #818c96; }
|
83
|
+
}
|
84
|
+
|
85
|
+
pre { color: #bfbfbf; } /* override Bootstrap */
|
86
|
+
kbd { background-color: black; }
|
84
87
|
}
|
@@ -3,26 +3,23 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
@mixin dark-scheme {
|
6
|
-
/*
|
7
|
-
--main-wrapper-bg: rgb(27, 27, 30);
|
6
|
+
/* Framework color */
|
8
7
|
--body-bg: var(--main-wrapper-bg);
|
9
|
-
--topbar-wrapper-bg: rgb(39, 40, 43);
|
10
|
-
--search-wrapper-bg: rgb(34, 34, 39);
|
11
|
-
--search-icon-color: rgb(100, 102, 105);
|
12
|
-
--input-focus-border-color: rgb(112, 114, 115);
|
13
8
|
--mask-bg: rgb(68, 69, 70);
|
14
|
-
--
|
9
|
+
--main-wrapper-bg: rgb(27, 27, 30);
|
10
|
+
--main-border-color: rgb(44, 45, 45);
|
11
|
+
--scrollbar-track-bg: rgba(0, 0, 0, 0.3);
|
12
|
+
--scrollbar-thumb-bg: rgb(173 171 171 / 50%);
|
15
13
|
|
16
|
-
/*
|
14
|
+
/* Common color */
|
17
15
|
--text-color: rgb(175, 176, 177);
|
18
|
-
--heading-color: #cccccc;
|
19
16
|
--text-muted-color: rgb(107, 116, 124);
|
17
|
+
--heading-color: #cccccc;
|
18
|
+
--blockquote-border-color: rgb(66, 66, 66);
|
19
|
+
--blockquote-text-color: rgb(117, 117, 117);
|
20
20
|
--link-color: rgb(138, 180, 248);
|
21
21
|
--link-underline-color: rgb(82, 108, 150);
|
22
|
-
--main-border-color: rgb(44, 45, 45);
|
23
22
|
--button-bg: rgb(39, 40, 43);
|
24
|
-
--blockquote-border-color: rgb(66, 66, 66);
|
25
|
-
--blockquote-text-color: rgb(117, 117, 117);
|
26
23
|
--btn-border-color: rgb(63, 65, 68);
|
27
24
|
--btn-backtotop-color: var(--text-color);
|
28
25
|
--btn-backtotop-border-color: var(--btn-border-color);
|
@@ -36,8 +33,12 @@
|
|
36
33
|
--nav-cursor-color: rgb(183, 182, 182);
|
37
34
|
--sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
|
38
35
|
|
39
|
-
/*
|
36
|
+
/* Topbar */
|
40
37
|
--topbar-text-color: var(--text-color);
|
38
|
+
--topbar-wrapper-bg: rgb(39, 40, 43);
|
39
|
+
--search-wrapper-bg: rgb(34, 34, 39);
|
40
|
+
--search-icon-color: rgb(100, 102, 105);
|
41
|
+
--input-focus-border-color: rgb(112, 114, 115);
|
41
42
|
|
42
43
|
/* Home page */
|
43
44
|
--post-list-text-color: rgb(175, 176, 177);
|
@@ -82,6 +83,7 @@
|
|
82
83
|
--timeline-year-dot-color: var(--timeline-color);
|
83
84
|
|
84
85
|
/* Footer */
|
86
|
+
--footer-bg-color: var(--main-wrapper-bg);
|
85
87
|
--footer-link: rgb(171, 171, 171);
|
86
88
|
|
87
89
|
.post-content img {
|
@@ -70,6 +70,9 @@
|
|
70
70
|
--highlight-bg-color: #f7f7f7;
|
71
71
|
--highlighter-rouge-color: #2f2f2f;
|
72
72
|
--highlight-lineno-color: #c2c6cc;
|
73
|
-
--highlight-lineno-border-color: #e9ecef;
|
74
73
|
--inline-code-bg: #f3f3f3;
|
74
|
+
--code-header-bg: #eaeaea;
|
75
|
+
--lang-badge-color: #a4a7ab;
|
76
|
+
--clipboard-checked-color: #43c743;
|
77
|
+
|
75
78
|
} // light-syntax
|
@@ -3,22 +3,24 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
@mixin light-scheme {
|
6
|
-
/*
|
6
|
+
/* Framework color */
|
7
7
|
--body-bg: #fafafa;
|
8
8
|
--mask-bg: #c1c3c5;
|
9
9
|
--main-wrapper-bg: white;
|
10
10
|
--main-border-color: #f3f3f3;
|
11
|
-
--
|
11
|
+
--scrollbar-track-bg: rgba(0, 0, 0, 0.3);
|
12
|
+
--scrollbar-thumb-bg: rgba(0, 0, 0, 0.3);
|
13
|
+
|
14
|
+
/* Common color */
|
12
15
|
--text-color: #34343c;
|
16
|
+
--text-muted-color: gray;
|
13
17
|
--heading-color: black;
|
14
18
|
--blockquote-border-color: #eee;
|
15
19
|
--blockquote-text-color: #9a9a9a;
|
16
20
|
--link-color: #2a408e;
|
17
21
|
--link-underline-color: #dee2e6;
|
18
|
-
--text-muted-color: gray;
|
19
|
-
--tb-odd-bg: #fbfcfd;
|
20
|
-
--tb-border-color: #eaeaea;
|
21
22
|
--button-bg: #fff;
|
23
|
+
--btn-border-color: #e9ecef;
|
22
24
|
--btn-backtotop-color: #686868;
|
23
25
|
--btn-backtotop-border-color: #f1f1f1;
|
24
26
|
--btn-box-shadow: #eaeaea;
|
@@ -26,15 +28,12 @@
|
|
26
28
|
--checkbox-checked-color: #07a8f7;
|
27
29
|
|
28
30
|
/* Sidebar */
|
29
|
-
--sidebar-bg: radial-gradient(
|
30
|
-
circle,
|
31
|
-
rgba(42, 30, 107, 1) 0%,
|
32
|
-
rgba(35, 37, 46, 1) 100%);
|
31
|
+
--sidebar-bg: radial-gradient(circle, rgba(42, 30, 107, 1) 0%, rgba(35, 37, 46, 1) 100%);
|
33
32
|
--nav-cursor-color: #fcfcfc;
|
34
33
|
|
35
34
|
/* Topbar */
|
36
|
-
--topbar-wrapper-bg: white;
|
37
35
|
--topbar-text-color: rgb(78, 78, 78);
|
36
|
+
--topbar-wrapper-bg: white;
|
38
37
|
--search-wrapper-bg: #f5f5f5;
|
39
38
|
--search-tag-bg: #f8f9fa;
|
40
39
|
--search-icon-color: #c2c6cc;
|
@@ -58,10 +57,13 @@
|
|
58
57
|
--card-box-shadow: rgba(234, 234, 234, 0.7686274509803922);
|
59
58
|
--label-color: #616161;
|
60
59
|
--relate-post-date: rgba(30, 55, 70, 0.4);
|
60
|
+
--footnote-target-bg: lightcyan;
|
61
61
|
--tag-bg: rgba(0, 0, 0, 0.075);
|
62
62
|
--tag-border: #dee2e6;
|
63
63
|
--tag-shadow: var(--btn-border-color);
|
64
64
|
--tag-hover: rgb(222, 226, 230);
|
65
|
+
--tb-odd-bg: #fbfcfd;
|
66
|
+
--tb-border-color: #eaeaea;
|
65
67
|
--categories-hover-bg: var(--btn-border-color);
|
66
68
|
--dash-color: silver;
|
67
69
|
|
@@ -72,6 +74,5 @@
|
|
72
74
|
|
73
75
|
/* Footer */
|
74
76
|
--footer-bg-color: #ffffff;
|
75
|
-
--footnote-target-bg: lightcyan;
|
76
77
|
--footer-link: #424242;
|
77
78
|
} // light-scheme
|
data/_sass/layout/post.scss
CHANGED
@@ -299,16 +299,6 @@
|
|
299
299
|
margin-top: 1rem;
|
300
300
|
}
|
301
301
|
}
|
302
|
-
|
303
|
-
.post-content > div[class^='language-'] {
|
304
|
-
@include ml-mr(-1.25rem);
|
305
|
-
|
306
|
-
border-radius: 0;
|
307
|
-
&::before { // the lang badge
|
308
|
-
right: 1rem;
|
309
|
-
}
|
310
|
-
}
|
311
|
-
|
312
302
|
}
|
313
303
|
|
314
304
|
@media all and (max-width: 768px) {
|
data/assets/404.html
CHANGED
@@ -11,19 +11,21 @@ redirect_from:
|
|
11
11
|
dynamic_title: true
|
12
12
|
---
|
13
13
|
|
14
|
+
{% include lang.html %}
|
15
|
+
|
14
16
|
<div class="lead">
|
15
17
|
|
16
18
|
{%- capture _head_back -%}
|
17
|
-
<a href="{{ '/' | relative_url }}">{{ site.data.locales[
|
19
|
+
<a href="{{ '/' | relative_url }}">{{ site.data.locales[lang].not_found.head_back }}</a>
|
18
20
|
{%- endcapture -%}
|
19
21
|
|
20
22
|
{%- capture _archives_page -%}
|
21
|
-
<a href="{{ 'archives' | relative_url }}">{{ site.data.locales[
|
23
|
+
<a href="{{ 'archives' | relative_url }}">{{ site.data.locales[lang].not_found.archives_page }}</a>
|
22
24
|
{%- endcapture -%}
|
23
25
|
|
24
|
-
<p>{{site.data.locales[
|
26
|
+
<p>{{site.data.locales[lang].not_found.statment }}</p>
|
25
27
|
|
26
|
-
<p>{{ site.data.locales[
|
28
|
+
<p>{{ site.data.locales[lang].not_found.hint_template
|
27
29
|
| replace: ':HEAD_BAK', _head_back
|
28
30
|
| replace: ':ARCHIVES_PAGE', _archives_page }}
|
29
31
|
</p>
|
data/assets/feed.xml
CHANGED
@@ -15,7 +15,7 @@ permalink: /feed.xml
|
|
15
15
|
<uri>{{ "/" | absolute_url }}</uri>
|
16
16
|
</author>
|
17
17
|
<link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/>
|
18
|
-
<link rel="alternate" type="text/html" hreflang="{{ site.lang
|
18
|
+
<link rel="alternate" type="text/html" hreflang="{{ site.lang }}"
|
19
19
|
href="{{ '/' | absolute_url }}"/>
|
20
20
|
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
|
21
21
|
<rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights>
|
data/assets/js/data/search.json
CHANGED
@@ -11,7 +11,7 @@ layout: compress
|
|
11
11
|
"tags": "{{ post.tags | join: ', ' }}",
|
12
12
|
"date": "{{ post.date }}",
|
13
13
|
{% include no-linenos.html content=post.content %}
|
14
|
-
"snippet": "{{ content | strip_html | strip_newlines | remove_chars | escape |
|
14
|
+
"snippet": "{{ content | strip_html | strip_newlines | remove_chars | escape | replace: '\', '\\\\' }}"
|
15
15
|
}{% unless forloop.last %},{% endunless %}
|
16
16
|
{% endfor %}
|
17
17
|
]
|
data/assets/js/dist/home.min.js
CHANGED
data/assets/js/dist/page.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Chirpy v4.
|
2
|
+
* Chirpy v4.2.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
3
|
* © 2019 Cotes Chung
|
4
4
|
* MIT Licensed
|
5
5
|
*/
|
6
|
-
|
6
|
+
$(function(){$(window).scroll(()=>{$(this).scrollTop()>50&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()}),$("#back-to-top").click(()=>($("body,html").animate({scrollTop:0},800),!1))}),$(function(){const e=$("#sidebar-trigger"),t=$("#search-trigger"),o=$("#search-cancel"),a=$("#search-cleaner"),s=$("#main"),l=$("#topbar-title"),n=$("#search-wrapper"),i=$("#search-result-wrapper"),r=$("#search-results"),c=$("#search-input"),d=$("#search-hints"),u=function(){let e=0;return{block(){e=window.scrollY,$("html,body").scrollTop(0)},release(){$("html,body").scrollTop(e)},getOffset:()=>e}}(),p={on(){e.addClass("unloaded"),l.addClass("unloaded"),t.addClass("unloaded"),n.addClass("d-flex"),o.addClass("loaded")},off(){o.removeClass("loaded"),n.removeClass("d-flex"),e.removeClass("unloaded"),l.removeClass("unloaded"),t.removeClass("unloaded")}},f=function(){let e=!1;return{on(){e||(u.block(),i.removeClass("unloaded"),s.addClass("unloaded"),e=!0)},off(){e&&(r.empty(),d.hasClass("unloaded")&&d.removeClass("unloaded"),i.addClass("unloaded"),a.removeClass("visible"),s.removeClass("unloaded"),u.release(),c.val(""),e=!1)},isVisible:()=>e}}();function h(){return o.hasClass("loaded")}t.click(function(){p.on(),f.on(),c.focus()}),o.click(function(){p.off(),f.off()}),c.focus(function(){n.addClass("input-focus")}),c.focusout(function(){n.removeClass("input-focus")}),c.on("keyup",function(e){8===e.keyCode&&""===c.val()?h()?d.removeClass("unloaded"):f.off():""!==c.val()&&(f.on(),a.hasClass("visible")||a.addClass("visible"),h()&&d.addClass("unloaded"))}),a.on("click",function(){c.val(""),h()?(d.removeClass("unloaded"),r.empty()):f.off(),c.focus(),a.removeClass("visible")})}),$(function(){const e=function(){let e=!1;const t=$("body");return{toggle(){!1===e?t.attr("sidebar-display",""):t.removeAttr("sidebar-display"),e=!e}}}();$("#sidebar-trigger").click(e.toggle),$("#mask").click(e.toggle)}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){const e=$("#topbar-wrapper"),t=$("#toc-wrapper"),o=$(".access"),a=$("#search-input");let s,l=0;const n=5,i=e.outerHeight();$(window).scroll(function(e){$("#topbar-title").is(":hidden")&&(s=!0)}),setInterval(function(){s&&(!function(){var s=$(this).scrollTop();Math.abs(l-s)<=n||(s>l&&s>i?(e.removeClass("topbar-down").addClass("topbar-up"),t.length>0&&t.removeClass("topbar-down"),o.length>0&&o.removeClass("topbar-down"),a.is(":focus")&&a.blur()):s+$(window).height()<$(document).height()&&(e.removeClass("topbar-up").addClass("topbar-down"),t.length>0&&t.addClass("topbar-down"),o.length>0&&o.addClass("topbar-down")),l=s)}(),s=!1)},250)}),$(function(){const e=$("#topbar-title"),t=$("div.post>h1"),o=e.text().trim();let a=t.length>0?t.text().trim():$("h1").text().trim();($("#page-category").length||$("#page-tag").length)&&/\s/.test(a)&&(a=a.replace(/[0-9]/g,"").trim()),$(window).scroll(function(){if($("#post-list").length||t.is(":hidden")||e.is(":hidden")||$("#sidebar.sidebar-expand").length)return!1;$(this).scrollTop()>=95?e.text()!==a&&e.text(a):e.text()!==o&&e.text(o)}),e.click(function(){$("body,html").animate({scrollTop:0},800)})}),$(function(){$("input[type=checkbox]").addClass("unloaded"),$("input[type=checkbox][checked]").before('<i class="fas fa-check-circle checked"></i>'),$("input[type=checkbox]:not([checked])").before('<i class="far fa-circle"></i>')}),$(function(){const e="#main > div.row:first-child > div:first-child";if($(`${e} img`).length<=0)return;const t=document.querySelectorAll(`${e} img[data-src]`);lozad(t).observe(),$(`${e} p > img[data-src],${e} img[data-src].preview-img`).each(function(){let e=$(this).next();const t="EM"===e.prop("tagName")?e.text():"",o=$(this).attr("data-src");$(this).wrap(`<a href="${o}" title="${t}" class="popup"></a>`)}),$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),$(`${e} a`).has("img").addClass("img-link")}),$(function(){const e="fas fa-check",t="locked",o=2e3,a=new ClipboardJS(".code-header>button",{target:e=>e.parentNode.nextElementSibling});$(".code-header>button").tooltip({trigger:"click",placement:"left"});const s=$(".code-header>button").children().attr("class");a.on("success",a=>{a.clearSelection(),function(e){return"true"===$(e).attr(t)}(a.trigger)||(function(e){$(e).tooltip("hide").tooltip("show")}(a.trigger),function(e){setTimeout(function(){$(e).tooltip("hide")},o)}(a.trigger),function(o){let a=$(o),s=a.children();a.attr(t,!0),s.attr("class",e)}(a.trigger),function(e){let a=$(e),l=a.children();setTimeout(function(){a.removeAttr(t),l.attr("class",s)},o)}($(a.trigger)))})});
|
data/assets/js/dist/post.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Chirpy v4.
|
2
|
+
* Chirpy v4.2.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
3
3
|
* © 2019 Cotes Chung
|
4
4
|
* MIT Licensed
|
5
5
|
*/
|
6
|
-
|
6
|
+
$(function(){$(window).scroll(()=>{$(this).scrollTop()>50&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()}),$("#back-to-top").click(()=>($("body,html").animate({scrollTop:0},800),!1))}),$(function(){const t=$("#sidebar-trigger"),e=$("#search-trigger"),o=$("#search-cancel"),a=$("#search-cleaner"),n=$("#main"),s=$("#topbar-title"),l=$("#search-wrapper"),r=$("#search-result-wrapper"),i=$("#search-results"),c=$("#search-input"),d=$("#search-hints"),u=function(){let t=0;return{block(){t=window.scrollY,$("html,body").scrollTop(0)},release(){$("html,body").scrollTop(t)},getOffset:()=>t}}(),f={on(){t.addClass("unloaded"),s.addClass("unloaded"),e.addClass("unloaded"),l.addClass("d-flex"),o.addClass("loaded")},off(){o.removeClass("loaded"),l.removeClass("d-flex"),t.removeClass("unloaded"),s.removeClass("unloaded"),e.removeClass("unloaded")}},h=function(){let t=!1;return{on(){t||(u.block(),r.removeClass("unloaded"),n.addClass("unloaded"),t=!0)},off(){t&&(i.empty(),d.hasClass("unloaded")&&d.removeClass("unloaded"),r.addClass("unloaded"),a.removeClass("visible"),n.removeClass("unloaded"),u.release(),c.val(""),t=!1)},isVisible:()=>t}}();function p(){return o.hasClass("loaded")}e.click(function(){f.on(),h.on(),c.focus()}),o.click(function(){f.off(),h.off()}),c.focus(function(){l.addClass("input-focus")}),c.focusout(function(){l.removeClass("input-focus")}),c.on("keyup",function(t){8===t.keyCode&&""===c.val()?p()?d.removeClass("unloaded"):h.off():""!==c.val()&&(h.on(),a.hasClass("visible")||a.addClass("visible"),p()&&d.addClass("unloaded"))}),a.on("click",function(){c.val(""),p()?(d.removeClass("unloaded"),i.empty()):h.off(),c.focus(),a.removeClass("visible")})}),$(function(){const t=function(){let t=!1;const e=$("body");return{toggle(){!1===t?e.attr("sidebar-display",""):e.removeAttr("sidebar-display"),t=!t}}}();$("#sidebar-trigger").click(t.toggle),$("#mask").click(t.toggle)}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){const t=$("#topbar-wrapper"),e=$("#toc-wrapper"),o=$(".access"),a=$("#search-input");let n,s=0;const l=5,r=t.outerHeight();$(window).scroll(function(t){$("#topbar-title").is(":hidden")&&(n=!0)}),setInterval(function(){n&&(!function(){var n=$(this).scrollTop();Math.abs(s-n)<=l||(n>s&&n>r?(t.removeClass("topbar-down").addClass("topbar-up"),e.length>0&&e.removeClass("topbar-down"),o.length>0&&o.removeClass("topbar-down"),a.is(":focus")&&a.blur()):n+$(window).height()<$(document).height()&&(t.removeClass("topbar-up").addClass("topbar-down"),e.length>0&&e.addClass("topbar-down"),o.length>0&&o.addClass("topbar-down")),s=n)}(),n=!1)},250)}),$(function(){const t=$("#topbar-title"),e=$("div.post>h1"),o=t.text().trim();let a=e.length>0?e.text().trim():$("h1").text().trim();($("#page-category").length||$("#page-tag").length)&&/\s/.test(a)&&(a=a.replace(/[0-9]/g,"").trim()),$(window).scroll(function(){if($("#post-list").length||e.is(":hidden")||t.is(":hidden")||$("#sidebar.sidebar-expand").length)return!1;$(this).scrollTop()>=95?t.text()!==a&&t.text(a):t.text()!==o&&t.text(o)}),t.click(function(){$("body,html").animate({scrollTop:0},800)})}),$(function(){const t="#main > div.row:first-child > div:first-child";if($(`${t} img`).length<=0)return;const e=document.querySelectorAll(`${t} img[data-src]`);lozad(e).observe(),$(`${t} p > img[data-src],${t} img[data-src].preview-img`).each(function(){let t=$(this).next();const e="EM"===t.prop("tagName")?t.text():"",o=$(this).attr("data-src");$(this).wrap(`<a href="${o}" title="${e}" class="popup"></a>`)}),$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),$(`${t} a`).has("img").addClass("img-link")}),$(function(){let t=$(".timeago").length,e=void 0;const o=$("meta[name=day-prompt]").attr("content"),a=$("meta[name=hour-prompt]").attr("content"),n=$("meta[name=minute-prompt]").attr("content"),s=$("meta[name=justnow-prompt]").attr("content");function l(){return $(".timeago").each(function(){if($(this).children("i").length>0){let e=$(this).clone().children().remove().end().text(),l=$(this).children("i"),r=l.text();$(this).text(function(e,l){let r=new Date,i=new Date(e);if(i.getFullYear()!==r.getFullYear()||i.getMonth()!==r.getMonth())return l;let c=Math.floor((r-i)/1e3),d=Math.floor(c/86400);if(d>=1)return t-=1,` ${d} ${o}`;let u=Math.floor(c/3600);if(u>=1)return` ${u} ${a}`;let f=Math.floor(c/60);return f>=1?` ${f} ${n}`:s}(r,e)),$(this).append(l)}}),0===t&&void 0!==e&&clearInterval(e),t}0!==t&&l()>0&&(e=setInterval(l,6e4))}),$(function(){$("input[type=checkbox]").addClass("unloaded"),$("input[type=checkbox][checked]").before('<i class="fas fa-check-circle checked"></i>'),$("input[type=checkbox]:not([checked])").before('<i class="far fa-circle"></i>')}),$(function(){const t="fas fa-check",e="locked",o=2e3,a=new ClipboardJS(".code-header>button",{target:t=>t.parentNode.nextElementSibling});$(".code-header>button").tooltip({trigger:"click",placement:"left"});const n=$(".code-header>button").children().attr("class");a.on("success",a=>{a.clearSelection(),function(t){return"true"===$(t).attr(e)}(a.trigger)||(function(t){$(t).tooltip("hide").tooltip("show")}(a.trigger),function(t){setTimeout(function(){$(t).tooltip("hide")},o)}(a.trigger),function(o){let a=$(o),n=a.children();a.attr(e,!0),n.attr("class",t)}(a.trigger),function(t){let a=$(t),s=a.children();setTimeout(function(){a.removeAttr(e),s.attr("class",n)},o)}($(a.trigger)))})}),$(function(){$("a[href*='#']").not("[href='#']").not("[href='#0']").click(function(t){if(this.pathname.replace(/^\//,"")===location.pathname.replace(/^\//,"")&&location.hostname===this.hostname){const e=16,o=decodeURI(this.hash);let a=RegExp(/^#fnref:/).test(o),n=RegExp(/^#fn:/).test(o),s=o.includes(":")?o.replace(/\:/,"\\:"):o,l=$(s);if(l.length){t.preventDefault(),history.pushState&&history.pushState(null,null,o);let s=$(this).offset().top,r=l.offset().top;const i=r<s,c=$("#topbar-wrapper").outerHeight();i&&a&&(r-=c+e/2),$("html,body").animate({scrollTop:r},800,()=>{const t=$(l);t.focus();if($("[scroll-focus=true]").length&&$("[scroll-focus=true]").attr("scroll-focus",!1),$(":target").length&&$(":target").attr("scroll-focus",!1),(n||a)&&t.attr("scroll-focus",!0),t.is(":focus"))return!1;t.attr("tabindex","-1"),t.focus()})}}})});
|
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: 4.
|
4
|
+
version: 4.2.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: 2021-
|
11
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -106,6 +106,7 @@ files:
|
|
106
106
|
- _config.yml
|
107
107
|
- _data/contact.yml
|
108
108
|
- _data/locales/en.yml
|
109
|
+
- _data/locales/id-ID.yml
|
109
110
|
- _data/locales/zh-CN.yml
|
110
111
|
- _data/share.yml
|
111
112
|
- _includes/css-selector.html
|
@@ -115,6 +116,7 @@ files:
|
|
115
116
|
- _includes/google-analytics.html
|
116
117
|
- _includes/head.html
|
117
118
|
- _includes/js-selector.html
|
119
|
+
- _includes/lang.html
|
118
120
|
- _includes/mermaid.html
|
119
121
|
- _includes/mode-toggle.html
|
120
122
|
- _includes/no-linenos.html
|
@@ -184,7 +186,6 @@ files:
|
|
184
186
|
- assets/js/dist/page.min.js
|
185
187
|
- assets/js/dist/post.min.js
|
186
188
|
- assets/js/dist/pvreport.min.js
|
187
|
-
- assets/js/lib/jquery.disqusloader.min.js
|
188
189
|
- assets/js/pwa/app.js
|
189
190
|
- assets/js/pwa/sw.js
|
190
191
|
- assets/robots.txt
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
disqusLoader.js v1.0
|
3
|
-
A JavaScript plugin for lazy-loading Disqus comments widget.
|
4
|
-
-
|
5
|
-
By Osvaldas Valutis, www.osvaldas.info
|
6
|
-
Available for use under the MIT License
|
7
|
-
*/
|
8
|
-
(function(e,g,h,d){var a=e(g),k=function(o,n){var q,p;return function(){var t=this,s=arguments,r=+new Date;q&&r<q+o?(clearTimeout(p),p=setTimeout(function(){q=r,n.apply(t,s)},o)):(q=r,n.apply(t,s))}},m=false,j=false,i=false,c=false,f="unloaded",b=e(),l=function(){if(!b.length||b.data("disqusLoaderStatus")=="loaded"){return true}var n=a.scrollTop();if(b.offset().top-n>a.height()*j||n-b.offset().top-b.outerHeight()-(a.height()*j)>0){return true}e("#disqus_thread").removeAttr("id");b.attr("id","disqus_thread").data("disqusLoaderStatus","loaded");if(f=="loaded"){DISQUS.reset({reload:true,config:i})}else{g.disqus_config=i;if(f=="unloaded"){f="loading";e.ajax({url:c,async:true,cache:true,dataType:"script",success:function(){f="loaded"}})}}};a.on("scroll resize",k(m,l));e.disqusLoader=function(o,n){n=e.extend({},{laziness:1,throttle:250,scriptUrl:false,disqusConfig:false},n);j=n.laziness+1;m=n.throttle;i=n.disqusConfig;c=c===false?n.scriptUrl:c;b=(typeof o=="string"?e(o):o).eq(0);b.data("disqusLoaderStatus","unloaded");l()}})(jQuery,window,document);
|