jekyll-theme-chirpy 5.1.0 → 5.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 -0
- data/_data/authors.yml +17 -0
- data/_data/locales/en.yml +11 -6
- data/_data/locales/es-ES.yml +79 -0
- data/_data/locales/fr-FR.yml +79 -0
- data/_data/locales/id-ID.yml +4 -3
- data/_data/locales/ko-KR.yml +4 -3
- data/_data/locales/my-MM.yml +4 -3
- data/_data/locales/pt-BR.yml +79 -0
- data/_data/locales/ru-RU.yml +4 -3
- data/_data/locales/uk-UA.yml +4 -3
- data/_data/locales/vi-VN.yml +77 -0
- data/_data/locales/zh-CN.yml +4 -3
- data/_includes/datetime.html +21 -0
- data/_includes/footer.html +5 -6
- data/_includes/head.html +33 -7
- data/_includes/js-selector.html +9 -5
- data/_includes/mermaid.html +1 -1
- data/_includes/post-nav.html +4 -4
- data/_includes/post-paginator.html +2 -2
- data/_includes/post-sharing.html +3 -2
- data/_includes/refactor-content.html +9 -4
- data/_includes/related-posts.html +1 -4
- data/_includes/search-loader.html +1 -1
- data/_includes/sidebar.html +2 -2
- data/_includes/toc.html +1 -1
- data/_includes/topbar.html +2 -2
- data/_layouts/archives.html +15 -4
- data/_layouts/categories.html +25 -4
- data/_layouts/category.html +3 -3
- data/_layouts/default.html +19 -6
- data/_layouts/home.html +3 -7
- data/_layouts/page.html +8 -10
- data/_layouts/post.html +52 -44
- data/_layouts/tag.html +3 -3
- data/_layouts/tags.html +3 -1
- data/_sass/addon/commons.scss +115 -186
- data/_sass/addon/syntax.scss +1 -1
- data/_sass/addon/variables.scss +3 -3
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/post.scss +3 -6
- data/assets/404.html +0 -15
- data/assets/js/data/search.json +5 -5
- 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 +55 -4
- data/assets/js/pwa/sw.js +42 -40
- data/assets/js/pwa/unregister.js +12 -0
- metadata +11 -5
- data/_includes/timeago.html +0 -15
@@ -2,7 +2,7 @@
|
|
2
2
|
The paginator for post list on HomgPage.
|
3
3
|
-->
|
4
4
|
|
5
|
-
<ul class="pagination align-items-center mt-4 mb-
|
5
|
+
<ul class="pagination align-items-center mt-4 mb-5 pl-lg-2">
|
6
6
|
<!-- left arrow -->
|
7
7
|
{% if paginator.previous_page %}
|
8
8
|
{% assign prev_url = paginator.previous_page_path | relative_url %}
|
@@ -47,7 +47,7 @@
|
|
47
47
|
{% if show %}
|
48
48
|
<!-- show number -->
|
49
49
|
<li class="page-item {% if i == paginator.page %} active{% endif %}">
|
50
|
-
<a class="page-link btn-box-shadow" href="{{ site.
|
50
|
+
<a class="page-link btn-box-shadow" href="{% if i > 1 %}{{ site.paginate_path | replace: ':num', i | relative_url }}{% else %}{{ '/' | relative_url }}{% endif %}">{{ i }}</a>
|
51
51
|
</li>
|
52
52
|
{% else %}
|
53
53
|
<!-- hide number -->
|
data/_includes/post-sharing.html
CHANGED
@@ -6,10 +6,11 @@
|
|
6
6
|
<span class="share-label text-muted mr-1">{{ site.data.locales[lang].post.share }}</span>
|
7
7
|
<span class="share-icons">
|
8
8
|
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
9
|
-
{% assign
|
9
|
+
{% assign title = title | url_encode %}
|
10
|
+
{% assign url = page.url | absolute_url | url_encode %}
|
10
11
|
|
11
12
|
{% for share in site.data.share.platforms %}
|
12
|
-
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url
|
13
|
+
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}
|
13
14
|
<a href="{{ link }}" data-toggle="tooltip" data-placement="top"
|
14
15
|
title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}">
|
15
16
|
<i class="fa-fw {{ share.icon }}"></i>
|
@@ -9,10 +9,11 @@
|
|
9
9
|
we suround the markdown table with `<div class="table-wrapper">` and `</div>`
|
10
10
|
-->
|
11
11
|
|
12
|
-
{% if _content contains '<table
|
12
|
+
{% if _content contains '<table' %}
|
13
13
|
{% assign _content = _content
|
14
|
-
| replace: '<table
|
14
|
+
| replace: '<table', '<div class="table-wrapper"><table'
|
15
15
|
| replace: '</table>', '</table></div>'
|
16
|
+
| replace: '<code><div class="table-wrapper">', '<code>'
|
16
17
|
| replace: '</table></div></code>', '</table></code>'
|
17
18
|
%}
|
18
19
|
{% endif %}
|
@@ -91,7 +92,11 @@
|
|
91
92
|
|
92
93
|
<!-- Add CDN URL -->
|
93
94
|
{% if site.img_cdn %}
|
94
|
-
{%
|
95
|
+
{% if site.img_cdn contains '//' %}
|
96
|
+
{% assign _src_prefix = site.img_cdn %}
|
97
|
+
{% else %}
|
98
|
+
{% assign _src_prefix = site.img_cdn | relative_url %}
|
99
|
+
{% endif %}
|
95
100
|
{% else %}
|
96
101
|
{% assign _src_prefix = site.baseurl %}
|
97
102
|
{% endif %}
|
@@ -212,7 +217,7 @@
|
|
212
217
|
{% assign left = left | replace: '">', '"><span class="mr-2">' | append: '</span>' %}
|
213
218
|
|
214
219
|
{% assign _new_content = _new_content | append: mark_start
|
215
|
-
| append: left | append: anchor | append:
|
220
|
+
| append: left | append: anchor | append: right
|
216
221
|
%}
|
217
222
|
|
218
223
|
{% endfor %}
|
@@ -60,7 +60,6 @@
|
|
60
60
|
{% assign less = TOTAL_SIZE | minus: index_list.size %}
|
61
61
|
|
62
62
|
{% if less > 0 %}
|
63
|
-
|
64
63
|
{% for i in (0..last_index) %}
|
65
64
|
{% assign post = site.posts[i] %}
|
66
65
|
{% if post.url != page.url %}
|
@@ -74,10 +73,8 @@
|
|
74
73
|
{% endunless %}
|
75
74
|
{% endif %}
|
76
75
|
{% endfor %}
|
77
|
-
|
78
76
|
{% endif %}
|
79
77
|
|
80
|
-
|
81
78
|
{% if index_list.size > 0 %}
|
82
79
|
<div id="related-posts" class="mt-5 mb-2 mb-sm-4">
|
83
80
|
<h3 class="pt-2 mt-1 mb-4 ml-1"
|
@@ -89,7 +86,7 @@
|
|
89
86
|
<div class="card">
|
90
87
|
<a href="{{ post.url | relative_url }}">
|
91
88
|
<div class="card-body">
|
92
|
-
{% include
|
89
|
+
{% include datetime.html date=post.date class="small" %}
|
93
90
|
<h3 class="pt-0 mt-1 mb-3" data-toc-skip>{{ post.title }}</h3>
|
94
91
|
<div class="text-muted small">
|
95
92
|
<p>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
{% capture not_found %}<p class="mt-5">{{ site.data.locales[lang].search.no_results }}</p>{% endcapture %}
|
18
18
|
|
19
|
-
<script src="{{ site.data.assets[origin].search.js }}"></script>
|
19
|
+
<script src="{{ site.data.assets[origin].search.js | relative_url }}"></script>
|
20
20
|
|
21
21
|
<script>
|
22
22
|
SimpleJekyllSearch({
|
data/_includes/sidebar.html
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
<div id="sidebar" class="d-flex flex-column align-items-end">
|
6
6
|
<div class="profile-wrapper text-center">
|
7
7
|
<div id="avatar">
|
8
|
-
<a href="{{ '/' | relative_url }}"
|
8
|
+
<a href="{{ '/' | relative_url }}" class="mx-auto">
|
9
9
|
{% if site.avatar != empty and site.avatar %}
|
10
10
|
{% capture avatar_url %}
|
11
11
|
{% if site.avatar contains '://' %}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
{{ site.avatar | relative_url }}
|
17
17
|
{% endif %}
|
18
18
|
{% endcapture %}
|
19
|
-
<img src="{{ avatar_url }}" alt="avatar" onerror="this.style.display='none'">
|
19
|
+
<img src="{{ avatar_url | strip }}" alt="avatar" onerror="this.style.display='none'">
|
20
20
|
{% endif %}
|
21
21
|
</a>
|
22
22
|
</div>
|
data/_includes/toc.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
{% if enable_toc %}
|
9
9
|
<!-- BS-toc.js will be loaded at medium priority -->
|
10
|
-
<script src="{{ site.data.assets[origin].bootstrap-toc.js }}"></script>
|
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
13
|
<div class="panel-heading pl-3 pt-2 mb-2">{{- site.data.locales[lang].panel.toc -}}</div>
|
data/_includes/topbar.html
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
The Top Bar
|
3
3
|
-->
|
4
4
|
|
5
|
-
<div id="topbar-wrapper"
|
6
|
-
<div id="topbar" class="
|
5
|
+
<div id="topbar-wrapper">
|
6
|
+
<div id="topbar" class="container d-flex align-items-center justify-content-between h-100 pl-3 pr-3 pl-md-4 pr-md-4">
|
7
7
|
<span id="breadcrumb">
|
8
8
|
|
9
9
|
{% assign paths = page.url | split: '/' %}
|
data/_layouts/archives.html
CHANGED
@@ -3,8 +3,17 @@ layout: page
|
|
3
3
|
# The Archives of posts.
|
4
4
|
---
|
5
5
|
|
6
|
-
|
6
|
+
{% include lang.html %}
|
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 %}
|
7
15
|
|
16
|
+
<div id="archives" class="pl-xl-2">
|
8
17
|
{% for post in site.posts %}
|
9
18
|
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
10
19
|
{% capture pre_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
@@ -17,9 +26,11 @@ layout: page
|
|
17
26
|
<li>
|
18
27
|
<div>
|
19
28
|
{% assign ts = post.date | date: '%s' %}
|
20
|
-
<span class="date day" data-ts="{{ ts }}" data-df="DD">
|
21
|
-
|
22
|
-
|
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 }}
|
23
34
|
</span>
|
24
35
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
25
36
|
</div>
|
data/_layouts/categories.html
CHANGED
@@ -47,10 +47,24 @@ layout: page
|
|
47
47
|
<span class="text-muted small font-weight-light">
|
48
48
|
{% if sub_categories_size > 0 %}
|
49
49
|
{{ sub_categories_size }}
|
50
|
-
{
|
50
|
+
{% if sub_categories_size > 1 %}
|
51
|
+
{{ site.data.locales[lang].categories.category_measure.plural
|
52
|
+
| default: site.data.locales[lang].categories.category_measure }}
|
53
|
+
{% else %}
|
54
|
+
{{ site.data.locales[lang].categories.category_measure.singular
|
55
|
+
| default: site.data.locales[lang].categories.category_measure }}
|
56
|
+
{% endif %},
|
57
|
+
{% endif %}
|
58
|
+
|
59
|
+
{{ top_posts_size }}
|
60
|
+
|
61
|
+
{% if top_posts_size > 1 %}
|
62
|
+
{{ site.data.locales[lang].categories.post_measure.plural
|
63
|
+
| default: site.data.locales[lang].categories.post_measure }}
|
64
|
+
{% else %}
|
65
|
+
{{ site.data.locales[lang].categories.post_measure.singular
|
66
|
+
| default: site.data.locales[lang].categories.post_measure }}
|
51
67
|
{% endif %}
|
52
|
-
{{ top_posts_size }}
|
53
|
-
{{ site.data.locales[lang].categories.post_measure }}
|
54
68
|
</span>
|
55
69
|
</span>
|
56
70
|
|
@@ -83,7 +97,14 @@ layout: page
|
|
83
97
|
{% assign posts_size = site.categories[sub_category] | size %}
|
84
98
|
<span class="text-muted small font-weight-light">
|
85
99
|
{{ posts_size }}
|
86
|
-
|
100
|
+
|
101
|
+
{% if posts_size > 1 %}
|
102
|
+
{{ site.data.locales[lang].categories.post_measure.plural
|
103
|
+
| default: site.data.locales[lang].categories.post_measure }}
|
104
|
+
{% else %}
|
105
|
+
{{ site.data.locales[lang].categories.post_measure.singular
|
106
|
+
| default: site.data.locales[lang].categories.post_measure }}
|
107
|
+
{% endif %}
|
87
108
|
</span>
|
88
109
|
</li>
|
89
110
|
{% endfor %}
|
data/_layouts/category.html
CHANGED
@@ -3,6 +3,8 @@ layout: page
|
|
3
3
|
# The Category layout
|
4
4
|
---
|
5
5
|
|
6
|
+
{% include lang.html %}
|
7
|
+
|
6
8
|
<div id="page-category">
|
7
9
|
<h1 class="pl-lg-2">
|
8
10
|
<i class="far fa-folder-open fa-fw text-muted"></i>
|
@@ -15,9 +17,7 @@ layout: page
|
|
15
17
|
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
|
16
18
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
17
19
|
<span class="dash flex-grow-1"></span>
|
18
|
-
|
19
|
-
{{ post.date | date: '%Y-%m-%d' }}
|
20
|
-
</span>
|
20
|
+
{% include datetime.html date=post.date wrap='span' class='text-muted small' %}
|
21
21
|
</li>
|
22
22
|
{% endfor %}
|
23
23
|
</ul>
|
data/_layouts/default.html
CHANGED
@@ -19,18 +19,14 @@ layout: compress
|
|
19
19
|
|
20
20
|
{% include head.html %}
|
21
21
|
|
22
|
-
{% unless site.theme_mode %}
|
23
|
-
{% include mode-toggle.html %}
|
24
|
-
{% endunless %}
|
25
|
-
|
26
22
|
<body data-spy="scroll" data-target="#toc" data-topbar-visible="true">
|
27
23
|
|
28
24
|
{% include sidebar.html %}
|
29
25
|
|
30
26
|
{% include topbar.html %}
|
31
27
|
|
32
|
-
<div id="main-wrapper">
|
33
|
-
<div id="main">
|
28
|
+
<div id="main-wrapper" class="d-flex justify-content-center">
|
29
|
+
<div id="main" class="container pl-xl-4 pr-xl-4">
|
34
30
|
|
35
31
|
{{ content }}
|
36
32
|
|
@@ -52,6 +48,23 @@ layout: compress
|
|
52
48
|
<i class="fas fa-angle-up"></i>
|
53
49
|
</a>
|
54
50
|
|
51
|
+
{% if site.pwa.enabled %}
|
52
|
+
<div id="notification" class="toast" role="alert" aria-live="assertive" aria-atomic="true"
|
53
|
+
data-animation="true" data-autohide="false">
|
54
|
+
<div class="toast-header">
|
55
|
+
<button type="button" class="ml-2 ml-auto close" data-dismiss="toast" aria-label="Close">
|
56
|
+
<span aria-hidden="true">×</span>
|
57
|
+
</button>
|
58
|
+
</div>
|
59
|
+
<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>
|
61
|
+
<button type="button" class="btn btn-primary" aria-label="Update">
|
62
|
+
{{ site.data.locales[lang].notification.update }}
|
63
|
+
</button>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
{% endif %}
|
67
|
+
|
55
68
|
{% include search-loader.html %}
|
56
69
|
|
57
70
|
{% include js-selector.html %}
|
data/_layouts/home.html
CHANGED
@@ -23,7 +23,6 @@ layout: page
|
|
23
23
|
{% assign pinned_num = 0 %}
|
24
24
|
{% endif %}
|
25
25
|
|
26
|
-
|
27
26
|
<!-- Get default posts -->
|
28
27
|
|
29
28
|
{% assign default_beg = offset | minus: pinned.size %}
|
@@ -58,15 +57,11 @@ layout: page
|
|
58
57
|
</div>
|
59
58
|
|
60
59
|
<div class="post-meta text-muted d-flex">
|
61
|
-
|
62
60
|
<div class="mr-auto">
|
61
|
+
|
63
62
|
<!-- posted date -->
|
64
63
|
<i class="far fa-calendar fa-fw"></i>
|
65
|
-
{% include
|
66
|
-
|
67
|
-
<!-- time to read -->
|
68
|
-
<i class="far fa-clock fa-fw"></i>
|
69
|
-
{% include read-time.html content=post.content %}
|
64
|
+
{% include datetime.html date=post.date %}
|
70
65
|
|
71
66
|
<!-- categories -->
|
72
67
|
{% if post.categories.size > 0 %}
|
@@ -78,6 +73,7 @@ layout: page
|
|
78
73
|
{% endfor %}
|
79
74
|
</span>
|
80
75
|
{% endif %}
|
76
|
+
|
81
77
|
</div>
|
82
78
|
|
83
79
|
{% if post.pin %}
|
data/_layouts/page.html
CHANGED
@@ -9,8 +9,8 @@ layout: default
|
|
9
9
|
<div class="row">
|
10
10
|
|
11
11
|
<!-- core -->
|
12
|
-
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-
|
13
|
-
<div class="post pl-1 pr-1 pl-
|
12
|
+
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pr-xl-4">
|
13
|
+
<div class="post pl-1 pr-1 pl-md-2 pr-md-2">
|
14
14
|
|
15
15
|
{% capture _content %}
|
16
16
|
{% if layout.refactor or page.layout == 'page' %}
|
@@ -54,13 +54,11 @@ layout: default
|
|
54
54
|
<!-- tail -->
|
55
55
|
{% if layout.tail_includes %}
|
56
56
|
<div class="row">
|
57
|
-
<div class="col-12 col-lg-11 col-xl-
|
58
|
-
|
59
|
-
{%
|
60
|
-
|
61
|
-
|
62
|
-
{% endfor %}
|
63
|
-
</div>
|
57
|
+
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 pl-3 pr-3 pr-xl-4">
|
58
|
+
{% for _include in layout.tail_includes %}
|
59
|
+
{% assign _include_path = _include | append: '.html' %}
|
60
|
+
{% include {{ _include_path }} %}
|
61
|
+
{% endfor %}
|
64
62
|
</div>
|
65
|
-
</div>
|
63
|
+
</div>
|
66
64
|
{% endif %}
|
data/_layouts/post.html
CHANGED
@@ -11,12 +11,31 @@ tail_includes:
|
|
11
11
|
|
12
12
|
{% include lang.html %}
|
13
13
|
|
14
|
-
{
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
<h1 data-toc-skip>{{ page.title }}</h1>
|
15
|
+
|
16
|
+
<div class="post-meta text-muted">
|
17
|
+
<!-- published date -->
|
18
|
+
<span>
|
19
|
+
{{ site.data.locales[lang].post.posted }}
|
20
|
+
{% include datetime.html date=page.date tooltip=true %}
|
21
|
+
</span>
|
22
|
+
|
23
|
+
<!-- lastmod date -->
|
24
|
+
{% if page.last_modified_at %}
|
25
|
+
<span>
|
26
|
+
{{ site.data.locales[lang].post.updated }}
|
27
|
+
{% include datetime.html date=page.last_modified_at tooltip=true %}
|
28
|
+
</span>
|
29
|
+
{% endif %}
|
30
|
+
|
31
|
+
{% if page.image.path %}
|
32
|
+
{% capture bg %}
|
33
|
+
{% unless page.image.no_bg %}{{ 'bg' }}{% endunless %}
|
34
|
+
{% endcapture %}
|
35
|
+
|
36
|
+
<div class="mt-3 mb-3">
|
37
|
+
<img src="{{ page.image.path }}" class="preview-img {{ bg | strip }}"
|
38
|
+
alt="{{ page.image.alt | default: "Preview Image" }}"
|
20
39
|
|
21
40
|
{% if page.image.width %}
|
22
41
|
width="{{ page.image.width }}"
|
@@ -29,52 +48,38 @@ tail_includes:
|
|
29
48
|
{% elsif page.image.h %}
|
30
49
|
height="{{ page.image.h }}"
|
31
50
|
{% endif %}>
|
32
|
-
{% endif %}
|
33
|
-
|
34
|
-
<h1 data-toc-skip>{{ page.title }}</h1>
|
35
51
|
|
36
|
-
|
52
|
+
{% if page.image.alt %}
|
53
|
+
<figcaption class="pt-2 pb-2">{{ page.image.alt }}</figcaption>
|
54
|
+
{% endif %}
|
37
55
|
|
38
|
-
|
39
|
-
|
40
|
-
{% capture author_name %}{{ page.author.name | default: site.social.name }}{% endcapture %}
|
41
|
-
{% assign author_link = nil %}
|
56
|
+
</div>
|
57
|
+
{% endif %}
|
42
58
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
{%
|
47
|
-
|
59
|
+
<div class="d-flex justify-content-between">
|
60
|
+
<!-- author -->
|
61
|
+
<span>
|
62
|
+
{% capture author_name %}{{ site.data.authors[page.author].name | default: site.social.name }}{% endcapture %}
|
63
|
+
{% assign author_link = nil %}
|
48
64
|
|
49
|
-
|
50
|
-
|
51
|
-
{%
|
52
|
-
|
53
|
-
{% else %}
|
54
|
-
{{ author_name }}
|
65
|
+
{% if page.author %}
|
66
|
+
{% assign author_link = site.data.authors[page.author].url %}
|
67
|
+
{% elsif author_name == site.social.name %}
|
68
|
+
{% assign author_link = site.social.links[0] %}
|
55
69
|
{% endif %}
|
56
|
-
</em>
|
57
|
-
</div>
|
58
70
|
|
59
|
-
|
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 %}
|
69
|
-
<span>
|
70
|
-
{{ site.data.locales[lang].post.updated }}
|
71
|
-
{% include timeago.html date=page.last_modified_at tooltip=true %}
|
72
|
-
</span>
|
73
|
-
{% endif %}
|
71
|
+
{{ site.data.locales[lang].post.written_by }}
|
74
72
|
|
75
|
-
|
76
|
-
|
73
|
+
<em>
|
74
|
+
{% if author_link %}
|
75
|
+
<a href="{{ author_link }}">{{ author_name }}</a>
|
76
|
+
{% else %}
|
77
|
+
{{ author_name }}
|
78
|
+
{% endif %}
|
79
|
+
</em>
|
80
|
+
</span>
|
77
81
|
|
82
|
+
<div>
|
78
83
|
<!-- page views -->
|
79
84
|
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
|
80
85
|
<span>
|
@@ -84,6 +89,9 @@ tail_includes:
|
|
84
89
|
{{ site.data.locales[lang].post.pageview_measure }}
|
85
90
|
</span>
|
86
91
|
{% endif %}
|
92
|
+
|
93
|
+
<!-- read time -->
|
94
|
+
{% include read-time.html content=content prompt=true %}
|
87
95
|
</div>
|
88
96
|
|
89
97
|
</div> <!-- .d-flex -->
|
data/_layouts/tag.html
CHANGED
@@ -3,6 +3,8 @@ layout: page
|
|
3
3
|
# The layout for Tag page
|
4
4
|
---
|
5
5
|
|
6
|
+
{% include lang.html %}
|
7
|
+
|
6
8
|
<div id="page-tag">
|
7
9
|
<h1 class="pl-lg-2">
|
8
10
|
<i class="fa fa-tag fa-fw text-muted"></i>
|
@@ -14,9 +16,7 @@ layout: page
|
|
14
16
|
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
|
15
17
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
16
18
|
<span class="dash flex-grow-1"></span>
|
17
|
-
|
18
|
-
{{ post.date | date: '%Y-%m-%d' }}
|
19
|
-
</span>
|
19
|
+
{% include datetime.html date=post.date wrap='span' class='text-muted small' %}
|
20
20
|
</li>
|
21
21
|
{% endfor %}
|
22
22
|
</ul>
|
data/_layouts/tags.html
CHANGED
@@ -14,7 +14,9 @@ layout: page
|
|
14
14
|
|
15
15
|
{% for t in sorted_tags %}
|
16
16
|
<div>
|
17
|
-
<a class="tag" href="{{
|
17
|
+
<a class="tag" href="{{ t | slugify | url_encode | prepend: '/tags/' | append: '/' | relative_url }}">
|
18
|
+
{{ t }}<span class="text-muted">{{ site.tags[t].size }}</span>
|
19
|
+
</a>
|
18
20
|
</div>
|
19
21
|
{% endfor %}
|
20
22
|
|