jekyll-theme-chirpy 6.1.0 → 6.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -23
  3. data/_data/locales/tr-TR.yml +4 -4
  4. data/_data/origin/cors.yml +11 -11
  5. data/_includes/comments/disqus.html +2 -1
  6. data/_includes/datetime.html +5 -4
  7. data/_includes/footer.html +30 -28
  8. data/_includes/head.html +1 -1
  9. data/_includes/notification.html +24 -0
  10. data/_includes/post-nav.html +9 -12
  11. data/_includes/post-paginator.html +77 -75
  12. data/_includes/post-sharing.html +6 -4
  13. data/_includes/related-posts.html +31 -39
  14. data/_includes/search-loader.html +10 -8
  15. data/_includes/search-results.html +1 -1
  16. data/_includes/sidebar.html +63 -60
  17. data/_includes/toc.html +3 -3
  18. data/_includes/topbar.html +17 -10
  19. data/_includes/trending-tags.html +3 -3
  20. data/_includes/update-list.html +4 -4
  21. data/_layouts/archives.html +18 -19
  22. data/_layouts/category.html +2 -2
  23. data/_layouts/default.html +51 -32
  24. data/_layouts/home.html +12 -11
  25. data/_layouts/page.html +21 -63
  26. data/_layouts/post.html +72 -70
  27. data/_layouts/tag.html +2 -2
  28. data/_sass/addon/commons.scss +118 -149
  29. data/_sass/addon/module.scss +12 -3
  30. data/_sass/addon/syntax.scss +51 -29
  31. data/_sass/addon/variables.scss +10 -5
  32. data/_sass/colors/syntax-dark.scss +138 -0
  33. data/_sass/colors/syntax-light.scss +179 -0
  34. data/_sass/colors/{dark-typography.scss → typography-dark.scss} +18 -19
  35. data/_sass/colors/{light-typography.scss → typography-light.scss} +17 -16
  36. data/_sass/layout/category-tag.scss +0 -5
  37. data/_sass/layout/home.scss +18 -35
  38. data/_sass/layout/post.scss +46 -51
  39. data/_sass/{jekyll-theme-chirpy.scss → main.scss} +2 -8
  40. data/assets/404.html +1 -3
  41. data/assets/css/{style.scss → jekyll-theme-chirpy.scss} +1 -1
  42. data/assets/js/data/swcache.js +32 -33
  43. data/assets/js/dist/categories.min.js +2 -4
  44. data/assets/js/dist/commons.min.js +2 -4
  45. data/assets/js/dist/home.min.js +2 -4
  46. data/assets/js/dist/misc.min.js +2 -4
  47. data/assets/js/dist/page.min.js +2 -4
  48. data/assets/js/dist/post.min.js +2 -4
  49. data/assets/js/pwa/sw.js +56 -57
  50. metadata +9 -11
  51. data/_data/authors.yml +0 -17
  52. data/_data/contact.yml +0 -28
  53. data/_data/share.yml +0 -25
  54. data/_sass/colors/dark-syntax.scss +0 -91
  55. data/_sass/colors/light-syntax.scss +0 -83
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f044ff9594dfe7dd9d69f61b41344861b1cdd74e2e921af9ea73b45b1527c3b
4
- data.tar.gz: eb98b0d7c988760998858c0978df52755095b840feb08126f1e5cfe844cf78b8
3
+ metadata.gz: ec5c80e235d59a9659d4d3da68a036d69f487423dbf80813721325914a10f089
4
+ data.tar.gz: f84a46ef96f149651bb1b2670e932d8fe42ff18c229cfb3a150d02a6c51741ce
5
5
  SHA512:
