jekyll-theme-chirpy 6.1.0 → 6.2.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 +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/data/swcache.js +32 -33
- 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
- data/assets/js/pwa/sw.js +56 -57
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec5c80e235d59a9659d4d3da68a036d69f487423dbf80813721325914a10f089
|
4
|
+
data.tar.gz: f84a46ef96f149651bb1b2670e932d8fe42ff18c229cfb3a150d02a6c51741ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05246b7253bda76af30ebfbe83e22595ba441fffac48c954827488f1db4d1f71483f1fe651b7d5e74df23bfed011d4d5aab8d25c28de720084196ddc48a54807
|
7
|
+
data.tar.gz: d925105924b9f2beb7545cee059700556acc0f7ca79f3317189cdf016ae79aad043a52685313556c9f3ca9ee36066df3ff50b50fcbce5b560705c5ee12657841
|
data/README.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
A minimal, responsive and feature-rich Jekyll theme for technical writing.
|
6
6
|
|
7
|
-
[]
|
8
|
-
[]
|
9
|
-
[]
|
10
|
-
[]
|
7
|
+
[][gem]
|
8
|
+
[][ci]
|
9
|
+
[][codacy]
|
10
|
+
[][license]
|
11
11
|
[](https://996.icu)
|
12
12
|
|
13
13
|
[**Live Demo →**][demo]
|
@@ -26,19 +26,20 @@
|
|
26
26
|
|
27
27
|
- Dark / Light Theme Mode
|
28
28
|
- Localized UI language
|
29
|
-
- Pinned Posts
|
29
|
+
- Pinned Posts on Home Page
|
30
30
|
- Hierarchical Categories
|
31
31
|
- Trending Tags
|
32
32
|
- Table of Contents
|
33
|
-
- Last Modified Date
|
33
|
+
- Last Modified Date
|
34
34
|
- Syntax Highlighting
|
35
35
|
- Mathematical Expressions
|
36
|
-
- Mermaid
|
36
|
+
- Mermaid Diagrams & Flowcharts
|
37
37
|
- Dark / Light Mode Images
|
38
38
|
- Embed Videos
|
39
39
|
- Disqus / Utterances / Giscus Comments
|
40
|
-
- Search
|
40
|
+
- Built-in Search
|
41
41
|
- Atom Feeds
|
42
|
+
- PWA
|
42
43
|
- Google Analytics
|
43
44
|
- SEO & Performance Optimization
|
44
45
|
|
@@ -47,13 +48,11 @@
|
|
47
48
|
|
48
49
|
## Documentation
|
49
50
|
|
50
|
-
To explore usage, development, and upgrade guide of the project, please refer to
|
51
|
-
the [Wiki][wiki].
|
51
|
+
To explore usage, development, and upgrade guide of the project, please refer to the [**Wiki**][wiki].
|
52
52
|
|
53
53
|
## Contributing
|
54
54
|
|
55
|
-
|
56
|
-
For more information, please see the ["Contributing Guidelines"][contribute-guide].
|
55
|
+
Contributions (Issues/PRs/Discussions) are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. For details, see the "[Contributing Guidelines][contribute-guide]".
|
57
56
|
|
58
57
|
## Credits
|
59
58
|
|
@@ -61,34 +60,36 @@ This theme is mainly built with [Jekyll][jekyllrb] ecosystem,
|
|
61
60
|
[Bootstrap][bootstrap], [Font Awesome][icons] and some other [wonderful tools][lib].
|
62
61
|
The avatar and favicon design come from [Clipart Max][image].
|
63
62
|
|
64
|
-
|
65
|
-
|
66
|
-
or inspired me to write more readable documentation.
|
63
|
+
Many thanks to the [contributors][contributors] who participated in the development
|
64
|
+
and to the folks who reported bugs or shared ideas.
|
67
65
|
|
68
|
-
Last but not least, thanks to [JetBrains][jetbrains] for providing the
|
69
|
-
_Open Source Development_ license.
|
66
|
+
Last but not least, thanks to [JetBrains][jetbrains] for providing the _Open Source License_.
|
70
67
|
|
71
68
|
## Sponsoring
|
72
69
|
|
73
70
|
If you'd like to sponsor this project, the following options are available.
|
74
71
|
|
75
|
-
[][ko-fi]
|
73
|
+
[][donation]
|
74
|
+
[][donation]
|
78
75
|
|
79
76
|
## License
|
80
77
|
|
81
|
-
This work is published under [MIT][
|
78
|
+
This work is published under [MIT License][license].
|
82
79
|
|
80
|
+
[gem]: https://rubygems.org/gems/jekyll-theme-chirpy
|
81
|
+
[ci]: https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster
|
82
|
+
[codacy]: https://app.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
|
83
|
+
[license]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE
|
83
84
|
[jekyllrb]: https://jekyllrb.com/
|
84
85
|
[bootstrap]: https://getbootstrap.com/
|
85
86
|
[icons]: https://fontawesome.com/
|
86
87
|
[image]: https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/
|
87
88
|
[demo]: https://cotes2020.github.io/chirpy-demo/
|
88
89
|
[wiki]: https://github.com/cotes2020/jekyll-theme-chirpy/wiki
|
89
|
-
[contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master
|
90
|
+
[contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md
|
90
91
|
[contributors]: https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors
|
91
92
|
[lib]: https://github.com/cotes2020/chirpy-static-assets
|
92
93
|
[jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
|
94
|
+
[ko-fi]: https://ko-fi.com/coteschung/
|
93
95
|
[donation]: https://sponsor.cotes.page/
|
94
|
-
[mit]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE
|
data/_data/locales/tr-TR.yml
CHANGED
@@ -23,7 +23,7 @@ search:
|
|
23
23
|
no_results: Hop! Öyle bir şey bulamadım.
|
24
24
|
|
25
25
|
panel:
|
26
|
-
lastmod:
|
26
|
+
lastmod: Son Güncellenenler
|
27
27
|
trending_tags: Yükselen Etiketler
|
28
28
|
toc: İçindekiler
|
29
29
|
|
@@ -38,7 +38,7 @@ copyright:
|
|
38
38
|
brief: Bazı hakları saklıdır.
|
39
39
|
verbose: >-
|
40
40
|
Aksi belirtilmediği sürece, bu sitedeki gönderiler Creative Commons Atıf 4.0 Uluslararası (CC BY 4.0) Lisansı altındadır.
|
41
|
-
Kısaca sayfa linkini
|
41
|
+
Kısaca sayfa linkini vererek değiştirebilir / paylaşabilirsiniz.
|
42
42
|
|
43
43
|
meta: :PLATFORM ve :THEME teması
|
44
44
|
|
@@ -53,8 +53,8 @@ notification:
|
|
53
53
|
|
54
54
|
post:
|
55
55
|
written_by: Yazan
|
56
|
-
posted:
|
57
|
-
updated:
|
56
|
+
posted: Gönderim
|
57
|
+
updated: Güncelleme
|
58
58
|
words: sözcük
|
59
59
|
pageview_measure: görüntülenme
|
60
60
|
read_time:
|
data/_data/origin/cors.yml
CHANGED
@@ -16,31 +16,31 @@ webfonts: https://fonts.googleapis.com/css2?family=Lato&family=Source+Sans+Pro:w
|
|
16
16
|
# Libraries
|
17
17
|
|
18
18
|
jquery:
|
19
|
-
js: https://cdn.jsdelivr.net/npm/jquery@3.7.
|
19
|
+
js: https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js
|
20
20
|
|
21
21
|
bootstrap:
|
22
|
-
css: https://cdn.jsdelivr.net/npm/bootstrap@5.
|
23
|
-
js: https://cdn.jsdelivr.net/npm/bootstrap@5.
|
22
|
+
css: https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css
|
23
|
+
js: https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js
|
24
24
|
|
25
25
|
toc:
|
26
|
-
css: https://cdn.jsdelivr.net/npm/tocbot@4.21.
|
27
|
-
js: https://cdn.jsdelivr.net/npm/tocbot@4.21.
|
26
|
+
css: https://cdn.jsdelivr.net/npm/tocbot@4.21.1/dist/tocbot.min.css
|
27
|
+
js: https://cdn.jsdelivr.net/npm/tocbot@4.21.1/dist/tocbot.min.js
|
28
28
|
|
29
29
|
fontawesome:
|
30
|
-
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.
|
30
|
+
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css
|
31
31
|
|
32
32
|
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@10.4.0/dist/mermaid.min.js
|
37
37
|
|
38
38
|
dayjs:
|
39
39
|
js:
|
40
|
-
common: https://cdn.jsdelivr.net/npm/dayjs@1.11.
|
41
|
-
locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.
|
42
|
-
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.
|
43
|
-
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.
|
40
|
+
common: https://cdn.jsdelivr.net/npm/dayjs@1.11.9/dayjs.min.js
|
41
|
+
locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.9/locale/:LOCALE.min.js
|
42
|
+
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.9/plugin/relativeTime.min.js
|
43
|
+
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.9/plugin/localizedFormat.min.js
|
44
44
|
|
45
45
|
magnific-popup:
|
46
46
|
css: https://cdn.jsdelivr.net/npm/magnific-popup@1.1.0/dist/magnific-popup.min.css
|
data/_includes/datetime.html
CHANGED
@@ -3,12 +3,13 @@
|
|
3
3
|
See: ${JS_ROOT}/utils/locale-dateime.js
|
4
4
|
-->
|
5
5
|
|
6
|
-
{% assign wrap_elem = include.wrap | default: 'em' %}
|
7
6
|
{% assign df_strftime = site.data.locales[include.lang].df.post.strftime | default: '%d/%m/%Y' %}
|
8
7
|
{% assign df_dayjs = site.data.locales[include.lang].df.post.dayjs | default: 'DD/MM/YYYY' %}
|
9
8
|
|
10
|
-
<
|
11
|
-
|
9
|
+
<time
|
10
|
+
{% if include.class %}
|
11
|
+
class="{{ include.class }}"
|
12
|
+
{% endif %}
|
12
13
|
data-ts="{{ include.date | date: '%s' }}"
|
13
14
|
data-df="{{ df_dayjs }}"
|
14
15
|
{% if include.tooltip %}
|
@@ -16,4 +17,4 @@
|
|
16
17
|
{% endif %}
|
17
18
|
>
|
18
19
|
{{ include.date | date: df_strftime }}
|
19
|
-
</
|
20
|
+
</time>
|
data/_includes/footer.html
CHANGED
@@ -1,34 +1,36 @@
|
|
1
1
|
<!-- The Footer -->
|
2
2
|
|
3
|
-
<footer
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
<footer
|
4
|
+
aria-label="Site Info"
|
5
|
+
class="
|
6
|
+
d-flex flex-column justify-content-center text-muted
|
7
|
+
flex-lg-row justify-content-lg-between align-items-lg-center pb-lg-3
|
8
|
+
"
|
9
|
+
>
|
10
|
+
<p>
|
11
|
+
{{ '©' }}
|
12
|
+
<time>{{ 'now' | date: '%Y' }}</time>
|
13
|
+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
|
14
|
+
{% if site.data.locales[include.lang].copyright.brief %}
|
15
|
+
<span
|
16
|
+
data-bs-toggle="tooltip"
|
17
|
+
data-bs-placement="top"
|
18
|
+
title="{{ site.data.locales[include.lang].copyright.verbose }}"
|
19
|
+
>
|
20
|
+
{{- site.data.locales[include.lang].copyright.brief -}}
|
21
|
+
</span>
|
22
|
+
{% endif %}
|
23
|
+
</p>
|
10
24
|
|
11
|
-
|
12
|
-
|
13
|
-
|
25
|
+
<p>
|
26
|
+
{%- capture _platform -%}
|
27
|
+
<a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
|
28
|
+
{%- endcapture -%}
|
14
29
|
|
15
|
-
|
16
|
-
</
|
30
|
+
{%- capture _theme -%}
|
31
|
+
<a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a>
|
32
|
+
{%- endcapture -%}
|
17
33
|
|
18
|
-
|
19
|
-
|
20
|
-
{{ 'now' | date: '%Y' }}
|
21
|
-
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
|
22
|
-
{% if site.data.locales[include.lang].copyright.brief %}
|
23
|
-
<span
|
24
|
-
data-bs-toggle="tooltip"
|
25
|
-
data-bs-placement="top"
|
26
|
-
title="{{ site.data.locales[include.lang].copyright.verbose }}"
|
27
|
-
>
|
28
|
-
{{- site.data.locales[include.lang].copyright.brief -}}
|
29
|
-
</span>
|
30
|
-
{% endif %}
|
31
|
-
</p>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
+
{{ site.data.locales[include.lang].meta | replace: ':PLATFORM', _platform | replace: ':THEME', _theme }}
|
35
|
+
</p>
|
34
36
|
</footer>
|
data/_includes/head.html
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
<!-- Font Awesome -->
|
75
75
|
<link rel="stylesheet" href="{{ site.data.origin[type].fontawesome.css | relative_url }}">
|
76
76
|
|
77
|
-
<link rel="stylesheet" href="{{ '/assets/css
|
77
|
+
<link rel="stylesheet" href="{{ '/assets/css/:THEME.css' | replace: ':THEME', site.theme | relative_url }}">
|
78
78
|
|
79
79
|
{% if site.toc and page.toc %}
|
80
80
|
<link rel="stylesheet" href="{{ site.data.origin[type].toc.css | relative_url }}">
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<aside
|
2
|
+
id="notification"
|
3
|
+
class="toast"
|
4
|
+
role="alert"
|
5
|
+
aria-live="assertive"
|
6
|
+
aria-atomic="true"
|
7
|
+
data-bs-animation="true"
|
8
|
+
data-bs-autohide="false"
|
9
|
+
>
|
10
|
+
<div class="toast-header">
|
11
|
+
<button
|
12
|
+
type="button"
|
13
|
+
class="btn-close ms-auto"
|
14
|
+
data-bs-dismiss="toast"
|
15
|
+
aria-label="Close"
|
16
|
+
></button>
|
17
|
+
</div>
|
18
|
+
<div class="toast-body text-center pt-0">
|
19
|
+
<p class="px-2 mb-3">{{ site.data.locales[include.lang].notification.update_found }}</p>
|
20
|
+
<button type="button" class="btn btn-primary" aria-label="Update">
|
21
|
+
{{ site.data.locales[include.lang].notification.update }}
|
22
|
+
</button>
|
23
|
+
</div>
|
24
|
+
</aside>
|
data/_includes/post-nav.html
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
<!-- Navigation buttons at the bottom of the post. -->
|
2
2
|
|
3
|
-
<
|
3
|
+
<nav class="post-navigation d-flex justify-content-between" aria-label="Post Navigation">
|
4
|
+
{% assign previous = site.data.locales[include.lang].post.button.previous %}
|
5
|
+
{% assign next = site.data.locales[include.lang].post.button.next %}
|
6
|
+
|
4
7
|
{% if page.previous.url %}
|
5
8
|
<a
|
6
9
|
href="{{ site.baseurl }}{{ page.previous.url }}"
|
7
10
|
class="btn btn-outline-primary"
|
8
|
-
|
11
|
+
aria-label="{{ previous }}"
|
9
12
|
>
|
10
13
|
<p>{{ page.previous.title }}</p>
|
11
14
|
</a>
|
12
15
|
{% else %}
|
13
|
-
<div
|
14
|
-
class="btn btn-outline-primary disabled"
|
15
|
-
prompt="{{ site.data.locales[include.lang].post.button.previous }}"
|
16
|
-
>
|
16
|
+
<div class="btn btn-outline-primary disabled" aria-label="{{ previous }}">
|
17
17
|
<p>-</p>
|
18
18
|
</div>
|
19
19
|
{% endif %}
|
@@ -22,16 +22,13 @@
|
|
22
22
|
<a
|
23
23
|
href="{{ site.baseurl }}{{page.next.url}}"
|
24
24
|
class="btn btn-outline-primary"
|
25
|
-
|
25
|
+
aria-label="{{ next }}"
|
26
26
|
>
|
27
27
|
<p>{{ page.next.title }}</p>
|
28
28
|
</a>
|
29
29
|
{% else %}
|
30
|
-
<div
|
31
|
-
class="btn btn-outline-primary disabled"
|
32
|
-
prompt="{{ site.data.locales[include.lang].post.button.next }}"
|
33
|
-
>
|
30
|
+
<div class="btn btn-outline-primary disabled" aria-label="{{ next }}">
|
34
31
|
<p>-</p>
|
35
32
|
</div>
|
36
33
|
{% endif %}
|
37
|
-
</
|
34
|
+
</nav>
|
@@ -1,89 +1,91 @@
|
|
1
1
|
<!-- The paginator for post list on HomgPage. -->
|
2
2
|
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
{%
|
7
|
-
|
8
|
-
{%
|
9
|
-
|
3
|
+
<nav aria-label="Page Navigation">
|
4
|
+
<ul class="pagination align-items-center mt-4 mb-0">
|
5
|
+
<!-- left arrow -->
|
6
|
+
{% if paginator.previous_page %}
|
7
|
+
{% assign prev_url = paginator.previous_page_path | relative_url %}
|
8
|
+
{% else %}
|
9
|
+
{% assign prev_url = '#' %}
|
10
|
+
{% endif %}
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
<li class="page-item {% unless paginator.previous_page %}disabled{% endunless %}">
|
13
|
+
<a class="page-link" href="{{ prev_url }}" aria-label="previous-page">
|
14
|
+
<i class="fas fa-angle-left"></i>
|
15
|
+
</a>
|
16
|
+
</li>
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
<!-- page numbers -->
|
19
|
+
{% assign left_ellipsis = false %}
|
20
|
+
{% assign right_ellipsis = false %}
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
{% for i in (1..paginator.total_pages) %}
|
23
|
+
{% assign pre = paginator.page | minus: 1 %}
|
24
|
+
{% assign next = paginator.page | plus: 1 %}
|
25
|
+
{% assign pre_less = pre | minus: 1 %}
|
26
|
+
{% assign next_more = next | plus: 1 %}
|
27
|
+
{% assign show = false %}
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
{% if paginator.page == 1 %}
|
30
|
+
{% if i <= 3 or i == paginator.total_pages %}
|
31
|
+
{% assign show = true %}
|
32
|
+
{% endif %}
|
33
|
+
{% elsif paginator.page == paginator.total_pages %}
|
34
|
+
{% if i == 1 or i >= pre_less %}
|
35
|
+
{% assign show = true %}
|
36
|
+
{% endif %}
|
37
|
+
{% else %}
|
38
|
+
{% if i == 1 or i == paginator.total_pages %}
|
39
|
+
{% assign show = true %}
|
40
|
+
{% elsif i >= pre and i <= next %}
|
41
|
+
{% assign show = true %}
|
42
|
+
{% endif %}
|
35
43
|
{% endif %}
|
36
|
-
{% else %}
|
37
|
-
{% if i == 1 or i == paginator.total_pages %}
|
38
|
-
{% assign show = true %}
|
39
|
-
{% elsif i >= pre and i <= next %}
|
40
|
-
{% assign show = true %}
|
41
|
-
{% endif %}
|
42
|
-
{% endif %}
|
43
44
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</li>
|
54
|
-
{% else %}
|
55
|
-
<!-- hide number -->
|
56
|
-
{% if i < pre and left_ellipsis == false %}
|
57
|
-
<li class="page-item disabled">
|
58
|
-
<span class="page-link btn-box-shadow">...</span>
|
59
|
-
</li>
|
60
|
-
{% assign left_ellipsis = true %}
|
61
|
-
{% elsif i > next and right_ellipsis == false %}
|
62
|
-
<li class="page-item disabled">
|
63
|
-
<span class="page-link btn-box-shadow">...</span>
|
45
|
+
{% if show %}
|
46
|
+
<!-- show number -->
|
47
|
+
<li class="page-item {% if i == paginator.page %} active{% endif %}">
|
48
|
+
<a
|
49
|
+
class="page-link"
|
50
|
+
href="{% if i > 1 %}{{ site.paginate_path | replace: ':num', i | relative_url }}{% else %}{{ '/' | relative_url }}{% endif %}"
|
51
|
+
>
|
52
|
+
{{- i -}}
|
53
|
+
</a>
|
64
54
|
</li>
|
65
|
-
|
55
|
+
{% else %}
|
56
|
+
<!-- hide number -->
|
57
|
+
{% if i < pre and left_ellipsis == false %}
|
58
|
+
<li class="page-item disabled">
|
59
|
+
<span class="page-link">...</span>
|
60
|
+
</li>
|
61
|
+
{% assign left_ellipsis = true %}
|
62
|
+
{% elsif i > next and right_ellipsis == false %}
|
63
|
+
<li class="page-item disabled">
|
64
|
+
<span class="page-link">...</span>
|
65
|
+
</li>
|
66
|
+
{% assign right_ellipsis = true %}
|
67
|
+
{% endif %}
|
66
68
|
{% endif %}
|
67
|
-
{%
|
68
|
-
{% endfor %}
|
69
|
+
{% endfor %}
|
69
70
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
71
|
+
<!-- mobile pagination -->
|
72
|
+
<li class="page-index align-middle">
|
73
|
+
<span>{{ paginator.page }}</span>
|
74
|
+
<span class="text-muted">/ {{ paginator.total_pages }}</span>
|
75
|
+
</li>
|
75
76
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
77
|
+
<!-- right arrow -->
|
78
|
+
{% if paginator.next_page_path %}
|
79
|
+
{% assign next_url = paginator.next_page_path | relative_url %}
|
80
|
+
{% else %}
|
81
|
+
{% assign next_url = '#' %}
|
82
|
+
{% endif %}
|
82
83
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
</ul>
|
84
|
+
<li class="page-item {% unless paginator.next_page_path %}disabled{% endunless %}">
|
85
|
+
<a class="page-link" href="{{ next_url }}" aria-label="next-page">
|
86
|
+
<i class="fas fa-angle-right"></i>
|
87
|
+
</a>
|
88
|
+
</li>
|
89
|
+
</ul>
|
90
|
+
</nav>
|
89
91
|
<!-- .pagination -->
|
data/_includes/post-sharing.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<!-- Post sharing snippet -->
|
2
2
|
|
3
|
-
<div class="share-wrapper">
|
3
|
+
<div class="share-wrapper d-flex align-items-center">
|
4
4
|
<span class="share-label text-muted me-1">{{ site.data.locales[include.lang].post.share }}</span>
|
5
5
|
<span class="share-icons">
|
6
6
|
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
@@ -22,14 +22,16 @@
|
|
22
22
|
</a>
|
23
23
|
{% endfor %}
|
24
24
|
|
25
|
-
<
|
25
|
+
<button
|
26
26
|
id="copy-link"
|
27
|
-
|
27
|
+
aria-label="Copy link"
|
28
|
+
class="btn small"
|
28
29
|
data-bs-toggle="tooltip"
|
29
30
|
data-bs-placement="top"
|
30
31
|
title="{{ site.data.locales[include.lang].post.button.share_link.title }}"
|
31
32
|
data-title-succeed="{{ site.data.locales[include.lang].post.button.share_link.succeed }}"
|
32
33
|
>
|
33
|
-
|
34
|
+
<i class="fa-fw fas fa-link pe-none"></i>
|
35
|
+
</button>
|
34
36
|
</span>
|
35
37
|
</div>
|