jekyll-theme-chirpy 6.2.1 → 6.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec5c80e235d59a9659d4d3da68a036d69f487423dbf80813721325914a10f089
4
- data.tar.gz: f84a46ef96f149651bb1b2670e932d8fe42ff18c229cfb3a150d02a6c51741ce
3
+ metadata.gz: b6bbfe822ac8e5fce131965e3859c7505fbb89310f9ef93cc6ba9d3e55c4dc94
4
+ data.tar.gz: 6332ba5af1bf7f477259280859bd7772d79152fc20c3b6ed8a26e3c479d38208
5
5
  SHA512:
6
- metadata.gz: 05246b7253bda76af30ebfbe83e22595ba441fffac48c954827488f1db4d1f71483f1fe651b7d5e74df23bfed011d4d5aab8d25c28de720084196ddc48a54807
7
- data.tar.gz: d925105924b9f2beb7545cee059700556acc0f7ca79f3317189cdf016ae79aad043a52685313556c9f3ca9ee36066df3ff50b50fcbce5b560705c5ee12657841
6
+ metadata.gz: 116a3f5f8c9a8ad523ae19b42937927e17bb6ec698bf19ed2ae6c6e67f906382d815c0a8de261215313a5261b2888b19b129fbb6d31ddda3968f877707287c92
7
+ data.tar.gz: 71a78325c8fac6ec7dd1eaeb43c6312a36f6a1fea814d326d487f23a6180b19e84d1ef0f0fe1009ef058c4a593af8a3f87037856cdd3885d397a0d10a3f818cd
data/README.md CHANGED
@@ -19,45 +19,44 @@
19
19
  ## Features
20
20
 
21
21
  <details>
22
- <summary>
23
- <i>Click to view features</i>
24
- </summary>
25
- <p>
26
-
27
- - Dark / Light Theme Mode
28
- - Localized UI language
29
- - Pinned Posts on Home Page
30
- - Hierarchical Categories
31
- - Trending Tags
32
- - Table of Contents
33
- - Last Modified Date
34
- - Syntax Highlighting
35
- - Mathematical Expressions
36
- - Mermaid Diagrams & Flowcharts
37
- - Dark / Light Mode Images
38
- - Embed Videos
39
- - Disqus / Utterances / Giscus Comments
40
- - Built-in Search
41
- - Atom Feeds
42
- - PWA
43
- - Google Analytics
44
- - SEO & Performance Optimization
45
-
46
- </p>
22
+ <summary>Click to expand/close details</summary>
23
+ &nbsp;
24
+
25
+ - Dark / Light Theme Mode
26
+ - Localized UI language
27
+ - Pinned Posts on Home Page
28
+ - Hierarchical Categories
29
+ - Trending Tags
30
+ - Table of Contents
31
+ - Last Modified Date
32
+ - Syntax Highlighting
33
+ - Mathematical Expressions
34
+ - Mermaid Diagrams & Flowcharts
35
+ - Dark / Light Mode Images
36
+ - Embed Videos
37
+ - Disqus / Giscus / Utterances Comments
38
+ - Built-in Search
39
+ - Atom Feeds
40
+ - PWA
41
+ - Google Analytics
42
+ - SEO & Performance Optimization
43
+
47
44
  </details>
48
45
 
49
46
  ## Documentation
50
47
 
51
- To explore usage, development, and upgrade guide of the project, please refer to the [**Wiki**][wiki].
48
+ To learn how to use, develop, and upgrade the project, please refer to the [Wiki][wiki].
52
49
 
53
50
  ## Contributing
54
51
 
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]".
52
+ Contributions (_pull requests_, _issues_, and _discussions_) are what make the open-source community such an amazing place
53
+ to learn, inspire, and create. Any contributions you make are greatly appreciated.
54
+ For details, see the "[Contributing Guidelines][contribute-guide]".
56
55
 
57
56
  ## Credits
