jekyll-theme-chirpy 4.3.4 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -162
- data/_config.yml +44 -18
- data/_data/assets/cross_origin.yml +62 -0
- data/_data/assets/self_host.yml +51 -0
- data/_data/locales/en.yml +3 -15
- data/_data/locales/id-ID.yml +2 -14
- data/_data/locales/ko-KR.yml +78 -0
- data/_data/locales/my-MM.yml +78 -0
- data/_data/locales/ru-RU.yml +78 -0
- data/_data/locales/uk-UA.yml +78 -0
- data/_data/locales/zh-CN.yml +2 -14
- data/_data/share.yml +1 -1
- data/_includes/assets-origin.html +12 -0
- data/_includes/{disqus.html → comments/disqus.html} +4 -4
- data/_includes/comments/giscus.html +56 -0
- data/_includes/comments/utterances.html +51 -0
- data/_includes/comments.html +5 -0
- data/_includes/footer.html +1 -1
- data/_includes/head.html +35 -20
- data/_includes/js-selector.html +43 -11
- data/_includes/jsdelivr-combine.html +32 -0
- data/_includes/mermaid.html +31 -3
- data/_includes/mode-toggle.html +49 -65
- data/_includes/post-sharing.html +2 -2
- data/_includes/read-time.html +3 -3
- data/_includes/refactor-content.html +160 -36
- data/_includes/related-posts.html +1 -1
- data/_includes/search-loader.html +1 -1
- data/_includes/search-results.html +0 -8
- data/_includes/sidebar.html +16 -17
- data/_includes/timeago.html +11 -23
- data/_includes/toc.html +16 -0
- data/_includes/topbar.html +2 -3
- data/_includes/trending-tags.html +14 -0
- data/_includes/update-list.html +16 -0
- data/_layouts/archives.html +5 -7
- data/_layouts/category.html +3 -5
- data/_layouts/default.html +10 -4
- data/_layouts/home.html +14 -11
- data/_layouts/page.html +47 -22
- data/_layouts/post.html +128 -127
- data/_layouts/tag.html +3 -5
- data/_sass/addon/commons.scss +276 -290
- data/_sass/addon/module.scss +67 -31
- data/_sass/addon/syntax.scss +90 -66
- data/_sass/addon/variables.scss +7 -7
- data/_sass/colors/dark-syntax.scss +4 -4
- data/_sass/colors/dark-typography.scss +21 -9
- data/_sass/colors/light-syntax.scss +9 -4
- data/_sass/colors/light-typography.scss +18 -6
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/home.scss +6 -2
- data/_sass/layout/post.scss +52 -46
- data/_tabs/about.md +2 -2
- data/assets/404.html +0 -2
- data/assets/js/data/search.json +1 -0
- data/assets/js/data/swcache.js +11 -20
- 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 +6 -0
- 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
- metadata +16 -6
- data/_includes/css-selector.html +0 -15
- data/_includes/no-zero-date.html +0 -13
- data/_includes/panel.html +0 -59
data/_includes/topbar.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
The Top Bar
|
3
3
|
-->
|
4
4
|
|
5
|
-
<div id="topbar-wrapper" class="row justify-content-center
|
5
|
+
<div id="topbar-wrapper" class="row justify-content-center">
|
6
6
|
<div id="topbar" class="col-11 d-flex h-100 align-items-center justify-content-between">
|
7
7
|
<span id="breadcrumb">
|
8
8
|
|
@@ -50,7 +50,7 @@
|
|
50
50
|
<div id="topbar-title">
|
51
51
|
{% if page.layout == 'home' %}
|
52
52
|
{{- site.data.locales[lang].title | default: site.title -}}
|
53
|
-
{% elsif page.collection == 'tabs' %}
|
53
|
+
{% elsif page.collection == 'tabs' or page.layout == 'page' %}
|
54
54
|
{%- capture tab_key -%}{{ page.url | split: '/' }}{%- endcapture -%}
|
55
55
|
{{- site.data.locales[lang].tabs[tab_key] | default: page.title -}}
|
56
56
|
{% else %}
|
@@ -63,7 +63,6 @@
|
|
63
63
|
<i class="fas fa-search fa-fw"></i>
|
64
64
|
<input class="form-control" id="search-input" type="search"
|
65
65
|
aria-label="search" autocomplete="off" placeholder="{{ site.data.locales[lang].search.hint | capitalize }}...">
|
66
|
-
<i class="fa fa-times-circle fa-fw" id="search-cleaner"></i>
|
67
66
|
</span>
|
68
67
|
<span id="search-cancel" >{{ site.data.locales[lang].search.cancel }}</span>
|
69
68
|
</div>
|
@@ -34,3 +34,17 @@
|
|
34
34
|
{% endif %}
|
35
35
|
{% endfor %}
|
36
36
|
{% endfor %}
|
37
|
+
|
38
|
+
{% if trending_tags.size > 0 %}
|
39
|
+
<div id="access-tags">
|
40
|
+
<div class="panel-heading">{{- site.data.locales[lang].panel.trending_tags -}}</div>
|
41
|
+
<div class="d-flex flex-wrap mt-3 mb-1 mr-3">
|
42
|
+
|
43
|
+
{% for tag_name in trending_tags %}
|
44
|
+
{% assign url = tag_name | slugify | url_encode | prepend: "/tags/" | append: "/" %}
|
45
|
+
<a class="post-tag" href="{{ url | relative_url }}">{{ tag_name }}</a>
|
46
|
+
{% endfor %}
|
47
|
+
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
{% endif %}
|
data/_includes/update-list.html
CHANGED
@@ -22,3 +22,19 @@
|
|
22
22
|
{% for entry in all_list limit:MAX_SIZE %}
|
23
23
|
{% assign update_list = update_list | push: entry %}
|
24
24
|
{% endfor %}
|
25
|
+
|
26
|
+
{% if update_list.size > 0 %}
|
27
|
+
|
28
|
+
<div id="access-lastmod" class="post">
|
29
|
+
<div class="panel-heading">{{- site.data.locales[lang].panel.lastmod -}}</div>
|
30
|
+
<ul class="post-content pl-0 pb-1 ml-1 mt-2">
|
31
|
+
{% for item in update_list %}
|
32
|
+
{% assign index = item | split: "::" | last | plus: 0 %}
|
33
|
+
{% assign post = site.posts[index] %}
|
34
|
+
{% assign url = post.url | relative_url %}
|
35
|
+
<li><a href="{{ url }}">{{ post.title }}</a></li>
|
36
|
+
{% endfor %}
|
37
|
+
</ul>
|
38
|
+
</div> <!-- #access-lastmod -->
|
39
|
+
|
40
|
+
{% endif %}
|
data/_layouts/archives.html
CHANGED
@@ -3,8 +3,6 @@ layout: page
|
|
3
3
|
# The Archives of posts.
|
4
4
|
---
|
5
5
|
|
6
|
-
{% include lang.html %}
|
7
|
-
|
8
6
|
<div id="archives" class="pl-xl-2">
|
9
7
|
|
10
8
|
{% for post in site.posts %}
|
@@ -18,11 +16,11 @@ layout: page
|
|
18
16
|
{% endif %}
|
19
17
|
<li>
|
20
18
|
<div>
|
21
|
-
{%
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
19
|
+
{% assign ts = post.date | date: '%s' %}
|
20
|
+
<span class="date day" data-ts="{{ ts }}" data-df="DD">{{ post.date | date: "%d" }}</span>
|
21
|
+
<span class="date month small text-muted" data-ts="{{ ts }}" data-df="MMM">
|
22
|
+
{{ post.date | date: '%m' }}
|
23
|
+
</span>
|
26
24
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
27
25
|
</div>
|
28
26
|
</li>
|
data/_layouts/category.html
CHANGED
@@ -3,8 +3,6 @@ layout: page
|
|
3
3
|
# The Category layout
|
4
4
|
---
|
5
5
|
|
6
|
-
{% include lang.html %}
|
7
|
-
|
8
6
|
<div id="page-category">
|
9
7
|
<h1 class="pl-lg-2">
|
10
8
|
<i class="far fa-folder-open fa-fw text-muted"></i>
|
@@ -13,13 +11,13 @@ layout: page
|
|
13
11
|
</h1>
|
14
12
|
|
15
13
|
<ul class="post-content pl-0">
|
16
|
-
{% assign post_df = site.data.locales[lang].date_format.post.long %}
|
17
|
-
|
18
14
|
{% for post in page.posts %}
|
19
15
|
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
|
20
16
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
21
17
|
<span class="dash flex-grow-1"></span>
|
22
|
-
<span class="text-muted small"
|
18
|
+
<span class="text-muted small" data-ts="{{ post.date | date: '%s' }}" data-df="ll">
|
19
|
+
{{ post.date | date: '%Y-%m-%d' }}
|
20
|
+
</span>
|
23
21
|
</li>
|
24
22
|
{% endfor %}
|
25
23
|
</ul>
|
data/_layouts/default.html
CHANGED
@@ -7,17 +7,23 @@ layout: compress
|
|
7
7
|
|
8
8
|
{% include lang.html %}
|
9
9
|
|
10
|
+
{% include assets-origin.html %}
|
11
|
+
|
10
12
|
{% capture prefer_mode %}
|
11
13
|
{% if site.theme_mode %}
|
12
|
-
mode="{{ site.theme_mode }}"
|
14
|
+
data-mode="{{ site.theme_mode }}"
|
13
15
|
{% endif %}
|
14
16
|
{% endcapture %}
|
15
17
|
|
16
|
-
<html lang="{{ site.lang }}"
|
18
|
+
<html lang="{{ site.lang }}"{{ prefer_mode }}>
|
17
19
|
|
18
20
|
{% include head.html %}
|
19
21
|
|
20
|
-
|
22
|
+
{% unless site.theme_mode %}
|
23
|
+
{% include mode-toggle.html %}
|
24
|
+
{% endunless %}
|
25
|
+
|
26
|
+
<body data-spy="scroll" data-target="#toc" data-topbar-visible="true">
|
21
27
|
|
22
28
|
{% include sidebar.html %}
|
23
29
|
|
@@ -26,7 +32,7 @@ layout: compress
|
|
26
32
|
<div id="main-wrapper">
|
27
33
|
<div id="main">
|
28
34
|
|
29
|
-
{
|
35
|
+
{{ content }}
|
30
36
|
|
31
37
|
{% include footer.html %}
|
32
38
|
|
data/_layouts/home.html
CHANGED
@@ -6,7 +6,7 @@ layout: page
|
|
6
6
|
{% include lang.html %}
|
7
7
|
|
8
8
|
{% assign pinned = site.posts | where: "pin", "true" %}
|
9
|
-
{% assign default = site.posts | where_exp: "item", "item.pin != true" %}
|
9
|
+
{% assign default = site.posts | where_exp: "item", "item.pin != true and item.hidden != true" %}
|
10
10
|
|
11
11
|
{% assign posts = "" | split: "" %}
|
12
12
|
|
@@ -53,27 +53,30 @@ layout: page
|
|
53
53
|
<div class="post-content">
|
54
54
|
<p>
|
55
55
|
{% include no-linenos.html content=post.content %}
|
56
|
-
{{ content | markdownify | strip_html | truncate: 200 }}
|
56
|
+
{{ content | markdownify | strip_html | truncate: 200 | escape }}
|
57
57
|
</p>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<div class="post-meta text-muted d-flex
|
60
|
+
<div class="post-meta text-muted d-flex">
|
61
61
|
|
62
|
-
<div>
|
62
|
+
<div class="mr-auto">
|
63
63
|
<!-- posted date -->
|
64
64
|
<i class="far fa-calendar fa-fw"></i>
|
65
|
-
{% include timeago.html date=post.date tooltip=true %}
|
65
|
+
{% include timeago.html date=post.date tooltip=true capitalize=true %}
|
66
66
|
|
67
67
|
<!-- time to read -->
|
68
68
|
<i class="far fa-clock fa-fw"></i>
|
69
69
|
{% include read-time.html content=post.content %}
|
70
70
|
|
71
|
-
<!--
|
72
|
-
{% if
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
71
|
+
<!-- categories -->
|
72
|
+
{% if post.categories.size > 0 %}
|
73
|
+
<i class="far fa-folder-open fa-fw"></i>
|
74
|
+
<span>
|
75
|
+
{% for category in post.categories %}
|
76
|
+
{{ category }}
|
77
|
+
{%- unless forloop.last -%},{%- endunless -%}
|
78
|
+
{% endfor %}
|
79
|
+
</span>
|
77
80
|
{% endif %}
|
78
81
|
</div>
|
79
82
|
|
data/_layouts/page.html
CHANGED
@@ -1,41 +1,66 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
|
-
# The page layout
|
4
3
|
---
|
5
4
|
|
5
|
+
{% include lang.html %}
|
6
|
+
|
7
|
+
{% include assets-origin.html %}
|
8
|
+
|
6
9
|
<div class="row">
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
+
|
11
|
+
<!-- core -->
|
12
|
+
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-8">
|
13
|
+
<div class="post pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
|
14
|
+
|
15
|
+
{% capture _content %}
|
16
|
+
{% if layout.refactor or page.layout == 'page' %}
|
17
|
+
{% include refactor-content.html content=content %}
|
18
|
+
{% else %}
|
19
|
+
{{ content }}
|
20
|
+
{% endif %}
|
21
|
+
{% endcapture %}
|
22
|
+
|
23
|
+
{% if page.layout == 'page' or page.collection == 'tabs'%}
|
24
|
+
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
|
10
25
|
<h1 class="dynamic-title">
|
11
|
-
{
|
12
|
-
{%- capture tab_key -%}{{ page.url | split: '/' }}{%- endcapture -%}
|
13
|
-
{{- site.data.locales[lang].tabs[tab_key] | default: page.title -}}
|
14
|
-
{% else %}
|
15
|
-
{{- page.title -}}
|
16
|
-
{% endif %}
|
26
|
+
{{ title }}
|
17
27
|
</h1>
|
18
28
|
<div class="post-content">
|
19
|
-
{{
|
29
|
+
{{ _content }}
|
20
30
|
</div>
|
21
31
|
{% else %}
|
22
|
-
{{
|
32
|
+
{{ _content }}
|
23
33
|
{% endif %}
|
24
|
-
</div> <!-- #page -->
|
25
|
-
</div><!-- .col-12 -->
|
26
34
|
|
27
|
-
|
35
|
+
</div>
|
36
|
+
</div> <!-- #core-wrapper -->
|
37
|
+
|
38
|
+
<!-- pannel -->
|
39
|
+
<div id="panel-wrapper" class="col-xl-3 pl-2 text-muted">
|
40
|
+
|
41
|
+
<div class="access">
|
42
|
+
{% include update-list.html %}
|
43
|
+
{% include trending-tags.html %}
|
44
|
+
</div>
|
45
|
+
|
46
|
+
{% for _include in layout.pannel_includes %}
|
47
|
+
{% assign _include_path = _include | append: '.html' %}
|
48
|
+
{% include {{ _include_path }} %}
|
49
|
+
{% endfor %}
|
50
|
+
</div>
|
28
51
|
|
29
52
|
</div>
|
30
53
|
|
31
|
-
|
54
|
+
<!-- tail -->
|
55
|
+
{% if layout.tail_includes %}
|
32
56
|
<div class="row">
|
33
57
|
<div class="col-12 col-lg-11 col-xl-8">
|
34
|
-
<div class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
58
|
+
<div id="tail-wrapper" class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
|
59
|
+
{% for _include in layout.tail_includes %}
|
60
|
+
{% assign _include_path = _include | append: '.html' %}
|
61
|
+
{% include {{ _include_path }} %}
|
62
|
+
{% endfor %}
|
63
|
+
</div>
|
64
|
+
</div>
|
40
65
|
</div> <!-- .row -->
|
41
66
|
{% endif %}
|
data/_layouts/post.html
CHANGED
@@ -1,143 +1,144 @@
|
|
1
1
|
---
|
2
|
-
layout:
|
3
|
-
|
2
|
+
layout: page
|
3
|
+
refactor: true
|
4
|
+
pannel_includes:
|
5
|
+
- toc
|
6
|
+
tail_includes:
|
7
|
+
- related-posts
|
8
|
+
- post-nav
|
9
|
+
- comments
|
4
10
|
---
|
5
11
|
|
6
12
|
{% include lang.html %}
|
7
13
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<i class="fas fa-spinner fa-spin fa-fw"></i>
|
42
|
-
</span>
|
43
|
-
{{ site.data.locales[lang].post.pageview_measure }}
|
44
|
-
{% endif %}
|
45
|
-
|
46
|
-
</div>
|
47
|
-
|
48
|
-
</div> <!-- .post-meta -->
|
49
|
-
|
50
|
-
<div class="post-content">
|
51
|
-
|
52
|
-
{% if page.image.src %}
|
53
|
-
<img src="{{ page.image.src }}"
|
54
|
-
class="preview-img"
|
55
|
-
alt="{{ page.image.alt | default: "Preview Image" }}"
|
56
|
-
{% if page.image.width %}width="{{ page.image.width }}"{% endif %}
|
57
|
-
{% if page.image.height %}height="{{ page.image.height }}"{% endif %}>
|
58
|
-
{% endif %}
|
59
|
-
|
60
|
-
{{ content }}
|
61
|
-
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<div class="post-tail-wrapper text-muted">
|
65
|
-
|
66
|
-
<!-- categories -->
|
67
|
-
{% if page.categories.size > 0 %}
|
68
|
-
|
69
|
-
<div class="post-meta mb-3">
|
70
|
-
<i class="far fa-folder-open fa-fw mr-1"></i>
|
71
|
-
{% for category in page.categories %}
|
72
|
-
<a href='{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/'>{{ category }}</a>
|
73
|
-
{%- unless forloop.last -%}, {%- endunless -%}
|
74
|
-
{% endfor %}
|
75
|
-
</div>
|
76
|
-
{% endif %}
|
77
|
-
|
78
|
-
<!-- tags -->
|
79
|
-
{% if page.tags.size > 0 %}
|
80
|
-
<div class="post-tags">
|
81
|
-
<i class="fa fa-tags fa-fw mr-1"></i>
|
82
|
-
{% for tag in page.tags %}
|
83
|
-
<a href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
|
84
|
-
class="post-tag no-text-decoration" >
|
85
|
-
{{- tag -}}
|
86
|
-
</a>
|
87
|
-
{% endfor %}
|
88
|
-
</div>
|
89
|
-
{% endif %}
|
90
|
-
|
91
|
-
<div class="post-tail-bottom
|
92
|
-
d-flex justify-content-between align-items-center mt-3 pt-5 pb-2">
|
93
|
-
<div class="license-wrapper">
|
94
|
-
{% if site.data.locales[lang].copyright.license.template %}
|
95
|
-
{% capture _replacement %}
|
96
|
-
<a href="{{ site.data.locales[lang].copyright.license.link }}">
|
97
|
-
{{ site.data.locales[lang].copyright.license.name }}
|
98
|
-
</a>
|
99
|
-
{% endcapture %}
|
100
|
-
{{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
101
|
-
{% endif %}
|
102
|
-
</div>
|
103
|
-
|
104
|
-
{% include post-sharing.html %}
|
105
|
-
|
106
|
-
</div><!-- .post-tail-bottom -->
|
107
|
-
|
108
|
-
</div><!-- div.post-tail -->
|
109
|
-
|
110
|
-
</div> <!-- .post -->
|
111
|
-
|
112
|
-
|
113
|
-
</div> <!-- #post-wrapper -->
|
114
|
-
|
115
|
-
{% assign enable_toc = false %}
|
116
|
-
|
117
|
-
{% if site.toc and page.toc %}
|
118
|
-
{% if content contains '<h2' or content contains '<h3' %}
|
119
|
-
{% assign enable_toc = true %}
|
14
|
+
{% if page.image.src %}
|
15
|
+
{% capture bg %}
|
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 %}
|
42
|
+
|
43
|
+
{% if page.author.link %}
|
44
|
+
{% assign author_link = page.author.link %}
|
45
|
+
{% elsif author_name == site.social.name %}
|
46
|
+
{% assign author_link = site.social.links[0] %}
|
120
47
|
{% endif %}
|
48
|
+
|
49
|
+
{{ site.data.locales[lang].post.written_by }}
|
50
|
+
<em>
|
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 %}
|
69
|
+
<span>
|
70
|
+
{{ site.data.locales[lang].post.updated }}
|
71
|
+
{% include timeago.html date=page.last_modified_at tooltip=true %}
|
72
|
+
</span>
|
73
|
+
{% endif %}
|
74
|
+
|
75
|
+
<!-- read time -->
|
76
|
+
{% include read-time.html content=content prompt=true %}
|
77
|
+
|
78
|
+
<!-- page views -->
|
79
|
+
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
|
80
|
+
<span>
|
81
|
+
<em id="pv" class="pageviews">
|
82
|
+
<i class="fas fa-spinner fa-spin fa-fw"></i>
|
83
|
+
</em>
|
84
|
+
{{ site.data.locales[lang].post.pageview_measure }}
|
85
|
+
</span>
|
86
|
+
{% endif %}
|
87
|
+
</div>
|
88
|
+
|
89
|
+
</div> <!-- .d-flex -->
|
90
|
+
|
91
|
+
</div> <!-- .post-meta -->
|
92
|
+
|
93
|
+
<div class="post-content">
|
94
|
+
{{ content }}
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div class="post-tail-wrapper text-muted">
|
98
|
+
|
99
|
+
<!-- categories -->
|
100
|
+
{% if page.categories.size > 0 %}
|
101
|
+
<div class="post-meta mb-3">
|
102
|
+
<i class="far fa-folder-open fa-fw mr-1"></i>
|
103
|
+
{% for category in page.categories %}
|
104
|
+
<a href='{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/'>{{ category }}</a>
|
105
|
+
{%- unless forloop.last -%}, {%- endunless -%}
|
106
|
+
{% endfor %}
|
107
|
+
</div>
|
121
108
|
{% endif %}
|
122
109
|
|
123
|
-
|
110
|
+
<!-- tags -->
|
111
|
+
{% if page.tags.size > 0 %}
|
112
|
+
<div class="post-tags">
|
113
|
+
<i class="fa fa-tags fa-fw mr-1"></i>
|
114
|
+
{% for tag in page.tags %}
|
115
|
+
<a href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
|
116
|
+
class="post-tag no-text-decoration" >
|
117
|
+
{{- tag -}}
|
118
|
+
</a>
|
119
|
+
{% endfor %}
|
120
|
+
</div>
|
121
|
+
{% endif %}
|
124
122
|
|
125
|
-
|
123
|
+
<div class="post-tail-bottom
|
124
|
+
d-flex justify-content-between align-items-center mt-3 pt-5 pb-2">
|
125
|
+
<div class="license-wrapper">
|
126
126
|
|
127
|
-
|
128
|
-
<div class="col-12 col-lg-11 col-xl-8">
|
129
|
-
<div id="post-extend-wrapper" class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
|
127
|
+
{% if site.data.locales[lang].copyright.license.template %}
|
130
128
|
|
131
|
-
|
129
|
+
{% capture _replacement %}
|
130
|
+
<a href="{{ site.data.locales[lang].copyright.license.link }}">
|
131
|
+
{{ site.data.locales[lang].copyright.license.name }}
|
132
|
+
</a>
|
133
|
+
{% endcapture %}
|
132
134
|
|
133
|
-
|
135
|
+
{{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
134
136
|
|
135
|
-
|
136
|
-
|
137
|
-
{% endif %}
|
137
|
+
{% endif %}
|
138
|
+
</div>
|
138
139
|
|
139
|
-
|
140
|
+
{% include post-sharing.html %}
|
140
141
|
|
141
|
-
</div
|
142
|
+
</div><!-- .post-tail-bottom -->
|
142
143
|
|
143
|
-
</div
|
144
|
+
</div><!-- div.post-tail-wrapper -->
|
data/_layouts/tag.html
CHANGED
@@ -3,8 +3,6 @@ layout: page
|
|
3
3
|
# The layout for Tag page
|
4
4
|
---
|
5
5
|
|
6
|
-
{% include lang.html %}
|
7
|
-
|
8
6
|
<div id="page-tag">
|
9
7
|
<h1 class="pl-lg-2">
|
10
8
|
<i class="fa fa-tag fa-fw text-muted"></i>
|
@@ -12,13 +10,13 @@ layout: page
|
|
12
10
|
<span class="lead text-muted pl-2">{{ page.posts | size }}</span>
|
13
11
|
</h1>
|
14
12
|
<ul class="post-content pl-0">
|
15
|
-
{% assign post_df = site.data.locales[lang].date_format.post.long %}
|
16
|
-
|
17
13
|
{% for post in page.posts %}
|
18
14
|
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
|
19
15
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
20
16
|
<span class="dash flex-grow-1"></span>
|
21
|
-
<span class="text-muted small"
|
17
|
+
<span class="text-muted small" data-ts="{{ post.date | date: '%s' }}" data-df="ll">
|
18
|
+
{{ post.date | date: '%Y-%m-%d' }}
|
19
|
+
</span>
|
22
20
|
</li>
|
23
21
|
{% endfor %}
|
24
22
|
</ul>
|