jekyll-theme-chirpy 5.2.1 → 5.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/assets/cross_origin.yml +2 -2
- data/_data/assets/self_host.yml +1 -1
- data/_data/locales/bg-BG.yml +83 -0
- data/_data/locales/de-DE.yml +82 -0
- data/_data/locales/en.yml +10 -0
- data/_data/locales/hu-HU.yml +81 -0
- data/_data/locales/ko-KR.yml +7 -0
- data/_data/locales/pt-BR.yml +1 -1
- data/_data/locales/tr-TR.yml +79 -0
- 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-paginator.html +1 -1
- data/_includes/post-sharing.html +3 -3
- data/_includes/read-time.html +3 -3
- data/_includes/refactor-content.html +10 -6
- data/_includes/related-posts.html +3 -3
- 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 +23 -37
- 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 +6 -7
- data/_layouts/post.html +22 -24
- 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 +15 -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 +76 -87
- data/_sass/layout/categories.scss +12 -13
- data/_sass/layout/category-tag.scss +4 -4
- data/_sass/layout/home.scss +20 -26
- data/_sass/layout/post.scss +132 -132
- 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 +6 -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 -7
- data/_tabs/categories.md +0 -6
- data/_tabs/tags.md +0 -6
- data/index.html +0 -4
@@ -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
|
%}
|
@@ -214,7 +218,7 @@
|
|
214
218
|
|
215
219
|
{% assign left = snippet | split: mark_end | first %}
|
216
220
|
{% assign right = snippet | slice: left.size, snippet.size %}
|
217
|
-
{% assign left = left |
|
221
|
+
{% assign left = left | replace_first: '">', '"><span class="mr-2">' | append: '</span>' %}
|
218
222
|
|
219
223
|
{% assign _new_content = _new_content | append: mark_start
|
220
224
|
| append: left | append: anchor | append: right
|
@@ -76,9 +76,9 @@
|
|
76
76
|
{% endif %}
|
77
77
|
|
78
78
|
{% if index_list.size > 0 %}
|
79
|
-
<div id="related-posts" class="
|
80
|
-
<h3 class="pt-2
|
81
|
-
data-toc-skip>{{ site.data.locales[lang].post.relate_posts }}</h3>
|
79
|
+
<div id="related-posts" class="mb-2 mb-sm-4">
|
80
|
+
<h3 class="pt-2 mb-4 ml-1"
|
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,46 +3,32 @@ layout: page
|
|
3
3
|
# The Archives of posts.
|
4
4
|
---
|
5
5
|
|
6
|
-
{%
|
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' %}
|
7
8
|
|
8
|
-
|
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 %}
|
9
|
+
<div id="archives" class="pl-xl-3">
|
15
10
|
|
16
|
-
<div id="archives" class="pl-xl-2">
|
17
11
|
{% for post in site.posts %}
|
18
|
-
{% capture
|
19
|
-
|
20
|
-
{% if
|
21
|
-
{%
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
{% endif %}
|
26
|
-
<li>
|
27
|
-
<div>
|
28
|
-
{% assign ts = post.date | date: '%s' %}
|
29
|
-
<span class="date day" data-ts="{{ ts }}" data-df="DD">
|
30
|
-
{{ post.date | date: "%d" }}
|
31
|
-
</span>
|
32
|
-
<span class="date month small text-muted" data-ts="{{ ts }}" data-df="{{ df_dayjs_m }}">
|
33
|
-
{{ post.date | date: df_strftime_m }}
|
34
|
-
</span>
|
35
|
-
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
36
|
-
</div>
|
37
|
-
</li>
|
38
|
-
{% if forloop.last %}
|
39
|
-
</ul>
|
40
|
-
{% elsif this_year != pre_year %}
|
41
|
-
</ul>
|
42
|
-
<span class="lead">{{pre_year}}</span>
|
43
|
-
<ul class="list-unstyled">
|
44
|
-
{% assign last_day = "" %}
|
45
|
-
{% assign last_month = "" %}
|
12
|
+
{% capture cur_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
13
|
+
|
14
|
+
{% if cur_year != last_year %}
|
15
|
+
{% unless forloop.first %}</ul>{% endunless %}
|
16
|
+
<div class="year lead">{{ cur_year }}</div>
|
17
|
+
<ul class="list-unstyled">
|
18
|
+
{% assign last_year = cur_year %}
|
46
19
|
{% endif %}
|
20
|
+
|
21
|
+
<li>
|
22
|
+
{% assign ts = post.date | date: '%s' %}
|
23
|
+
<span class="date day" data-ts="{{ ts }}" data-df="DD">{{ post.date | date: "%d" }}</span>
|
24
|
+
<span class="date month small text-muted ml-1" data-ts="{{ ts }}" data-df="{{ df_dayjs_m }}">
|
25
|
+
{{ post.date | date: df_strftime_m }}
|
26
|
+
</span>
|
27
|
+
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
28
|
+
</li>
|
29
|
+
|
30
|
+
{% if forloop.last %}</ul>{% endif %}
|
31
|
+
|
47
32
|
{% endfor %}
|
33
|
+
|
48
34
|
</div>
|
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>
|
data/_layouts/home.html
CHANGED
@@ -3,8 +3,6 @@ layout: page
|
|
3
3
|
# The Home page layout
|
4
4
|
---
|
5
5
|
|
6
|
-
{% include lang.html %}
|
7
|
-
|
8
6
|
{% assign pinned = site.posts | where: "pin", "true" %}
|
9
7
|
{% assign default = site.posts | where_exp: "item", "item.pin != true and item.hidden != true" %}
|
10
8
|
|
@@ -79,7 +77,7 @@ layout: page
|
|
79
77
|
{% if post.pin %}
|
80
78
|
<div class="pin">
|
81
79
|
<i class="fas fa-thumbtack fa-fw"></i>
|
82
|
-
<span>{{ site.data.locales[lang].post.pin_prompt }}</span>
|
80
|
+
<span>{{ site.data.locales[site.lang].post.pin_prompt }}</span>
|
83
81
|
</div>
|
84
82
|
{% endif %}
|
85
83
|
|
data/_layouts/page.html
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
{% include lang.html %}
|
6
|
-
|
7
5
|
{% include assets-origin.html %}
|
8
6
|
|
9
7
|
<div class="row">
|
@@ -20,8 +18,9 @@ layout: default
|
|
20
18
|
{% endif %}
|
21
19
|
{% endcapture %}
|
22
20
|
|
23
|
-
{% if page.layout == 'page' or page.collection == 'tabs'%}
|
24
|
-
{% assign
|
21
|
+
{% if page.layout == 'page' or page.collection == 'tabs' %}
|
22
|
+
{% assign tab_key = page.title | downcase %}
|
23
|
+
{% assign title = site.data.locales[site.lang].tabs[tab_key] | default: page.title %}
|
25
24
|
<h1 class="dynamic-title">
|
26
25
|
{{ title }}
|
27
26
|
</h1>
|
@@ -35,7 +34,7 @@ layout: default
|
|
35
34
|
</div>
|
36
35
|
</div> <!-- #core-wrapper -->
|
37
36
|
|
38
|
-
<!--
|
37
|
+
<!-- panel -->
|
39
38
|
<div id="panel-wrapper" class="col-xl-3 pl-2 text-muted">
|
40
39
|
|
41
40
|
<div class="access">
|
@@ -43,7 +42,7 @@ layout: default
|
|
43
42
|
{% include trending-tags.html %}
|
44
43
|
</div>
|
45
44
|
|
46
|
-
{% for _include in layout.
|
45
|
+
{% for _include in layout.panel_includes %}
|
47
46
|
{% assign _include_path = _include | append: '.html' %}
|
48
47
|
{% include {{ _include_path }} %}
|
49
48
|
{% endfor %}
|
@@ -54,7 +53,7 @@ layout: default
|
|
54
53
|
<!-- tail -->
|
55
54
|
{% if layout.tail_includes %}
|
56
55
|
<div class="row">
|
57
|
-
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 pl-3 pr-3 pr-xl-4">
|
56
|
+
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 pl-3 pr-3 pr-xl-4 mt-5">
|
58
57
|
{% for _include in layout.tail_includes %}
|
59
58
|
{% assign _include_path = _include | append: '.html' %}
|
60
59
|
{% include {{ _include_path }} %}
|
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
|
@@ -9,21 +9,19 @@ tail_includes:
|
|
9
9
|
- comments
|
10
10
|
---
|
11
11
|
|
12
|
-
{% include lang.html %}
|
13
|
-
|
14
12
|
<h1 data-toc-skip>{{ page.title }}</h1>
|
15
13
|
|
16
14
|
<div class="post-meta text-muted">
|
17
15
|
<!-- published date -->
|
18
16
|
<span>
|
19
|
-
{{ site.data.locales[lang].post.posted }}
|
17
|
+
{{ site.data.locales[site.lang].post.posted }}
|
20
18
|
{% include datetime.html date=page.date tooltip=true %}
|
21
19
|
</span>
|
22
20
|
|
23
21
|
<!-- lastmod date -->
|
24
22
|
{% if page.last_modified_at %}
|
25
23
|
<span>
|
26
|
-
{{ site.data.locales[lang].post.updated }}
|
24
|
+
{{ site.data.locales[site.lang].post.updated }}
|
27
25
|
{% include datetime.html date=page.last_modified_at tooltip=true %}
|
28
26
|
</span>
|
29
27
|
{% endif %}
|
@@ -50,32 +48,32 @@ tail_includes:
|
|
50
48
|
{% endif %}>
|
51
49
|
|
52
50
|
{% if page.image.alt %}
|
53
|
-
<figcaption class="pt-2 pb-2">{{ page.image.alt }}</figcaption>
|
51
|
+
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
|
54
52
|
{% endif %}
|
55
53
|
|
56
54
|
</div>
|
57
55
|
{% endif %}
|
58
56
|
|
59
57
|
<div class="d-flex justify-content-between">
|
60
|
-
<!-- author -->
|
58
|
+
<!-- author(s) -->
|
61
59
|
<span>
|
62
|
-
{% capture author_name %}{{ site.data.authors[page.author].name | default: site.social.name }}{% endcapture %}
|
63
|
-
{% assign author_link = nil %}
|
64
|
-
|
65
60
|
{% if page.author %}
|
66
|
-
{% assign
|
67
|
-
{% elsif
|
68
|
-
{% assign
|
61
|
+
{% assign authors = page.author %}
|
62
|
+
{% elsif page.authors %}
|
63
|
+
{% assign authors = page.authors %}
|
69
64
|
{% endif %}
|
70
65
|
|
71
|
-
{{ site.data.locales[lang].post.written_by }}
|
66
|
+
{{ site.data.locales[site.lang].post.written_by }}
|
72
67
|
|
73
68
|
<em>
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
{%
|
69
|
+
{% if authors %}
|
70
|
+
{% for author in authors %}
|
71
|
+
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
|
72
|
+
{% unless forloop.last %}</em>, <em>{% endunless %}
|
73
|
+
{% endfor %}
|
74
|
+
{% else %}
|
75
|
+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
|
76
|
+
{% endif %}
|
79
77
|
</em>
|
80
78
|
</span>
|
81
79
|
|
@@ -86,7 +84,7 @@ tail_includes:
|
|
86
84
|
<em id="pv" class="pageviews">
|
87
85
|
<i class="fas fa-spinner fa-spin fa-fw"></i>
|
88
86
|
</em>
|
89
|
-
{{ site.data.locales[lang].post.pageview_measure }}
|
87
|
+
{{ site.data.locales[site.lang].post.pageview_measure }}
|
90
88
|
</span>
|
91
89
|
{% endif %}
|
92
90
|
|
@@ -132,15 +130,15 @@ tail_includes:
|
|
132
130
|
d-flex justify-content-between align-items-center mt-3 pt-5 pb-2">
|
133
131
|
<div class="license-wrapper">
|
134
132
|
|
135
|
-
{% if site.data.locales[lang].copyright.license.template %}
|
133
|
+
{% if site.data.locales[site.lang].copyright.license.template %}
|
136
134
|
|
137
135
|
{% capture _replacement %}
|
138
|
-
<a href="{{ site.data.locales[lang].copyright.license.link }}">
|
139
|
-
{{ site.data.locales[lang].copyright.license.name }}
|
136
|
+
<a href="{{ site.data.locales[site.lang].copyright.license.link }}">
|
137
|
+
{{ site.data.locales[site.lang].copyright.license.name }}
|
140
138
|
</a>
|
141
139
|
{% endcapture %}
|
142
140
|
|
143
|
-
{{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
141
|
+
{{ site.data.locales[site.lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
144
142
|
|
145
143
|
{% endif %}
|
146
144
|
</div>
|