jekyll-theme-chirpy 5.0.2 → 6.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +64 -74
- data/_data/locales/ar.yml +91 -0
- data/_data/locales/bg-BG.yml +81 -0
- data/_data/locales/cs-CZ.yml +89 -0
- data/_data/locales/de-DE.yml +80 -0
- data/_data/locales/el-GR.yml +91 -0
- data/_data/locales/en.yml +23 -23
- data/_data/locales/es-ES.yml +77 -0
- data/_data/locales/fi-FI.yml +90 -0
- data/_data/locales/fr-FR.yml +77 -0
- data/_data/locales/hu-HU.yml +79 -0
- data/_data/locales/id-ID.yml +5 -19
- data/_data/locales/it-IT.yml +90 -0
- data/_data/locales/ko-KR.yml +12 -19
- data/_data/locales/my-MM.yml +77 -0
- data/_data/locales/pt-BR.yml +77 -0
- data/_data/locales/ru-RU.yml +77 -0
- data/_data/locales/sl-SI.yml +91 -0
- data/_data/locales/sv-SE.yml +91 -0
- data/_data/locales/th.yml +91 -0
- data/_data/locales/tr-TR.yml +77 -0
- data/_data/locales/uk-UA.yml +77 -0
- data/_data/locales/vi-VN.yml +76 -0
- data/_data/locales/zh-CN.yml +13 -20
- data/_data/locales/zh-TW.yml +83 -0
- data/_data/origin/basic.yml +48 -0
- data/_data/origin/cors.yml +59 -0
- data/_includes/comments/disqus.html +27 -31
- data/_includes/comments/giscus.html +64 -0
- data/_includes/comments/utterances.html +2 -2
- data/_includes/datetime.html +20 -0
- data/_includes/embed/twitch.html +4 -0
- data/_includes/embed/youtube.html +6 -0
- data/_includes/footer.html +31 -32
- data/_includes/head.html +66 -46
- data/_includes/js-selector.html +83 -45
- data/_includes/jsdelivr-combine.html +26 -0
- data/_includes/lang.html +1 -1
- data/_includes/mermaid.html +30 -29
- data/_includes/metadata-hook.html +1 -0
- data/_includes/mode-toggle.html +66 -51
- data/_includes/notification.html +24 -0
- data/_includes/origin-type.html +13 -0
- data/_includes/post-nav.html +26 -22
- data/_includes/post-paginator.html +79 -76
- data/_includes/post-sharing.html +27 -16
- data/_includes/read-time.html +17 -10
- data/_includes/refactor-content.html +129 -73
- data/_includes/related-posts.html +48 -58
- data/_includes/search-loader.html +32 -31
- data/_includes/search-results.html +4 -5
- data/_includes/sidebar.html +79 -67
- data/_includes/toc.html +4 -7
- data/_includes/topbar.html +62 -56
- data/_includes/trending-tags.html +15 -19
- data/_includes/update-list.html +14 -15
- data/_layouts/archives.html +25 -29
- data/_layouts/categories.html +97 -58
- data/_layouts/category.html +8 -10
- data/_layouts/default.html +67 -31
- data/_layouts/home.html +67 -56
- data/_layouts/page.html +20 -58
- data/_layouts/post.html +85 -94
- data/_layouts/tag.html +8 -10
- data/_layouts/tags.html +6 -5
- data/_sass/addon/commons.scss +679 -878
- data/_sass/addon/module.scss +70 -23
- data/_sass/addon/syntax.scss +127 -110
- data/_sass/addon/variables.scss +16 -18
- data/_sass/colors/syntax-dark.scss +138 -0
- data/_sass/colors/syntax-light.scss +179 -0
- data/_sass/colors/{dark-typography.scss → typography-dark.scss} +58 -56
- data/_sass/colors/typography-light.scss +110 -0
- data/_sass/layout/archives.scss +86 -89
- data/_sass/layout/categories.scss +29 -13
- data/_sass/layout/category-tag.scss +9 -10
- data/_sass/layout/home.scss +132 -114
- data/_sass/layout/post.scss +213 -173
- data/_sass/layout/tags.scss +1 -1
- data/_sass/main.scss +13 -0
- data/assets/404.html +1 -20
- data/assets/css/jekyll-theme-chirpy.scss +6 -0
- data/assets/feed.xml +2 -2
- data/assets/js/data/search.json +8 -5
- data/assets/js/data/swcache.js +14 -29
- data/assets/js/dist/categories.min.js +2 -4
- data/assets/js/dist/commons.min.js +2 -4
- data/assets/js/dist/home.min.js +2 -4
- data/assets/js/dist/misc.min.js +4 -0
- data/assets/js/dist/page.min.js +2 -4
- data/assets/js/dist/post.min.js +2 -4
- data/assets/js/pwa/app.js +42 -4
- data/assets/js/pwa/sw.js +46 -44
- data/assets/js/pwa/unregister.js +12 -0
- metadata +64 -32
- data/_config.yml +0 -175
- data/_data/contact.yml +0 -30
- data/_data/share.yml +0 -27
- data/_includes/css-selector.html +0 -15
- data/_includes/no-zero-date.html +0 -13
- data/_includes/timeago.html +0 -26
- data/_plugins/posts-lastmod-hook.rb +0 -14
- data/_sass/colors/dark-syntax.scss +0 -87
- data/_sass/colors/light-syntax.scss +0 -79
- data/_sass/colors/light-typography.scss +0 -81
- data/_sass/jekyll-theme-chirpy.scss +0 -24
- data/_tabs/about.md +0 -8
- data/_tabs/archives.md +0 -7
- data/_tabs/categories.md +0 -6
- data/_tabs/tags.md +0 -6
- data/assets/css/style.scss +0 -12
- data/assets/js/dist/pvreport.min.js +0 -6
- data/index.html +0 -4
data/_layouts/page.html
CHANGED
@@ -2,63 +2,25 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
{%
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
{
|
19
|
-
|
20
|
-
|
21
|
-
{% if page.layout == 'page' or page.collection == 'tabs'%}
|
22
|
-
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
|
23
|
-
<h1 class="dynamic-title">
|
24
|
-
{{ title }}
|
25
|
-
</h1>
|
26
|
-
<div class="post-content">
|
27
|
-
{{ _content }}
|
28
|
-
</div>
|
29
|
-
{% else %}
|
5
|
+
{% capture _content %}
|
6
|
+
{% if layout.refactor or page.layout == 'page' %}
|
7
|
+
{% include refactor-content.html content=content lang=lang %}
|
8
|
+
{% else %}
|
9
|
+
{{ content }}
|
10
|
+
{% endif %}
|
11
|
+
{% endcapture %}
|
12
|
+
|
13
|
+
<article class="px-1">
|
14
|
+
{% if page.layout == 'page' or page.collection == 'tabs' %}
|
15
|
+
{% assign tab_key = page.title | downcase %}
|
16
|
+
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
|
17
|
+
<h1 class="dynamic-title">
|
18
|
+
{{ title }}
|
19
|
+
</h1>
|
20
|
+
<div class="content">
|
30
21
|
{{ _content }}
|
31
|
-
{% endif %}
|
32
|
-
|
33
|
-
</div>
|
34
|
-
</div> <!-- #core-wrapper -->
|
35
|
-
|
36
|
-
<!-- pannel -->
|
37
|
-
<div id="panel-wrapper" class="col-xl-3 pl-2 text-muted topbar-down">
|
38
|
-
|
39
|
-
<div class="access">
|
40
|
-
{% include update-list.html %}
|
41
|
-
{% include trending-tags.html %}
|
42
|
-
</div>
|
43
|
-
|
44
|
-
{% for _include in layout.pannel_includes %}
|
45
|
-
{% assign _include_path = _include | append: '.html' %}
|
46
|
-
{% include {{ _include_path }} %}
|
47
|
-
{% endfor %}
|
48
|
-
</div>
|
49
|
-
|
50
|
-
</div>
|
51
|
-
|
52
|
-
<!-- tail -->
|
53
|
-
{% if layout.tail_includes %}
|
54
|
-
<div class="row">
|
55
|
-
<div class="col-12 col-lg-11 col-xl-8">
|
56
|
-
<div id="tail-wrapper" class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
|
57
|
-
{% for _include in layout.tail_includes %}
|
58
|
-
{% assign _include_path = _include | append: '.html' %}
|
59
|
-
{% include {{ _include_path }} %}
|
60
|
-
{% endfor %}
|
61
22
|
</div>
|
62
|
-
|
63
|
-
|
64
|
-
{% endif %}
|
23
|
+
{% else %}
|
24
|
+
{{ _content }}
|
25
|
+
{% endif %}
|
26
|
+
</article>
|
data/_layouts/post.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
layout: page
|
3
3
|
refactor: true
|
4
|
-
|
4
|
+
panel_includes:
|
5
5
|
- toc
|
6
6
|
tail_includes:
|
7
7
|
- related-posts
|
@@ -11,121 +11,113 @@ tail_includes:
|
|
11
11
|
|
12
12
|
{% include lang.html %}
|
13
13
|
|
14
|
-
|
15
|
-
{
|
16
|
-
{% unless page.image.no_bg %}{{ 'bg' }}{% endunless %}
|
17
|
-
{% endcapture %}
|
18
|
-
<img src="{{ page.image.src }}" class="preview-img {{ bg | strip }}"
|
19
|
-
alt="{{ page.image.alt | default: "Preview Image" }}"
|
20
|
-
|
21
|
-
{% if page.image.width %}
|
22
|
-
width="{{ page.image.width }}"
|
23
|
-
{% elsif page.image.w %}
|
24
|
-
width="{{ page.image.w }}"
|
25
|
-
{% endif %}
|
26
|
-
|
27
|
-
{% if page.image.height %}
|
28
|
-
height="{{ page.image.height }}"
|
29
|
-
{% elsif page.image.h %}
|
30
|
-
height="{{ page.image.h }}"
|
31
|
-
{% endif %}>
|
32
|
-
{% endif %}
|
33
|
-
|
34
|
-
<h1 data-toc-skip>{{ page.title }}</h1>
|
35
|
-
|
36
|
-
<div class="post-meta text-muted">
|
37
|
-
|
38
|
-
<!-- author -->
|
39
|
-
<div>
|
40
|
-
{% capture author_name %}{{ page.author.name | default: site.social.name }}{% endcapture %}
|
41
|
-
{% assign author_link = nil %}
|
14
|
+
<header>
|
15
|
+
<h1 data-toc-skip>{{ page.title }}</h1>
|
42
16
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
{
|
47
|
-
|
17
|
+
<div class="post-meta text-muted">
|
18
|
+
<!-- published date -->
|
19
|
+
<span>
|
20
|
+
{{ site.data.locales[lang].post.posted }}
|
21
|
+
{% include datetime.html date=page.date tooltip=true lang=lang %}
|
22
|
+
</span>
|
48
23
|
|
49
|
-
|
50
|
-
|
51
|
-
{% if author_link %}
|
52
|
-
<a href="{{ author_link }}">{{ author_name }}</a>
|
53
|
-
{% else %}
|
54
|
-
{{ author_name }}
|
55
|
-
{% endif %}
|
56
|
-
</em>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div class="d-flex">
|
60
|
-
<div>
|
61
|
-
<!-- published date -->
|
62
|
-
<span>
|
63
|
-
{{ site.data.locales[lang].post.posted }}
|
64
|
-
{% include timeago.html date=page.date tooltip=true %}
|
65
|
-
</span>
|
66
|
-
|
67
|
-
<!-- lastmod date -->
|
68
|
-
{% if page.last_modified_at %}
|
24
|
+
<!-- lastmod date -->
|
25
|
+
{% if page.last_modified_at and page.last_modified_at != page.date %}
|
69
26
|
<span>
|
70
27
|
{{ site.data.locales[lang].post.updated }}
|
71
|
-
{% include
|
28
|
+
{% include datetime.html date=page.last_modified_at tooltip=true lang=lang %}
|
72
29
|
</span>
|
73
|
-
|
30
|
+
{% endif %}
|
74
31
|
|
75
|
-
|
76
|
-
{%
|
32
|
+
{% if page.image %}
|
33
|
+
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
|
34
|
+
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
|
35
|
+
{% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %}
|
77
36
|
|
78
|
-
|
79
|
-
{% if
|
37
|
+
{% capture lqip %}
|
38
|
+
{% if page.image.lqip %}
|
39
|
+
lqip="{{ page.image.lqip }}"
|
40
|
+
{% endif %}
|
41
|
+
{% endcapture %}
|
42
|
+
|
43
|
+
<div class="mt-3 mb-3">
|
44
|
+
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip | strip }}>
|
45
|
+
{%- if page.image.alt -%}
|
46
|
+
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
|
47
|
+
{%- endif -%}
|
48
|
+
</div>
|
49
|
+
{% endif %}
|
50
|
+
|
51
|
+
<div class="d-flex justify-content-between">
|
52
|
+
<!-- author(s) -->
|
80
53
|
<span>
|
81
|
-
|
82
|
-
|
54
|
+
{% if page.author %}
|
55
|
+
{% assign authors = page.author %}
|
56
|
+
{% elsif page.authors %}
|
57
|
+
{% assign authors = page.authors %}
|
58
|
+
{% endif %}
|
59
|
+
|
60
|
+
{{ site.data.locales[lang].post.written_by }}
|
61
|
+
|
62
|
+
<em>
|
63
|
+
{% if authors %}
|
64
|
+
{% for author in authors %}
|
65
|
+
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
|
66
|
+
{% unless forloop.last %}{{ '</em>, <em>' }}{% endunless %}
|
67
|
+
{% endfor %}
|
68
|
+
{% else %}
|
69
|
+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
|
70
|
+
{% endif %}
|
83
71
|
</em>
|
84
|
-
{{ site.data.locales[lang].post.pageview_measure }}
|
85
72
|
</span>
|
86
|
-
{% endif %}
|
87
|
-
</div>
|
88
|
-
|
89
|
-
</div> <!-- .d-flex -->
|
90
73
|
|
91
|
-
|
74
|
+
<!-- read time -->
|
75
|
+
{% include read-time.html content=content prompt=true lang=lang %}
|
76
|
+
</div>
|
77
|
+
<!-- .d-flex -->
|
78
|
+
</div>
|
79
|
+
<!-- .post-meta -->
|
80
|
+
</header>
|
92
81
|
|
93
|
-
<div class="
|
82
|
+
<div class="content">
|
94
83
|
{{ content }}
|
95
84
|
</div>
|
96
85
|
|
97
86
|
<div class="post-tail-wrapper text-muted">
|
98
|
-
|
99
87
|
<!-- categories -->
|
100
88
|
{% if page.categories.size > 0 %}
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
89
|
+
<div class="post-meta mb-3">
|
90
|
+
<i class="far fa-folder-open fa-fw me-1"></i>
|
91
|
+
{% for category in page.categories %}
|
92
|
+
<a href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/">{{ category }}</a>
|
93
|
+
{%- unless forloop.last -%},{%- endunless -%}
|
94
|
+
{% endfor %}
|
95
|
+
</div>
|
108
96
|
{% endif %}
|
109
97
|
|
110
98
|
<!-- tags -->
|
111
99
|
{% if page.tags.size > 0 %}
|
112
|
-
|
113
|
-
|
100
|
+
<div class="post-tags">
|
101
|
+
<i class="fa fa-tags fa-fw me-1"></i>
|
114
102
|
{% for tag in page.tags %}
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
103
|
+
<a
|
104
|
+
href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
|
105
|
+
class="post-tag no-text-decoration"
|
106
|
+
>
|
107
|
+
{{- tag -}}
|
108
|
+
</a>
|
119
109
|
{% endfor %}
|
120
|
-
|
110
|
+
</div>
|
121
111
|
{% endif %}
|
122
112
|
|
123
|
-
<div
|
124
|
-
|
113
|
+
<div
|
114
|
+
class="
|
115
|
+
post-tail-bottom
|
116
|
+
d-flex justify-content-between align-items-center mt-5 pb-2
|
117
|
+
"
|
118
|
+
>
|
125
119
|
<div class="license-wrapper">
|
126
|
-
|
127
120
|
{% if site.data.locales[lang].copyright.license.template %}
|
128
|
-
|
129
121
|
{% capture _replacement %}
|
130
122
|
<a href="{{ site.data.locales[lang].copyright.license.link }}">
|
131
123
|
{{ site.data.locales[lang].copyright.license.name }}
|
@@ -133,12 +125,11 @@ tail_includes:
|
|
133
125
|
{% endcapture %}
|
134
126
|
|
135
127
|
{{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
136
|
-
|
137
128
|
{% endif %}
|
138
129
|
</div>
|
139
130
|
|
140
|
-
{% include post-sharing.html %}
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
131
|
+
{% include post-sharing.html lang=lang %}
|
132
|
+
</div>
|
133
|
+
<!-- .post-tail-bottom -->
|
134
|
+
</div>
|
135
|
+
<!-- div.post-tail-wrapper -->
|
data/_layouts/tag.html
CHANGED
@@ -6,20 +6,18 @@ layout: page
|
|
6
6
|
{% include lang.html %}
|
7
7
|
|
8
8
|
<div id="page-tag">
|
9
|
-
<h1 class="
|
9
|
+
<h1 class="ps-lg-2">
|
10
10
|
<i class="fa fa-tag fa-fw text-muted"></i>
|
11
11
|
{{ page.title }}
|
12
|
-
<span class="lead text-muted
|
12
|
+
<span class="lead text-muted ps-2">{{ page.posts | size }}</span>
|
13
13
|
</h1>
|
14
|
-
<ul class="
|
15
|
-
{% assign post_df = site.data.locales[lang].date_format.post.long %}
|
16
|
-
|
14
|
+
<ul class="content ps-0">
|
17
15
|
{% for post in page.posts %}
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
<li class="d-flex justify-content-between px-md-3">
|
17
|
+
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
18
|
+
<span class="dash flex-grow-1"></span>
|
19
|
+
{% include datetime.html date=post.date class='text-muted small text-nowrap' lang=lang %}
|
20
|
+
</li>
|
23
21
|
{% endfor %}
|
24
22
|
</ul>
|
25
23
|
</div>
|
data/_layouts/tags.html
CHANGED
@@ -3,9 +3,8 @@ layout: page
|
|
3
3
|
# All the Tags of posts.
|
4
4
|
---
|
5
5
|
|
6
|
-
<div id="tags" class="d-flex flex-wrap
|
7
|
-
|
8
|
-
{% assign tags = "" | split: "" %}
|
6
|
+
<div id="tags" class="d-flex flex-wrap mx-xl-2">
|
7
|
+
{% assign tags = '' | split: '' %}
|
9
8
|
{% for t in site.tags %}
|
10
9
|
{% assign tags = tags | push: t[0] %}
|
11
10
|
{% endfor %}
|
@@ -14,8 +13,10 @@ layout: page
|
|
14
13
|
|
15
14
|
{% for t in sorted_tags %}
|
16
15
|
<div>
|
17
|
-
<a class="tag" href="{{
|
16
|
+
<a class="tag" href="{{ t | slugify | url_encode | prepend: '/tags/' | append: '/' | relative_url }}">
|
17
|
+
{{ t -}}
|
18
|
+
<span class="text-muted">{{ site.tags[t].size }}</span>
|
19
|
+
</a>
|
18
20
|
</div>
|
19
21
|
{% endfor %}
|
20
|
-
|
21
22
|
</div>
|