jekyll-theme-chirpy 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/_data/assets/cross_origin.yml +2 -2
- data/_data/assets/self_host.yml +1 -1
- data/_data/locales/en.yml +10 -0
- data/_data/locales/hu-HU.yml +2 -2
- data/_data/locales/ko-KR.yml +7 -0
- data/_data/locales/pt-BR.yml +1 -1
- data/_data/locales/zh-CN.yml +8 -1
- data/_includes/comments/giscus.html +1 -1
- data/_includes/datetime.html +2 -8
- data/_includes/footer.html +26 -26
- data/_includes/head.html +0 -5
- data/_includes/js-selector.html +1 -5
- data/_includes/post-nav.html +4 -4
- data/_includes/post-sharing.html +3 -3
- data/_includes/read-time.html +3 -3
- data/_includes/refactor-content.html +9 -5
- data/_includes/related-posts.html +1 -1
- data/_includes/search-loader.html +1 -1
- data/_includes/sidebar.html +3 -3
- data/_includes/toc.html +1 -1
- data/_includes/topbar.html +9 -9
- data/_includes/trending-tags.html +1 -1
- data/_includes/update-list.html +1 -1
- data/_layouts/archives.html +2 -9
- data/_layouts/categories.html +12 -14
- data/_layouts/category.html +0 -2
- data/_layouts/default.html +6 -9
- data/_layouts/home.html +1 -3
- data/_layouts/page.html +4 -6
- data/_layouts/post.html +8 -10
- data/_layouts/tag.html +0 -2
- data/_sass/addon/commons.scss +131 -136
- data/_sass/addon/module.scss +5 -2
- data/_sass/addon/syntax.scss +14 -20
- data/_sass/addon/variables.scss +0 -4
- data/_sass/colors/dark-syntax.scss +17 -18
- data/_sass/colors/dark-typography.scss +22 -22
- data/_sass/colors/light-syntax.scss +2 -3
- data/_sass/colors/light-typography.scss +13 -14
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/archives.scss +4 -12
- data/_sass/layout/categories.scss +12 -13
- data/_sass/layout/category-tag.scss +4 -4
- data/_sass/layout/home.scss +19 -25
- data/_sass/layout/post.scss +132 -136
- data/_sass/layout/tags.scss +1 -1
- data/assets/404.html +1 -3
- data/assets/js/data/search.json +1 -1
- data/assets/js/data/swcache.js +35 -36
- 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
- data/assets/js/dist/pvreport.min.js +2 -2
- data/assets/js/pwa/app.js +33 -33
- data/assets/js/pwa/sw.js +54 -53
- data/assets/js/pwa/unregister.js +5 -5
- metadata +2 -10
- data/_config.yml +0 -201
- data/_includes/lang.html +0 -8
- data/_plugins/posts-lastmod-hook.rb +0 -14
- data/_tabs/about.md +0 -8
- data/_tabs/archives.md +0 -6
- data/_tabs/categories.md +0 -5
- data/_tabs/tags.md +0 -5
- data/index.html +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b023f9506aae8e5758f9d480b050d92dc3f76cc2ceae100ce9948a7963be570
|
|
4
|
+
data.tar.gz: a4b4a537ba866113373345e51f41bf25f354ef2371369a27106cd0646e5659e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59f560436842f5b48e31cfe03afe8ee0f51a0b82d02971a164e90db532816b9d97e2a311bf2465b621eb52485c4d18f1e6191f914840f81eaa57653af648db2f
|
|
7
|
+
data.tar.gz: 22e628d12a0a17d1bccdd9b8014dbecf100dc19ee2ae2f5096806f3d1cd72534ffd2bd6bdd2340eed054bdb8af3b28f3a74396c190d69883870a60a42ea4e268
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
A minimal, responsive, and powerful Jekyll theme for presenting professional writing.
|
|
6
6
|
|
|
7
7
|
[](https://rubygems.org/gems/jekyll-theme-chirpy)
|
|
8
|
-
[](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml)
|
|
9
9
|
[](https://www.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cotes2020/jekyll-theme-chirpy&utm_campaign=Badge_Grade)
|
|
10
10
|
[](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
|
|
11
11
|
[](https://996.icu)
|
|
@@ -102,4 +102,4 @@ This work is published under [MIT](https://github.com/cotes2020/jekyll-theme-chi
|
|
|
102
102
|
<!-- ReadMe links -->
|
|
103
103
|
|
|
104
104
|
[jb]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
|
|
105
|
-
[cn-donation]: https://
|
|
105
|
+
[cn-donation]: https://cotes2020.github.io/sponsor/
|
|
@@ -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@
|
|
36
|
+
js: https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.min.js
|
|
37
37
|
|
|
38
38
|
dayjs:
|
|
39
39
|
js:
|
|
@@ -53,7 +53,7 @@ lozad:
|
|
|
53
53
|
js: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js
|
|
54
54
|
|
|
55
55
|
clipboard:
|
|
56
|
-
js:
|
|
56
|
+
js: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js
|
|
57
57
|
|
|
58
58
|
polyfill:
|
|
59
59
|
js: https://polyfill.io/v3/polyfill.min.js?features=es6
|
data/_data/assets/self_host.yml
CHANGED
data/_data/locales/en.yml
CHANGED
|
@@ -73,6 +73,16 @@ post:
|
|
|
73
73
|
# pinned prompt of posts list on homepage
|
|
74
74
|
pin_prompt: Pinned
|
|
75
75
|
|
|
76
|
+
# Date time format.
|
|
77
|
+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
|
78
|
+
df:
|
|
79
|
+
post:
|
|
80
|
+
strftime: '%b %e, %Y'
|
|
81
|
+
dayjs: 'll'
|
|
82
|
+
archives:
|
|
83
|
+
strftime: '%b'
|
|
84
|
+
dayjs: 'MMM'
|
|
85
|
+
|
|
76
86
|
# categories page
|
|
77
87
|
categories:
|
|
78
88
|
category_measure:
|
data/_data/locales/hu-HU.yml
CHANGED
|
@@ -38,8 +38,8 @@ copyright:
|
|
|
38
38
|
# Displayed in the footer
|
|
39
39
|
brief: Néhány jog fenntartva.
|
|
40
40
|
verbose: >-
|
|
41
|
-
Az oldalon található tartalmak
|
|
42
|
-
Creative Commons Attribution 4.0 International (CC BY 4.0) licenccel rendelkeznek,
|
|
41
|
+
Az oldalon található tartalmak
|
|
42
|
+
Creative Commons Attribution 4.0 International (CC BY 4.0) licenccel rendelkeznek,
|
|
43
43
|
hacsak másképp nincs jelezve.
|
|
44
44
|
|
|
45
45
|
meta: Készítve :PLATFORM motorral :THEME témával.
|
data/_data/locales/ko-KR.yml
CHANGED
|
@@ -73,6 +73,13 @@ post:
|
|
|
73
73
|
# pinned prompt of posts list on homepage
|
|
74
74
|
pin_prompt: 핀
|
|
75
75
|
|
|
76
|
+
# Date time format.
|
|
77
|
+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
|
78
|
+
df:
|
|
79
|
+
post:
|
|
80
|
+
strftime: '%Y/%m/%d'
|
|
81
|
+
dayjs: 'YYYY/MM/DD'
|
|
82
|
+
|
|
76
83
|
# categories page
|
|
77
84
|
categories:
|
|
78
85
|
category_measure: 카테고리
|
data/_data/locales/pt-BR.yml
CHANGED
|
@@ -37,7 +37,7 @@ copyright:
|
|
|
37
37
|
# Displayed in the footer
|
|
38
38
|
brief: Alguns direitos reservados.
|
|
39
39
|
verbose: >-
|
|
40
|
-
Exceto onde indicado de outra forma, as postagens do blog neste site são licenciadas sob a
|
|
40
|
+
Exceto onde indicado de outra forma, as postagens do blog neste site são licenciadas sob a
|
|
41
41
|
Creative Commons Attribution 4.0 International (CC BY 4.0) License pelo autor.
|
|
42
42
|
|
|
43
43
|
meta: Feito com :PLATFORM usando o tema :THEME.
|
data/_data/locales/zh-CN.yml
CHANGED
|
@@ -67,11 +67,18 @@ post:
|
|
|
67
67
|
copy_code:
|
|
68
68
|
succeed: 已复制!
|
|
69
69
|
share_link:
|
|
70
|
-
title:
|
|
70
|
+
title: 分享链接
|
|
71
71
|
succeed: 链接已复制!
|
|
72
72
|
# pinned prompt of posts list on homepage
|
|
73
73
|
pin_prompt: 顶置
|
|
74
74
|
|
|
75
|
+
# Date time format.
|
|
76
|
+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
|
77
|
+
df:
|
|
78
|
+
post:
|
|
79
|
+
strftime: '%Y/%m/%d'
|
|
80
|
+
dayjs: 'YYYY/MM/DD'
|
|
81
|
+
|
|
75
82
|
# categories page
|
|
76
83
|
categories:
|
|
77
84
|
category_measure: 个分类
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"data-category": "{{ site.comments.giscus.category }}",
|
|
21
21
|
"data-category-id": "{{ site.comments.giscus.category_id }}",
|
|
22
22
|
"data-mapping": "{{ site.comments.giscus.mapping | default: 'pathname' }}",
|
|
23
|
-
"data-reactions-enabled": "1",
|
|
23
|
+
"data-reactions-enabled": "{{ site.comments.giscus.reactions_enabled | default: '1' }}",
|
|
24
24
|
"data-emit-metadata": "0",
|
|
25
25
|
"data-theme": initTheme,
|
|
26
26
|
"data-input-position": "{{ site.comments.giscus.input_position | default: 'bottom' }}",
|
data/_includes/datetime.html
CHANGED
|
@@ -4,14 +4,8 @@
|
|
|
4
4
|
-->
|
|
5
5
|
|
|
6
6
|
{% assign wrap_elem = include.wrap | default: 'em' %}
|
|
7
|
-
|
|
8
|
-
{%
|
|
9
|
-
{% assign df_strftime = '%b %e, %Y' %}
|
|
10
|
-
{% assign df_dayjs = 'll' %}
|
|
11
|
-
{% else %}
|
|
12
|
-
{% assign df_strftime = '%F' %}
|
|
13
|
-
{% assign df_dayjs = 'YYYY-MM-DD' %}
|
|
14
|
-
{% endif %}
|
|
7
|
+
{% assign df_strftime = site.data.locales[site.lang].df.post.strftime | default: '%d/%m/%Y' %}
|
|
8
|
+
{% assign df_dayjs = site.data.locales[site.lang].df.post.dayjs | default: 'DD/MM/YYYY' %}
|
|
15
9
|
|
|
16
10
|
<{{ wrap_elem }} class="{% if include.class %}{{ include.class }}{% endif %}"
|
|
17
11
|
data-ts="{{ include.date | date: '%s' }}"
|
data/_includes/footer.html
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
<!-- The Footer -->
|
|
2
2
|
|
|
3
|
-
<footer
|
|
4
|
-
<div class="
|
|
5
|
-
<div class="
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
<footer>
|
|
4
|
+
<div class="container pl-lg-4 pr-lg-4">
|
|
5
|
+
<div class="d-flex justify-content-between align-items-center text-muted ml-md-3 mr-md-3">
|
|
6
|
+
<div class="footer-left">
|
|
7
|
+
<p class="mb-0">
|
|
8
|
+
© {{ 'now' | date: "%Y" }}
|
|
9
|
+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
|
|
10
|
+
{% if site.data.locales[site.lang].copyright.brief %}
|
|
11
|
+
<span data-toggle="tooltip" data-placement="top"
|
|
12
|
+
title="{{ site.data.locales[site.lang].copyright.verbose }}">{{ site.data.locales[site.lang].copyright.brief }}</span>
|
|
13
|
+
{% endif %}
|
|
14
|
+
</p>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="footer-right">
|
|
18
|
+
<p class="mb-0">
|
|
15
19
|
|
|
16
|
-
|
|
17
|
-
<p class="mb-0">
|
|
18
|
-
{% capture _platform %}
|
|
20
|
+
{% capture _platform %}
|
|
19
21
|
<a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
|
|
20
|
-
|
|
22
|
+
{% endcapture %}
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
{% capture _theme %}
|
|
23
25
|
<a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{{ site.data.locales[lang].meta
|
|
27
|
-
| default: 'Powered by :PLATFORM with :THEME theme.'
|
|
28
|
-
| replace: ':PLATFORM', _platform | replace: ':THEME', _theme
|
|
29
|
-
}}
|
|
26
|
+
{% endcapture %}
|
|
30
27
|
|
|
31
|
-
|
|
28
|
+
{{ site.data.locales[site.lang].meta
|
|
29
|
+
| default: 'Powered by :PLATFORM with :THEME theme.'
|
|
30
|
+
| replace: ':PLATFORM', _platform | replace: ':THEME', _theme
|
|
31
|
+
}}
|
|
32
|
+
</p>
|
|
33
|
+
</div>
|
|
32
34
|
</div>
|
|
33
|
-
|
|
34
35
|
</div>
|
|
35
|
-
|
|
36
36
|
</footer>
|
data/_includes/head.html
CHANGED
|
@@ -6,11 +6,6 @@
|
|
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
8
8
|
|
|
9
|
-
<!-- Allow having a localized datetime different from the appearance language -->
|
|
10
|
-
{% if site.prefer_datetime_locale %}
|
|
11
|
-
<meta name="prefer-datetime-locale" content="{{ site.prefer_datetime_locale }}">
|
|
12
|
-
{% endif %}
|
|
13
|
-
|
|
14
9
|
{% if page.layout == 'home' or page.layout == 'post' %}
|
|
15
10
|
|
|
16
11
|
{% if site.google_analytics.pv.proxy_endpoint %}
|
data/_includes/js-selector.html
CHANGED
|
@@ -29,11 +29,7 @@
|
|
|
29
29
|
or page.layout == 'category'
|
|
30
30
|
or page.layout == 'tag' %}
|
|
31
31
|
|
|
32
|
-
{%
|
|
33
|
-
{% assign locale = site.prefer_datetime_locale | downcase %}
|
|
34
|
-
{% else %}
|
|
35
|
-
{% assign locale = site.lang | split: '-' | first %}
|
|
36
|
-
{% endif %}
|
|
32
|
+
{% assign locale = site.lang | split: '-' | first %}
|
|
37
33
|
|
|
38
34
|
{% assign _urls = site.data.assets[origin].dayjs.js.common
|
|
39
35
|
| append: ',' | append: site.data.assets[origin].dayjs.js.locale
|
data/_includes/post-nav.html
CHANGED
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
<div class="post-navigation d-flex justify-content-between">
|
|
6
6
|
{% if page.previous.url %}
|
|
7
7
|
<a href="{{ site.baseurl }}{{ page.previous.url }}" class="btn btn-outline-primary"
|
|
8
|
-
prompt="{{ site.data.locales[lang].post.button.previous }}">
|
|
8
|
+
prompt="{{ site.data.locales[site.lang].post.button.previous }}">
|
|
9
9
|
<p>{{ page.previous.title }}</p>
|
|
10
10
|
</a>
|
|
11
11
|
{% else %}
|
|
12
12
|
<div class="btn btn-outline-primary disabled"
|
|
13
|
-
prompt="{{ site.data.locales[lang].post.button.previous }}">
|
|
13
|
+
prompt="{{ site.data.locales[site.lang].post.button.previous }}">
|
|
14
14
|
<p>-</p>
|
|
15
15
|
</div>
|
|
16
16
|
{% endif %}
|
|
17
17
|
|
|
18
18
|
{% if page.next.url %}
|
|
19
19
|
<a href="{{ site.baseurl }}{{page.next.url}}" class="btn btn-outline-primary"
|
|
20
|
-
prompt="{{ site.data.locales[lang].post.button.next }}">
|
|
20
|
+
prompt="{{ site.data.locales[site.lang].post.button.next }}">
|
|
21
21
|
<p>{{ page.next.title }}</p>
|
|
22
22
|
</a>
|
|
23
23
|
{% else %}
|
|
24
24
|
<div class="btn btn-outline-primary disabled"
|
|
25
|
-
prompt="{{ site.data.locales[lang].post.button.next }}">
|
|
25
|
+
prompt="{{ site.data.locales[site.lang].post.button.next }}">
|
|
26
26
|
<p>-</p>
|
|
27
27
|
</div>
|
|
28
28
|
{% endif %}
|
data/_includes/post-sharing.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
-->
|
|
4
4
|
|
|
5
5
|
<div class="share-wrapper">
|
|
6
|
-
<span class="share-label text-muted mr-1">{{ site.data.locales[lang].post.share }}</span>
|
|
6
|
+
<span class="share-label text-muted mr-1">{{ site.data.locales[site.lang].post.share }}</span>
|
|
7
7
|
<span class="share-icons">
|
|
8
8
|
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
|
9
9
|
{% assign title = title | url_encode %}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
<i id="copy-link" class="fa-fw fas fa-link small"
|
|
21
21
|
data-toggle="tooltip" data-placement="top"
|
|
22
|
-
title="{{ site.data.locales[lang].post.button.share_link.title }}"
|
|
23
|
-
data-title-succeed="{{ site.data.locales[lang].post.button.share_link.succeed }}">
|
|
22
|
+
title="{{ site.data.locales[site.lang].post.button.share_link.title }}"
|
|
23
|
+
data-title-succeed="{{ site.data.locales[site.lang].post.button.share_link.succeed }}">
|
|
24
24
|
</i>
|
|
25
25
|
|
|
26
26
|
</span>
|
data/_includes/read-time.html
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
{% endunless %}
|
|
17
17
|
|
|
18
18
|
{% capture read_prompt %}
|
|
19
|
-
{{- site.data.locales[lang].post.read_time.prompt -}}
|
|
19
|
+
{{- site.data.locales[site.lang].post.read_time.prompt -}}
|
|
20
20
|
{% endcapture %}
|
|
21
21
|
|
|
22
22
|
<!-- return element -->
|
|
23
23
|
<span class="readtime" data-toggle="tooltip" data-placement="bottom"
|
|
24
|
-
title="{{ words }} {{ site.data.locales[lang].post.words }}">
|
|
25
|
-
<em>{{- read_time -}}{{" "}}{{- site.data.locales[lang].post.read_time.unit -}}</em>
|
|
24
|
+
title="{{ words }} {{ site.data.locales[site.lang].post.words }}">
|
|
25
|
+
<em>{{- read_time -}}{{" "}}{{- site.data.locales[site.lang].post.read_time.unit -}}</em>
|
|
26
26
|
{%- if include.prompt -%}
|
|
27
27
|
{%- assign _prompt_words = read_prompt | number_of_words: 'auto' -%}
|
|
28
28
|
{%- unless _prompt_words > 1 -%}{{ " " }}{%- endunless -%}{{ read_prompt }}
|
|
@@ -31,11 +31,15 @@
|
|
|
31
31
|
%}
|
|
32
32
|
{% endif %}
|
|
33
33
|
|
|
34
|
-
<!--
|
|
35
|
-
|
|
36
|
-
{% if _content contains '<li class="task-list-item"><' %}
|
|
34
|
+
<!-- Change the icon of checkbox -->
|
|
35
|
+
{% if _content contains '<input type="checkbox"' %}
|
|
37
36
|
{% assign _content = _content
|
|
38
|
-
| replace:
|
|
37
|
+
| replace:
|
|
38
|
+
'<input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked" />',
|
|
39
|
+
'<i class="fas fa-check-circle fa-fw checked"></i>'
|
|
40
|
+
| replace:
|
|
41
|
+
'<input type="checkbox" class="task-list-item-checkbox" disabled="disabled" />',
|
|
42
|
+
'<i class="far fa-circle fa-fw"></i>'
|
|
39
43
|
%}
|
|
40
44
|
{% endif %}
|
|
41
45
|
|
|
@@ -177,7 +181,7 @@
|
|
|
177
181
|
| append: '<div class="code-header">'
|
|
178
182
|
| append: _label
|
|
179
183
|
| append: '<button aria-label="copy" data-title-succeed="'
|
|
180
|
-
| append: site.data.locales[lang].post.button.copy_code.succeed
|
|
184
|
+
| append: site.data.locales[site.lang].post.button.copy_code.succeed
|
|
181
185
|
| append: '"><i class="far fa-clipboard"></i></button></div>'
|
|
182
186
|
| append: '<div class="highlight"><code>'
|
|
183
187
|
%}
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
{% if index_list.size > 0 %}
|
|
79
79
|
<div id="related-posts" class="mb-2 mb-sm-4">
|
|
80
80
|
<h3 class="pt-2 mb-4 ml-1"
|
|
81
|
-
data-toc-skip>{{ site.data.locales[lang].post.relate_posts }}</h3>
|
|
81
|
+
data-toc-skip>{{ site.data.locales[site.lang].post.relate_posts }}</h3>
|
|
82
82
|
<div class="card-deck mb-4">
|
|
83
83
|
{% for entry in index_list %}
|
|
84
84
|
{% assign index = entry | plus: 0 %}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
{% endcapture %}
|
|
16
16
|
|
|
17
|
-
{% capture not_found %}<p class="mt-5">{{ site.data.locales[lang].search.no_results }}</p>{% endcapture %}
|
|
17
|
+
{% capture not_found %}<p class="mt-5">{{ site.data.locales[site.lang].search.no_results }}</p>{% endcapture %}
|
|
18
18
|
|
|
19
19
|
<script src="{{ site.data.assets[origin].search.js | relative_url }}"></script>
|
|
20
20
|
|
data/_includes/sidebar.html
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
</a>
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
|
-
<div class="site-title
|
|
24
|
+
<div class="site-title">
|
|
25
25
|
<a href="{{ '/' | relative_url }}">{{ site.title }}</a>
|
|
26
26
|
</div>
|
|
27
27
|
<div class="site-subtitle font-italic">{{ site.tagline }}</div>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<li class="nav-item{% if page.layout == 'home' %}{{ " active" }}{% endif %}">
|
|
35
35
|
<a href="{{ '/' | relative_url }}" class="nav-link">
|
|
36
36
|
<i class="fa-fw fas fa-home ml-xl-3 mr-xl-3 unloaded"></i>
|
|
37
|
-
<span>{{ site.data.locales[lang].tabs.home | upcase }}</span>
|
|
37
|
+
<span>{{ site.data.locales[site.lang].tabs.home | upcase }}</span>
|
|
38
38
|
</a>
|
|
39
39
|
</li>
|
|
40
40
|
<!-- the real tabs -->
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i>
|
|
45
45
|
{% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %}
|
|
46
46
|
|
|
47
|
-
<span>{{ site.data.locales[lang].tabs.[tab_name] | default: tab.title | upcase }}</span>
|
|
47
|
+
<span>{{ site.data.locales[site.lang].tabs.[tab_name] | default: tab.title | upcase }}</span>
|
|
48
48
|
</a>
|
|
49
49
|
</li> <!-- .nav-item -->
|
|
50
50
|
{% endfor %}
|
data/_includes/toc.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script src="{{ site.data.assets[origin].bootstrap-toc.js | relative_url }}"></script>
|
|
11
11
|
|
|
12
12
|
<div id="toc-wrapper" class="pl-0 pr-4 mb-5">
|
|
13
|
-
<div class="panel-heading pl-3 pt-2 mb-2">{{- site.data.locales[lang].panel.toc -}}</div>
|
|
13
|
+
<div class="panel-heading pl-3 pt-2 mb-2">{{- site.data.locales[site.lang].panel.toc -}}</div>
|
|
14
14
|
<nav id="toc" data-toggle="toc"></nav>
|
|
15
15
|
</div>
|
|
16
16
|
{% endif %}
|
data/_includes/topbar.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
{% if paths.size == 0 or page.layout == 'home' %}
|
|
12
12
|
<!-- index page -->
|
|
13
|
-
<span>{{ site.data.locales[lang].tabs.home | capitalize }}</span>
|
|
13
|
+
<span>{{ site.data.locales[site.lang].tabs.home | capitalize }}</span>
|
|
14
14
|
|
|
15
15
|
{% else %}
|
|
16
16
|
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
{% if forloop.first %}
|
|
20
20
|
<span>
|
|
21
21
|
<a href="{{ '/' | relative_url }}">
|
|
22
|
-
{{ site.data.locales[lang].tabs.home | capitalize }}
|
|
22
|
+
{{ site.data.locales[site.lang].tabs.home | capitalize }}
|
|
23
23
|
</a>
|
|
24
24
|
</span>
|
|
25
25
|
|
|
26
26
|
{% elsif forloop.last %}
|
|
27
27
|
|
|
28
28
|
{% if page.collection == 'tabs' %}
|
|
29
|
-
<span>{{ site.data.locales[lang].tabs[item] | default: page.title }}</span>
|
|
29
|
+
<span>{{ site.data.locales[site.lang].tabs[item] | default: page.title }}</span>
|
|
30
30
|
{% else %}
|
|
31
31
|
<span>{{ page.title }}</span>
|
|
32
32
|
{% endif %}
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
{% elsif page.layout == 'category' or page.layout == 'tag' %}
|
|
35
35
|
<span>
|
|
36
36
|
<a href="{{ item | relative_url }}">
|
|
37
|
-
{{ site.data.locales[lang].tabs[item] | default: page.title }}
|
|
37
|
+
{{ site.data.locales[site.lang].tabs[item] | default: page.title }}
|
|
38
38
|
</a>
|
|
39
39
|
</span>
|
|
40
40
|
{% endif %}
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
|
|
50
50
|
<div id="topbar-title">
|
|
51
51
|
{% if page.layout == 'home' %}
|
|
52
|
-
{{- site.data.locales[lang].title | default: site.title -}}
|
|
52
|
+
{{- site.data.locales[site.lang].title | default: site.title -}}
|
|
53
53
|
{% elsif page.collection == 'tabs' or page.layout == 'page' %}
|
|
54
54
|
{%- capture tab_key -%}{{ page.url | split: '/' }}{%- endcapture -%}
|
|
55
|
-
{{- site.data.locales[lang].tabs[tab_key] | default: page.title -}}
|
|
55
|
+
{{- site.data.locales[site.lang].tabs[tab_key] | default: page.title -}}
|
|
56
56
|
{% else %}
|
|
57
|
-
{{- site.data.locales[lang].layout[page.layout] | default: page.layout | capitalize -}}
|
|
57
|
+
{{- site.data.locales[site.lang].layout[page.layout] | default: page.layout | capitalize -}}
|
|
58
58
|
{% endif %}
|
|
59
59
|
</div>
|
|
60
60
|
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
<span id="search-wrapper" class="align-items-center">
|
|
63
63
|
<i class="fas fa-search fa-fw"></i>
|
|
64
64
|
<input class="form-control" id="search-input" type="search"
|
|
65
|
-
aria-label="search" autocomplete="off" placeholder="{{ site.data.locales[lang].search.hint | capitalize }}...">
|
|
65
|
+
aria-label="search" autocomplete="off" placeholder="{{ site.data.locales[site.lang].search.hint | capitalize }}...">
|
|
66
66
|
</span>
|
|
67
|
-
<span id="search-cancel" >{{ site.data.locales[lang].search.cancel }}</span>
|
|
67
|
+
<span id="search-cancel" >{{ site.data.locales[site.lang].search.cancel }}</span>
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
70
|
</div>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
{% if trending_tags.size > 0 %}
|
|
39
39
|
<div id="access-tags">
|
|
40
|
-
<div class="panel-heading">{{- site.data.locales[lang].panel.trending_tags -}}</div>
|
|
40
|
+
<div class="panel-heading">{{- site.data.locales[site.lang].panel.trending_tags -}}</div>
|
|
41
41
|
<div class="d-flex flex-wrap mt-3 mb-1 mr-3">
|
|
42
42
|
|
|
43
43
|
{% for tag_name in trending_tags %}
|
data/_includes/update-list.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{% if update_list.size > 0 %}
|
|
27
27
|
|
|
28
28
|
<div id="access-lastmod" class="post">
|
|
29
|
-
<div class="panel-heading">{{- site.data.locales[lang].panel.lastmod -}}</div>
|
|
29
|
+
<div class="panel-heading">{{- site.data.locales[site.lang].panel.lastmod -}}</div>
|
|
30
30
|
<ul class="post-content pl-0 pb-1 ml-1 mt-2">
|
|
31
31
|
{% for item in update_list %}
|
|
32
32
|
{% assign index = item | split: "::" | last | plus: 0 %}
|
data/_layouts/archives.html
CHANGED
|
@@ -3,15 +3,8 @@ layout: page
|
|
|
3
3
|
# The Archives of posts.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
{%
|
|
7
|
-
|
|
8
|
-
{% if site.prefer_datetime_locale == 'en' or lang == 'en' %}
|
|
9
|
-
{% assign df_strftime_m = '%b' %}
|
|
10
|
-
{% assign df_dayjs_m = 'MMM' %}
|
|
11
|
-
{% else %}
|
|
12
|
-
{% assign df_strftime_m = '/ %m' %}
|
|
13
|
-
{% assign df_dayjs_m = '/ MM' %}
|
|
14
|
-
{% endif %}
|
|
6
|
+
{% assign df_strftime_m = site.data.locales[site.lang].df.archives.strftime | default: '/ %m' %}
|
|
7
|
+
{% assign df_dayjs_m = site.data.locales[site.lang].df.archives.dayjs | default: '/ MM' %}
|
|
15
8
|
|
|
16
9
|
<div id="archives" class="pl-xl-3">
|
|
17
10
|
|
data/_layouts/categories.html
CHANGED
|
@@ -3,8 +3,6 @@ layout: page
|
|
|
3
3
|
# All the Categories of posts
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
{% include lang.html %}
|
|
7
|
-
|
|
8
6
|
{% assign HEAD_PREFIX = "h_" %}
|
|
9
7
|
{% assign LIST_PREFIX = "l_" %}
|
|
10
8
|
|
|
@@ -48,22 +46,22 @@ layout: page
|
|
|
48
46
|
{% if sub_categories_size > 0 %}
|
|
49
47
|
{{ sub_categories_size }}
|
|
50
48
|
{% if sub_categories_size > 1 %}
|
|
51
|
-
{{ site.data.locales[lang].categories.category_measure.plural
|
|
52
|
-
| default: site.data.locales[lang].categories.category_measure }}
|
|
49
|
+
{{ site.data.locales[site.lang].categories.category_measure.plural
|
|
50
|
+
| default: site.data.locales[site.lang].categories.category_measure }}
|
|
53
51
|
{% else %}
|
|
54
|
-
{{ site.data.locales[lang].categories.category_measure.singular
|
|
55
|
-
| default: site.data.locales[lang].categories.category_measure }}
|
|
52
|
+
{{ site.data.locales[site.lang].categories.category_measure.singular
|
|
53
|
+
| default: site.data.locales[site.lang].categories.category_measure }}
|
|
56
54
|
{% endif %},
|
|
57
55
|
{% endif %}
|
|
58
56
|
|
|
59
57
|
{{ top_posts_size }}
|
|
60
58
|
|
|
61
59
|
{% if top_posts_size > 1 %}
|
|
62
|
-
{{ site.data.locales[lang].categories.post_measure.plural
|
|
63
|
-
| default: site.data.locales[lang].categories.post_measure }}
|
|
60
|
+
{{ site.data.locales[site.lang].categories.post_measure.plural
|
|
61
|
+
| default: site.data.locales[site.lang].categories.post_measure }}
|
|
64
62
|
{% else %}
|
|
65
|
-
{{ site.data.locales[lang].categories.post_measure.singular
|
|
66
|
-
| default: site.data.locales[lang].categories.post_measure }}
|
|
63
|
+
{{ site.data.locales[site.lang].categories.post_measure.singular
|
|
64
|
+
| default: site.data.locales[site.lang].categories.post_measure }}
|
|
67
65
|
{% endif %}
|
|
68
66
|
</span>
|
|
69
67
|
</span>
|
|
@@ -99,11 +97,11 @@ layout: page
|
|
|
99
97
|
{{ posts_size }}
|
|
100
98
|
|
|
101
99
|
{% if posts_size > 1 %}
|
|
102
|
-
{{ site.data.locales[lang].categories.post_measure.plural
|
|
103
|
-
| default: site.data.locales[lang].categories.post_measure }}
|
|
100
|
+
{{ site.data.locales[site.lang].categories.post_measure.plural
|
|
101
|
+
| default: site.data.locales[site.lang].categories.post_measure }}
|
|
104
102
|
{% else %}
|
|
105
|
-
{{ site.data.locales[lang].categories.post_measure.singular
|
|
106
|
-
| default: site.data.locales[lang].categories.post_measure }}
|
|
103
|
+
{{ site.data.locales[site.lang].categories.post_measure.singular
|
|
104
|
+
| default: site.data.locales[site.lang].categories.post_measure }}
|
|
107
105
|
{% endif %}
|
|
108
106
|
</span>
|
|
109
107
|
</li>
|
data/_layouts/category.html
CHANGED
data/_layouts/default.html
CHANGED
|
@@ -5,8 +5,6 @@ layout: compress
|
|
|
5
5
|
|
|
6
6
|
<!DOCTYPE html>
|
|
7
7
|
|
|
8
|
-
{% include lang.html %}
|
|
9
|
-
|
|
10
8
|
{% include assets-origin.html %}
|
|
11
9
|
|
|
12
10
|
{% capture prefer_mode %}
|
|
@@ -15,7 +13,8 @@ layout: compress
|
|
|
15
13
|
{% endif %}
|
|
16
14
|
{% endcapture %}
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
<!-- `site.alt_lang` can specify a language different from the UI -->
|
|
17
|
+
<html lang="{{ site.alt_lang | default: site.lang }}"{{ prefer_mode }}>
|
|
19
18
|
|
|
20
19
|
{% include head.html %}
|
|
21
20
|
|
|
@@ -27,17 +26,15 @@ layout: compress
|
|
|
27
26
|
|
|
28
27
|
<div id="main-wrapper" class="d-flex justify-content-center">
|
|
29
28
|
<div id="main" class="container pl-xl-4 pr-xl-4">
|
|
30
|
-
|
|
31
29
|
{{ content }}
|
|
32
|
-
|
|
33
|
-
{% include footer.html %}
|
|
34
|
-
|
|
35
30
|
</div>
|
|
36
31
|
|
|
37
32
|
{% include search-results.html %}
|
|
38
33
|
|
|
39
34
|
</div> <!-- #main-wrapper -->
|
|
40
35
|
|
|
36
|
+
{% include footer.html %}
|
|
37
|
+
|
|
41
38
|
{% if page.mermaid %}
|
|
42
39
|
{% include mermaid.html %}
|
|
43
40
|
{% endif %}
|
|
@@ -57,9 +54,9 @@ layout: compress
|
|
|
57
54
|
</button>
|
|
58
55
|
</div>
|
|
59
56
|
<div class="toast-body text-center pt-0">
|
|
60
|
-
<p class="pl-2 pr-2 mb-3">{{ site.data.locales[lang].notification.update_found }}</p>
|
|
57
|
+
<p class="pl-2 pr-2 mb-3">{{ site.data.locales[site.lang].notification.update_found }}</p>
|
|
61
58
|
<button type="button" class="btn btn-primary" aria-label="Update">
|
|
62
|
-
{{ site.data.locales[lang].notification.update }}
|
|
59
|
+
{{ site.data.locales[site.lang].notification.update }}
|
|
63
60
|
</button>
|
|
64
61
|
</div>
|
|
65
62
|
</div>
|