jekyll-theme-chirpy 6.1.0 → 6.2.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 +24 -23
- data/_data/locales/tr-TR.yml +4 -4
- data/_data/origin/cors.yml +11 -11
- data/_includes/comments/disqus.html +2 -1
- data/_includes/datetime.html +5 -4
- data/_includes/footer.html +30 -28
- data/_includes/head.html +1 -1
- data/_includes/notification.html +24 -0
- data/_includes/post-nav.html +9 -12
- data/_includes/post-paginator.html +77 -75
- data/_includes/post-sharing.html +6 -4
- data/_includes/related-posts.html +31 -39
- data/_includes/search-loader.html +10 -8
- data/_includes/search-results.html +1 -1
- data/_includes/sidebar.html +63 -60
- data/_includes/toc.html +3 -3
- data/_includes/topbar.html +17 -10
- data/_includes/trending-tags.html +3 -3
- data/_includes/update-list.html +4 -4
- data/_layouts/archives.html +18 -19
- data/_layouts/category.html +2 -2
- data/_layouts/default.html +51 -32
- data/_layouts/home.html +12 -11
- data/_layouts/page.html +21 -63
- data/_layouts/post.html +72 -70
- data/_layouts/tag.html +2 -2
- data/_sass/addon/commons.scss +118 -149
- data/_sass/addon/module.scss +12 -3
- data/_sass/addon/syntax.scss +51 -29
- data/_sass/addon/variables.scss +10 -5
- data/_sass/colors/syntax-dark.scss +138 -0
- data/_sass/colors/syntax-light.scss +179 -0
- data/_sass/colors/{dark-typography.scss → typography-dark.scss} +18 -19
- data/_sass/colors/{light-typography.scss → typography-light.scss} +17 -16
- data/_sass/layout/category-tag.scss +0 -5
- data/_sass/layout/home.scss +18 -35
- data/_sass/layout/post.scss +46 -51
- data/_sass/{jekyll-theme-chirpy.scss → main.scss} +2 -8
- data/assets/404.html +1 -3
- data/assets/css/{style.scss → jekyll-theme-chirpy.scss} +1 -1
- data/assets/js/dist/categories.min.js +2 -4
- data/assets/js/dist/commons.min.js +2 -4
- data/assets/js/dist/home.min.js +2 -4
- data/assets/js/dist/misc.min.js +2 -4
- data/assets/js/dist/page.min.js +2 -4
- data/assets/js/dist/post.min.js +2 -4
- metadata +9 -11
- data/_data/authors.yml +0 -17
- data/_data/contact.yml +0 -28
- data/_data/share.yml +0 -25
- data/_sass/colors/dark-syntax.scss +0 -91
- data/_sass/colors/light-syntax.scss +0 -83
data/_layouts/page.html
CHANGED
@@ -2,67 +2,25 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
{%
|
6
|
-
{%
|
7
|
-
|
8
|
-
{%
|
9
|
-
|
10
|
-
{% endif %}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
{%
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
{
|
22
|
-
{% include refactor-content.html content=content lang=lang %}
|
23
|
-
{% else %}
|
24
|
-
{{ content }}
|
25
|
-
{% endif %}
|
26
|
-
{% endcapture %}
|
27
|
-
|
28
|
-
{% if page.layout == 'page' or page.collection == 'tabs' %}
|
29
|
-
{% assign tab_key = page.title | downcase %}
|
30
|
-
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
|
31
|
-
<h1 class="dynamic-title">
|
32
|
-
{{ title }}
|
33
|
-
</h1>
|
34
|
-
<div class="post-content">
|
35
|
-
{{ _content }}
|
36
|
-
</div>
|
37
|
-
{% else %}
|
38
|
-
{{ _content }}
|
39
|
-
{% endif %}
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
<!-- #core-wrapper -->
|
43
|
-
|
44
|
-
<!-- panel -->
|
45
|
-
<div id="panel-wrapper" class="col-xl-3 ps-2 text-muted">
|
46
|
-
<div class="access">
|
47
|
-
{% include_cached update-list.html lang=lang %}
|
48
|
-
{% include_cached trending-tags.html lang=lang %}
|
49
|
-
</div>
|
50
|
-
|
51
|
-
{% for _include in layout.panel_includes %}
|
52
|
-
{% assign _include_path = _include | append: '.html' %}
|
53
|
-
{% include {{ _include_path }} lang=lang %}
|
54
|
-
{% endfor %}
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
|
58
|
-
<!-- tail -->
|
59
|
-
{% if has_tail %}
|
60
|
-
<div class="row">
|
61
|
-
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
|
62
|
-
{% for _include in layout.tail_includes %}
|
63
|
-
{% assign _include_path = _include | append: '.html' %}
|
64
|
-
{% include {{ _include_path }} lang=lang %}
|
65
|
-
{% endfor %}
|
5
|
+
{% capture _content %}
|
6
|
+
{% if layout.refactor or page.layout == 'page' %}
|
7
|
+
{% include refactor-content.html content=content lang=lang %}
|
8
|
+
{% else %}
|
9
|
+
{{ content }}
|
10
|
+
{% endif %}
|
11
|
+
{% endcapture %}
|
12
|
+
|
13
|
+
<article class="px-1">
|
14
|
+
{% if page.layout == 'page' or page.collection == 'tabs' %}
|
15
|
+
{% assign tab_key = page.title | downcase %}
|
16
|
+
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
|
17
|
+
<h1 class="dynamic-title">
|
18
|
+
{{ title }}
|
19
|
+
</h1>
|
20
|
+
<div class="content">
|
21
|
+
{{ _content }}
|
66
22
|
</div>
|
67
|
-
|
68
|
-
{
|
23
|
+
{% else %}
|
24
|
+
{{ _content }}
|
25
|
+
{% endif %}
|
26
|
+
</article>
|
data/_layouts/post.html
CHANGED
@@ -11,9 +11,10 @@ tail_includes:
|
|
11
11
|
|
12
12
|
{% include lang.html %}
|
13
13
|
|
14
|
-
<
|
14
|
+
<header>
|
15
|
+
<h1 data-toc-skip>{{ page.title }}</h1>
|
15
16
|
|
16
|
-
<div class="post-meta text-muted">
|
17
|
+
<div class="post-meta text-muted">
|
17
18
|
<!-- published date -->
|
18
19
|
<span>
|
19
20
|
{{ site.data.locales[lang].post.posted }}
|
@@ -22,99 +23,101 @@ tail_includes:
|
|
22
23
|
|
23
24
|
<!-- lastmod date -->
|
24
25
|
{% if page.last_modified_at and page.last_modified_at != page.date %}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
<span>
|
27
|
+
{{ site.data.locales[lang].post.updated }}
|
28
|
+
{% include datetime.html date=page.last_modified_at tooltip=true lang=lang %}
|
29
|
+
</span>
|
29
30
|
{% endif %}
|
30
31
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
{% if page.image %}
|
33
|
+
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
|
34
|
+
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
|
35
|
+
{% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %}
|
35
36
|
|
36
|
-
|
37
|
+
{% capture lqip %}
|
37
38
|
{% if page.image.lqip %}
|
38
39
|
lqip="{{ page.image.lqip }}"
|
39
40
|
{% endif %}
|
40
41
|
{% endcapture %}
|
41
42
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
<div class="d-flex justify-content-between">
|
51
|
-
<!-- author(s) -->
|
52
|
-
<span>
|
53
|
-
{% if page.author %}
|
54
|
-
{% assign authors = page.author %}
|
55
|
-
{% elsif page.authors %}
|
56
|
-
{% assign authors = page.authors %}
|
57
|
-
{% endif %}
|
58
|
-
|
59
|
-
{{ site.data.locales[lang].post.written_by }}
|
43
|
+
<div class="mt-3 mb-3">
|
44
|
+
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip | strip }}>
|
45
|
+
{%- if page.image.alt -%}
|
46
|
+
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
|
47
|
+
{%- endif -%}
|
48
|
+
</div>
|
49
|
+
{% endif %}
|
60
50
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
{%
|
66
|
-
{%
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
51
|
+
<div class="d-flex justify-content-between">
|
52
|
+
<!-- author(s) -->
|
53
|
+
<span>
|
54
|
+
{% if page.author %}
|
55
|
+
{% assign authors = page.author %}
|
56
|
+
{% elsif page.authors %}
|
57
|
+
{% assign authors = page.authors %}
|
58
|
+
{% endif %}
|
59
|
+
|
60
|
+
{{ site.data.locales[lang].post.written_by }}
|
61
|
+
|
62
|
+
<em>
|
63
|
+
{% if authors %}
|
64
|
+
{% for author in authors %}
|
65
|
+
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
|
66
|
+
{% unless forloop.last %}{{ '</em>, <em>' }}{% endunless %}
|
67
|
+
{% endfor %}
|
68
|
+
{% else %}
|
69
|
+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
|
70
|
+
{% endif %}
|
71
|
+
</em>
|
72
|
+
</span>
|
72
73
|
|
73
|
-
<div>
|
74
74
|
<!-- read time -->
|
75
75
|
{% include read-time.html content=content prompt=true lang=lang %}
|
76
76
|
</div>
|
77
|
+
<!-- .d-flex -->
|
78
|
+
</div>
|
79
|
+
<!-- .post-meta -->
|
80
|
+
</header>
|
77
81
|
|
78
|
-
|
79
|
-
|
80
|
-
</div> <!-- .post-meta -->
|
81
|
-
|
82
|
-
<div class="post-content">
|
82
|
+
<div class="content">
|
83
83
|
{{ content }}
|
84
84
|
</div>
|
85
85
|
|
86
86
|
<div class="post-tail-wrapper text-muted">
|
87
|
-
|
88
87
|
<!-- categories -->
|
89
88
|
{% if page.categories.size > 0 %}
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
89
|
+
<div class="post-meta mb-3">
|
90
|
+
<i class="far fa-folder-open fa-fw me-1"></i>
|
91
|
+
{% for category in page.categories %}
|
92
|
+
<a href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/">{{ category }}</a>
|
93
|
+
{%- unless forloop.last -%},{%- endunless -%}
|
94
|
+
{% endfor %}
|
95
|
+
</div>
|
97
96
|
{% endif %}
|
98
97
|
|
99
98
|
<!-- tags -->
|
100
99
|
{% if page.tags.size > 0 %}
|
101
|
-
|
102
|
-
|
100
|
+
<div class="post-tags">
|
101
|
+
<i class="fa fa-tags fa-fw me-1"></i>
|
103
102
|
{% for tag in page.tags %}
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
103
|
+
<a
|
104
|
+
href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
|
105
|
+
class="post-tag no-text-decoration"
|
106
|
+
>
|
107
|
+
{{- tag -}}
|
108
|
+
</a>
|
108
109
|
{% endfor %}
|
109
|
-
|
110
|
+
</div>
|
110
111
|
{% endif %}
|
111
112
|
|
112
|
-
<div
|
113
|
-
|
113
|
+
<div
|
114
|
+
class="
|
115
|
+
post-tail-bottom
|
116
|
+
d-flex justify-content-between align-items-center mt-5 pb-2
|
117
|
+
"
|
118
|
+
>
|
114
119
|
<div class="license-wrapper">
|
115
|
-
|
116
120
|
{% if site.data.locales[lang].copyright.license.template %}
|
117
|
-
|
118
121
|
{% capture _replacement %}
|
119
122
|
<a href="{{ site.data.locales[lang].copyright.license.link }}">
|
120
123
|
{{ site.data.locales[lang].copyright.license.name }}
|
@@ -122,12 +125,11 @@ tail_includes:
|
|
122
125
|
{% endcapture %}
|
123
126
|
|
124
127
|
{{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
125
|
-
|
126
128
|
{% endif %}
|
127
129
|
</div>
|
128
130
|
|
129
131
|
{% include post-sharing.html lang=lang %}
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
132
|
+
</div>
|
133
|
+
<!-- .post-tail-bottom -->
|
134
|
+
</div>
|
135
|
+
<!-- div.post-tail-wrapper -->
|
data/_layouts/tag.html
CHANGED
@@ -11,12 +11,12 @@ layout: page
|
|
11
11
|
{{ page.title }}
|
12
12
|
<span class="lead text-muted ps-2">{{ page.posts | size }}</span>
|
13
13
|
</h1>
|
14
|
-
<ul class="
|
14
|
+
<ul class="content ps-0">
|
15
15
|
{% for post in page.posts %}
|
16
16
|
<li class="d-flex justify-content-between px-md-3">
|
17
17
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
18
18
|
<span class="dash flex-grow-1"></span>
|
19
|
-
{% include datetime.html date=post.date
|
19
|
+
{% include datetime.html date=post.date class='text-muted small text-nowrap' lang=lang %}
|
20
20
|
</li>
|
21
21
|
{% endfor %}
|
22
22
|
</ul>
|