58
57
 
59
- This theme is mainly built with [Jekyll][jekyllrb] ecosystem,
60
- [Bootstrap][bootstrap], [Font Awesome][icons] and some other [wonderful tools][lib].
58
+ This project is mainly built with [Jekyll][jekyllrb] ecosystem,
59
+ [Bootstrap][bootstrap], [Font Awesome][icons], and some other [wonderful tools][lib].
61
60
  The avatar and favicon design come from [Clipart Max][image].
62
61
 
63
62
  Many thanks to the [contributors][contributors] who participated in the development
@@ -67,15 +66,15 @@ Last but not least, thanks to [JetBrains][jetbrains] for providing the _Open Sou
67
66
 
68
67
  ## Sponsoring
69
68
 
70
- If you'd like to sponsor this project, the following options are available.
69
+ If you like this project or have built something through it, please consider sponsoring it, and your support would be greatly appreciated.
71
70
 
72
71
  [![Ko-fi](https://img.shields.io/badge/Support_Me_on_Ko--fi-ff5e5b?logo=ko-fi&logoColor=white)][ko-fi]&nbsp;
73
- [![Wechat Pay](https://img.shields.io/badge/Tip_Me_on_WeChat-brightgreen?logo=wechat&logoColor=white)][donation]&nbsp;
74
- [![Alipay](https://img.shields.io/badge/Tip_Me_on_Alipay-blue?logo=alipay&logoColor=white)][donation]
72
+ [![Wechat Pay](https://img.shields.io/badge/Support_Me_on_WeChat-brightgreen?logo=wechat&logoColor=white)][donation]&nbsp;
73
+ [![Alipay](https://img.shields.io/badge/Support_Me_on_Alipay-blue?logo=alipay&logoColor=white)][donation]
75
74
 
76
75
  ## License
77
76
 
78
- This work is published under [MIT License][license].
77
+ This project is published under [MIT License][license].
79
78
 
80
79
  [gem]: https://rubygems.org/gems/jekyll-theme-chirpy
81
80
  [ci]: https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster
@@ -58,7 +58,7 @@ post:
58
58
  pageview_measure: Aufrufe
59
59
  read_time:
60
60
  unit: Minuten
61
- prompt: lesen
61
+ prompt: Lesezeit
62
62
  relate_posts: Weiterlesen
63
63
  share: Teilen
64
64
  button:
@@ -70,6 +70,13 @@ post:
70
70
  title: Link kopieren
71
71
  succeed: Link erfolgreich kopiert!
72
72
 
73
+ # Date time format.
74
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
75
+ df:
76
+ post:
77
+ strftime: "%d.%m.%Y"
78
+ dayjs: "DD.MM.YYYY"
79
+
73
80
  # categories page
74
81
  categories:
75
82
  category_measure:
data/_data/locales/en.yml CHANGED
@@ -40,7 +40,7 @@ copyright:
40
40
  Except where otherwise noted, the blog posts on this site are licensed
41
41
  under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
42
42
 
43
- meta: Using the :PLATFORM theme :THEME
43
+ meta: Using the :THEME theme for :PLATFORM
44
44
 
45
45
  not_found:
46
46
  statment: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
@@ -3,14 +3,14 @@
3
3
  # ----- Commons label -----
4
4
 
5
5
  layout:
6
- post: Публикация
6
+ post: Пост
7
7
  category: Категория
8
8
  tag: Тег
9
9
 
10
10
  # The tabs of sidebar
11
11
  tabs:
12
12
  # format: <filename_without_extension>: <value>
13
- home: Домашняя страница
13
+ home: Главная
14
14
  categories: Категории
15
15
  tags: Теги
16
16
  archives: Архив
@@ -19,8 +19,8 @@ tabs:
19
19
  # the text displayed in the search bar & search results
20
20
  search:
21
21
  hint: поиск
22
- cancel: Отменить
23
- no_results: Ох! Ничего не найдено.
22
+ cancel: Отмена
23
+ no_results: Упс! Ничего не найдено.
24
24
 
25
25
  panel:
26
26
  lastmod: Недавно обновлено
@@ -30,48 +30,58 @@ panel:
30
30
  copyright:
31
31
  # Shown at the bottom of the post
32
32
  license:
33
- template: Публикация защищена лицензией :LICENSE_NAME.
33
+ template: Авторский пост защищен лицензией :LICENSE_NAME.
34
34
  name: CC BY 4.0
35
35
  link: https://creativecommons.org/licenses/by/4.0/
36
36
 
37
37
  # Displayed in the footer
38
38
  brief: Некоторые права защищены.
39
39
  verbose: >-
40
- Публикации на сайте защищены лицензией Creative Commons Attribution 4.0 International (CC BY 4.0),
41
- если в тексте публикации не указано иное.
40
+ Если не указано иное, авторские посты на этом сайте защищены лицензией Creative Commons Attribution 4.0 International (CC BY 4.0).
42
41
 
43
- meta: Powered by :PLATFORM with :THEME theme
42
+ meta: Использует тему :THEME для :PLATFORM
44
43
 
45
44
  not_found:
46
- statment: Извините, эта ссылка указывает на ресурс который не существует.
45
+ statment: Извините, мы перепутали URL-адрес или он указывает на что-то несуществующее.
47
46
 
48
47
  notification:
49
48
  update_found: Доступна новая версия контента.
50
- update: Обновлять
49
+ update: Обновить
51
50
 
52
51
  # ----- Posts related labels -----
53
52
 
54
53
  post:
55
54
  written_by: Автор
56
- posted: Время публикации
55
+ posted: Опубликовано
57
56
  updated: Обновлено
58
57
  words: слов
59
58
  pageview_measure: просмотров
60
59
  read_time:
61
- unit: минут
60
+ unit: мин.
62
61
  prompt: чтения
63
- relate_posts: Вам также может быть интересно
62
+ relate_posts: Похожие посты
64
63
  share: Поделиться
65
64
  button:
66
- next: Предыдущая публикация
67
- previous: Следующая публикация
65
+ next: Следующий пост
66
+ previous: Предыдущий пост
68
67
  copy_code:
69
- succeed: Скопировано успешно!
68
+ succeed: Скопировано!
70
69
  share_link:
71
70
  title: Скопировать ссылку
72
71
  succeed: Ссылка успешно скопирована!
73
72
 
73
+ # Date time format.
74
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
75
+ df:
76
+ post:
77
+ strftime: "%d.%m.%Y"
78
+ dayjs: "DD.MM.YYYY"
79
+
74
80
  # categories page
75
81
  categories:
76
- category_measure: категории
77
- post_measure: публикации
82
+ category_measure:
83
+ singular: категория
84
+ plural: категории
85
+ post_measure:
86
+ singular: пост
87
+ plural: посты
@@ -35,14 +35,12 @@ magnific-popup:
35
35
  css: /assets/lib/magnific-popup/magnific-popup.css
36
36
  js: /assets/lib/magnific-popup/jquery.magnific-popup.min.js
37
37
 
38
- lazysizes:
39
- js: /assets/lib/lazysizes/lazysizes.min.js
38
+ lazy-polyfill:
39
+ css: /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css
40
+ js: /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js
40
41
 
41
42
  clipboard:
42
43
  js: /assets/lib/clipboard/clipboard.min.js
43
44
 
44
- polyfill:
45
- js: /assets/lib/polyfill-v3-es6/polyfill.min.js
46
-
47
45
  mathjax:
48
46
  js: /assets/lib/mathjax/tex-chtml.js
@@ -19,12 +19,12 @@ jquery:
19
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.3.1/dist/css/bootstrap.min.css
23
- js: https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js
22
+ css: https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css
23
+ js: https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js
24
24
 
25
25
  toc:
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
26
+ css: https://cdn.jsdelivr.net/npm/tocbot@4.21.2/dist/tocbot.min.css
27
+ js: https://cdn.jsdelivr.net/npm/tocbot@4.21.2/dist/tocbot.min.js
28
28
 
29
29
  fontawesome:
30
30
  css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css
@@ -33,27 +33,25 @@ 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@10.4.0/dist/mermaid.min.js
36
+ js: https://cdn.jsdelivr.net/npm/mermaid@10.5.0/dist/mermaid.min.js
37
37
 
38
38
  dayjs:
39
39
  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
40
+ common: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/dayjs.min.js
41
+ locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/locale/:LOCALE.min.js
42
+ relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/plugin/relativeTime.min.js
43
+ localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/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
47
47
  js: https://cdn.jsdelivr.net/npm/magnific-popup@1.1.0/dist/jquery.magnific-popup.min.js
48
48
 
49
- lazysizes:
50
- js: https://cdn.jsdelivr.net/npm/lazysizes@5.3.2/lazysizes.min.js
49
+ lazy-polyfill:
50
+ css: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.min.css
51
+ js: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.umd.min.js
51
52
 
52
53
  clipboard:
53
54
  js: https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js
54
55
 
55
- polyfill:
56
- js: https://polyfill.io/v3/polyfill.min.js?features=es6
57
-
58
56
  mathjax:
59
57
  js: https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-chtml.js
@@ -1,6 +1,6 @@
1
1
  <!-- The Disqus lazy loading. -->
2
2
 
3
- <div id="disqus_thread" class="mb-5">
3
+ <div id="disqus_thread">
4
4
  <p class="text-center text-muted small">Comments powered by <a href="https://disqus.com/">Disqus</a>.</p>
5
5
  </div>
6
6
 
@@ -30,6 +30,7 @@
30
30
  'data-theme': initTheme,
31
31
  'data-input-position': '{{ site.comments.giscus.input_position | default: 'bottom' }}',
32
32
  'data-lang': '{{ site.comments.giscus.lang | default: lang }}',
33
+ 'data-loading': 'lazy',
33
34
  crossorigin: 'anonymous',
34
35
  async: ''
35
36
  };
@@ -1,51 +1,50 @@
1
1
  <!-- https://utteranc.es/ -->
2
- <script src="https://utteranc.es/client.js"
3
- repo="{{ site.comments.utterances.repo }}"
4
- issue-term="{{ site.comments.utterances.issue_term }}"
5
- crossorigin="anonymous"
6
- async>
7
- </script>
2
+ <script
3
+ src="https://utteranc.es/client.js"
4
+ repo="{{ site.comments.utterances.repo }}"
5
+ issue-term="{{ site.comments.utterances.issue_term }}"
6
+ crossorigin="anonymous"
7
+ async
8
+ ></script>
8
9
 
9
10
  <script type="text/javascript">
10
- $(function() {
11
- const origin = "https://utteranc.es";
12
- const iframe = "iframe.utterances-frame";
13
- const lightTheme = "github-light";
14
- const darkTheme = "github-dark";
11
+ (function () {
12
+ const origin = 'https://utteranc.es';
13
+ const iframe = 'iframe.utterances-frame';
14
+ const lightTheme = 'github-light';
15
+ const darkTheme = 'github-dark';
15
16
  let initTheme = lightTheme;
17
+ const html = document.documentElement;
16
18
 
17
- if ($("html[data-mode=dark]").length > 0
18
- || ($("html[data-mode]").length == 0
19
- && window.matchMedia("(prefers-color-scheme: dark)").matches)) {
19
+ if (
20
+ (html.hasAttribute('data-mode') && html.getAttribute('data-mode') === 'dark') ||
21
+ (!html.hasAttribute('data-mode') && window.matchMedia('(prefers-color-scheme: dark)').matches)
22
+ ) {
20
23
  initTheme = darkTheme;
21
24
  }
22
25
 
23
- addEventListener("message", (event) => {
26
+ addEventListener('message', (event) => {
24
27
  let theme;
25
28
 
26
29
  /* credit to <https://github.com/utterance/utterances/issues/170#issuecomment-594036347> */
27
30
  if (event.origin === origin) {
28
31
  /* page initial */
29
32
  theme = initTheme;
30
-
31
- } else if (event.source === window && event.data &&
32
- event.data.direction === ModeToggle.ID) {
33
+ } else if (event.source === window && event.data && event.data.direction === ModeToggle.ID) {
33
34
  /* global theme mode changed */
34
35
  const mode = event.data.message;
35
- theme = (mode === ModeToggle.DARK_MODE ? darkTheme : lightTheme);
36
-
36
+ theme = mode === ModeToggle.DARK_MODE ? darkTheme : lightTheme;
37
37
  } else {
38
38
  return;
39
39
  }
40
40
 
41
41
  const message = {
42
- type: "set-theme",
42
+ type: 'set-theme',
43
43
  theme: theme
44
44
  };
45
45
 
46
46
  const utterances = document.querySelector(iframe).contentWindow;
47
47
  utterances.postMessage(message, origin);
48
48
  });
49
-
50
- });
49
+ })();
51
50
  </script>
@@ -1,4 +1,7 @@
1
- <iframe class="embed-video twitch lazyload"
1
+ <iframe
2
+ class="embed-video twitch"
2
3
  src="https://player.twitch.tv/?video={{ include.id }}&parent={{ site.url | split: '://' | last | remove: '/' }}"
3
- frameborder="0" allowfullscreen="true"
4
- scrolling="no"></iframe>
4
+ frameborder="0"
5
+ allowfullscreen="true"
6
+ scrolling="no"
7
+ ></iframe>
@@ -1,6 +1,9 @@
1
- <iframe class="embed-video youtube lazyload"
1
+ <iframe
2
+ class="embed-video youtube"
3
+ loading="lazy"
2
4
  src="https://www.youtube.com/embed/{{ include.id }}"
3
5
  title="YouTube video player"
4
6
  frameborder="0"
5
7
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
6
- allowfullscreen></iframe>
8
+ allowfullscreen
9
+ ></iframe>
data/_includes/head.html CHANGED
@@ -80,6 +80,10 @@
80
80
  <link rel="stylesheet" href="{{ site.data.origin[type].toc.css | relative_url }}">
81
81
  {% endif %}
82
82
 
83
+ {% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %}
84
+ <link rel="stylesheet" href="{{ site.data.origin[type]['lazy-polyfill'].css | relative_url }}">
85
+ {% endif %}
86
+
83
87
  {% if page.layout == 'page' or page.layout == 'post' %}
84
88
  <!-- Manific Popup -->
85
89
  <link rel="stylesheet" href="{{ site.data.origin[type].magnific-popup.css | relative_url }}">
@@ -12,7 +12,7 @@
12
12
  <!-- layout specified -->
13
13
 
14
14
  {% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %}
15
- {% assign urls = urls | append: ',' | append: site.data.origin[type].lazysizes.js %}
15
+ {% assign urls = urls | append: ',' | append: site.data.origin[type]['lazy-polyfill'].js %}
16
16
 
17
17
  {% unless page.layout == 'home' %}
18
18
  <!-- image lazy-loading & popup & clipboard -->
@@ -87,7 +87,7 @@
87
87
  }
88
88
  };
89
89
  </script>
90
- <script src="{{ site.data.origin[type].polyfill.js | relative_url }}"></script>
90
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
91
91
  <script id="MathJax-script" async src="{{ site.data.origin[type].mathjax.js | relative_url }}"></script>
92
92
  {% endif %}
93
93