6
- metadata.gz: e5f055955b41aea115b895d07f41f0db5ae5f1a31d5931f789690b657777810e5617904c2b7377d83326008fc6d89d6ac471c0c8702e639a85de55c7864c13fc
7
- data.tar.gz: 93fa5e7b2c7cec78d722af970d419e7cf30e87f8a8d362f155ff55c7b6729914b463aa0a7d9b559302af046c15b763d5ae4fcbd89603556e5e67b9d9fb2b8ac8
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
- [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)](https://rubygems.org/gems/jekyll-theme-chirpy)
8
- [![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml)
9
- [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)](https://www.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cotes2020/jekyll-theme-chirpy&utm_campaign=Badge_Grade)
10
- [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
7
+ [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)][gem] 
8
+ [![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg?branch=master&event=push)][ci] 
9
+ [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)][codacy] 
10
+ [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)][license] 
11
11
  [![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](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 of Posts
33
+ - Last Modified Date
34
34
  - Syntax Highlighting
35
35
  - Mathematical Expressions
36
- - Mermaid Diagram & Flowchart
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
- Welcome to report bugs, help improve the code or submit new features.
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
- Thanks to all the [contributors][contributors]. Also, folks who submitted issues
65
- or unmerged PRs should not be forgotten. Because they reported bugs, shared ideas,
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](https://img.shields.io/badge/-Buy%20Me%20a%20Coffee-ff5f5f?logo=ko-fi&logoColor=white)](https://ko-fi.com/coteschung)
76
- [![Wechat Pay](https://img.shields.io/badge/-Tip%20Me%20on%20WeChat-brightgreen?logo=wechat&logoColor=white)][donation]
77
- [![Alipay](https://img.shields.io/badge/-Tip%20Me%20on%20Alipay-blue?logo=alipay&logoColor=white)][donation]
72
+ [![Ko-fi](https://img.shields.io/badge/Support_Me_on_Ko--fi-ff5e5b?logo=ko-fi&logoColor=white)][ko-fi] 
73
+ [![Wechat Pay](https://img.shields.io/badge/Tip_Me_on_WeChat-brightgreen?logo=wechat&logoColor=white)][donation] 
74
+ [![Alipay](https://img.shields.io/badge/Tip_Me_on_Alipay-blue?logo=alipay&logoColor=white)][donation]
78
75
 
79
76
  ## License
80
77
 
81
- This work is published under [MIT][mit] License.
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/.github/CONTRIBUTING.md
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
@@ -23,7 +23,7 @@ search:
23
23
  no_results: Hop! Öyle bir şey bulamadım.
24
24
 
25
25
  panel:
26
- lastmod: Yeni Güncellendi
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 de vererek paylaşabilir veya düzenleyip paylaşabilirsin.
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: Gönderilme Tarihi
57
- updated: Güncellenme Tarihi
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:
@@ -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.0/dist/jquery.min.js
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.2.3/dist/css/bootstrap.min.css
23
- js: https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js
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.0/dist/tocbot.min.css
27
- js: https://cdn.jsdelivr.net/npm/tocbot@4.21.0/dist/tocbot.min.js
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.0/css/all.min.css
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@9.4.3/dist/mermaid.min.js
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.7/dayjs.min.js
41
- locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.7/locale/:LOCALE.min.js
42
- relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.7/plugin/relativeTime.min.js
43
- localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.7/plugin/localizedFormat.min.js
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
@@ -1,5 +1,6 @@
1
1
  <!-- The Disqus lazy loading. -->
2
- <div id="disqus_thread" class="pt-2 pb-2">
2
+
3
+ <div id="disqus_thread" class="mb-5">
3
4
  <p class="text-center text-muted small">Comments powered by <a href="https://disqus.com/">Disqus</a>.</p>
4
5
  </div>
5
6
 
@@ -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
- <{{ wrap_elem }}
11
- class="{% if include.class %}{{ include.class }}{% endif %}"
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
- </{{ wrap_elem }}>
20
+ </time>
@@ -1,34 +1,36 @@
1
1
  <!-- The Footer -->
2
2
 
3
- <footer>
4
- <div class="container px-lg-4">
5
- <div class="d-flex justify-content-center align-items-center text-muted mx-md-3">
6
- <p>
7
- {%- capture _platform -%}
8
- <a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
9
- {%- endcapture -%}
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
- {%- capture _theme -%}
12
- <a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a>
13
- {%- endcapture -%}
25
+ <p>
26
+ {%- capture _platform -%}
27
+ <a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
28
+ {%- endcapture -%}
14
29
 
15
- {{ site.data.locales[include.lang].meta | replace: ':PLATFORM', _platform | replace: ':THEME', _theme }}
16
- </p>
30
+ {%- capture _theme -%}
31
+ <a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a>
32
+ {%- endcapture -%}
17
33
 
18
- <p>
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/style.css' | relative_url }}">
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>
@@ -1,19 +1,19 @@
1
1
  <!-- Navigation buttons at the bottom of the post. -->
2
2
 
3
- <div class="post-navigation d-flex justify-content-between">
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
- prompt="{{ site.data.locales[include.lang].post.button.previous }}"
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
- prompt="{{ site.data.locales[include.lang].post.button.next }}"
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
- </div>
34
+ </nav>
@@ -1,89 +1,91 @@
1
1
  <!-- The paginator for post list on HomgPage. -->
2
2
 
3
- <ul class="pagination align-items-center mt-4 mb-1 ps-lg-2">
4
- <!-- left arrow -->
5
- {% if paginator.previous_page %}
6
- {% assign prev_url = paginator.previous_page_path | relative_url %}
7
- {% else %}
8
- {% assign prev_url = '#' %}
9
- {% endif %}
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
- <li class="page-item {% unless paginator.previous_page %}disabled{% endunless %}">
12
- <a class="page-link btn-box-shadow" href="{{ prev_url }}" aria-label="previous-page">
13
- <i class="fas fa-angle-left"></i>
14
- </a>
15
- </li>
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
- <!-- page numbers -->
18
- {% assign left_ellipsis = false %}
19
- {% assign right_ellipsis = false %}
18
+ <!-- page numbers -->
19
+ {% assign left_ellipsis = false %}
20
+ {% assign right_ellipsis = false %}
20
21
 
21
- {% for i in (1..paginator.total_pages) %}
22
- {% assign pre = paginator.page | minus: 1 %}
23
- {% assign next = paginator.page | plus: 1 %}
24
- {% assign pre_less = pre | minus: 1 %}
25
- {% assign next_more = next | plus: 1 %}
26
- {% assign show = false %}
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
- {% if paginator.page == 1 %}
29
- {% if i <= 3 or i == paginator.total_pages %}
30
- {% assign show = true %}
31
- {% endif %}
32
- {% elsif paginator.page == paginator.total_pages %}
33
- {% if i == 1 or i >= pre_less %}
34
- {% assign show = true %}
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
- {% if show %}
45
- <!-- show number -->
46
- <li class="page-item {% if i == paginator.page %} active{% endif %}">
47
- <a
48
- class="page-link btn-box-shadow"
49
- href="{% if i > 1 %}{{ site.paginate_path | replace: ':num', i | relative_url }}{% else %}{{ '/' | relative_url }}{% endif %}"
50
- >
51
- {{- i -}}
52
- </a>
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
- {% assign right_ellipsis = true %}
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
- {% endif %}
68
- {% endfor %}
69
+ {% endfor %}
69
70
 
70
- <!-- mobile pagination -->
71
- <li class="page-index align-middle">
72
- <span>{{ paginator.page }}</span>
73
- <span class="text-muted">/ {{ paginator.total_pages }}</span>
74
- </li>
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
- <!-- right arrow -->
77
- {% if paginator.next_page_path %}
78
- {% assign next_url = paginator.next_page_path | relative_url %}
79
- {% else %}
80
- {% assign next_url = '#' %}
81
- {% endif %}
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
- <li class="page-item {% unless paginator.next_page_path %}disabled{% endunless %}">
84
- <a class="page-link btn-box-shadow" href="{{ next_url }}" aria-label="next-page">
85
- <i class="fas fa-angle-right"></i>
86
- </a>
87
- </li>
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 -->
@@ -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
- <i
25
+ <button
26
26
  id="copy-link"
27
- class="fa-fw fas fa-link small"
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
- </i>
34
+ <i class="fa-fw fas fa-link pe-none"></i>
35
+ </button>
34
36
  </span>
35
37
  </div>