jekyll-theme-chirpy 7.2.3 → 7.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 759715906e7172905570a944f459ee91c5fe9ca116509ab4a54733728dc261d2
4
- data.tar.gz: 011d59998874cf0f9164ea70aba8ea6a33f700592a339d12ec9a60094b7d455b
3
+ metadata.gz: 2eb95edebdb4a728c8aca9f958e65523f6480bd1b34df15156d949dfc37325fd
4
+ data.tar.gz: f84210de466c01352f93a6e6ac3d20794462989113343bc9bb7f24c553924185
5
5
  SHA512:
6
- metadata.gz: 294b871c2a16d1d54b084db87f731b410d0e302ae1173c1a772ddcdcf6f30f4c79666ce8772731911fb731bab52bd315db71f01cfa3d7accc777c3a069b33b15
7
- data.tar.gz: 63c51cb6e0e5342352ae74fac11e44f2340de32c76b991a368aba31fa7c2ca38b158317687b421827706148da7e21ebd5e43160daf6c32d407de02d5f509fa9a
6
+ metadata.gz: c3abead009aaeabe1a1247dbb1bb4cef1fdfec44c89d98d2c25ff7b1ad07206e4fe2cea59437c60ae64fdd83fa41fb6d9ba874a42dac99dd349fdabb90ec0bfc
7
+ data.tar.gz: 3d9fde79363f75e3b526a87700b575d4e16f532d60e4d76c46cd58c4467faafd84ca4f7e9a50f7585864d59053f67cb73fd22c9642ff80f8e4bcd4e6ccc229e9
@@ -0,0 +1,84 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Entrada
7
+ category: Categoria
8
+ tag: Etiqueta
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Inici
14
+ categories: Categories
15
+ tags: Etiquetes
16
+ archives: Arxiu
17
+ about: Sobre
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: Cercar
22
+ cancel: Cancel·lar
23
+ no_results: Ups! No s'han trobat resultats.
24
+
25
+ panel:
26
+ lastmod: Actualitzat recentment
27
+ trending_tags: Etiquetes populars
28
+ toc: Taula de continguts
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Aquesta entrada està llicenciada sota :LICENSE_NAME per l'autor.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Alguns drets reservats.
39
+ verbose: >-
40
+ Excepte que s'indiqui explícitament, les entrades d'aquest blog estan llicenciades
41
+ sota la llicència Creative Commons Attribution 4.0 International (CC BY 4.0) per l'autor.
42
+
43
+ meta: Fet amb :PLATFORM utilitzant el tema :THEME
44
+
45
+ not_found:
46
+ statement: Ho sentim, hem perdut aquesta URL o apunta a alguna cosa que no existeix.
47
+
48
+ notification:
49
+ update_found: Hi ha una nova versió de contingut disponible.
50
+ update: Actualitzar
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: Per
56
+ posted: Publicat
57
+ updated: Actualitzat
58
+ words: paraules
59
+ pageview_measure: visites
60
+ read_time:
61
+ unit: min
62
+ prompt: " de lectura"
63
+ relate_posts: Entrades relacionades
64
+ share: Compartir
65
+ button:
66
+ next: Següent
67
+ previous: Anterior
68
+ copy_code:
69
+ succeed: Copiat!
70
+ share_link:
71
+ title: Copiar enllaç
72
+ succeed: Enllaç copiat!
73
+
74
+ # Date time format.
75
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
76
+ df:
77
+ post:
78
+ strftime: "%Y/%m/%d"
79
+ dayjs: "YYYY/MM/DD"
80
+
81
+ # categories page
82
+ categories:
83
+ category_measure: categories
84
+ post_measure: entrades
@@ -0,0 +1,91 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: پست
7
+ category: دسته‌بندی
8
+ tag: برچسب
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: خانه
14
+ categories: دسته‌بندی‌ها
15
+ tags: برچسب‌ها
16
+ archives: آرشیو
17
+ about: درباره
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: جستجو
22
+ cancel: لغو
23
+ no_results: متأسفیم! هیچ نتیجه‌ای یافت نشد.
24
+
25
+ panel:
26
+ lastmod: آخرین به‌روزرسانی
27
+ trending_tags: برچسب‌های پرطرفدار
28
+ toc: فهرست مطالب
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: این پست تحت مجوز :LICENSE_NAME توسط نویسنده منتشر شده است.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: برخی حقوق محفوظ است.
39
+ verbose: >-
40
+ مگر اینکه خلاف آن ذکر شده باشد، پست‌های وبلاگ در این سایت
41
+ تحت مجوز Creative Commons Attribution 4.0 International (CC BY 4.0) توسط نویسنده منتشر شده‌اند.
42
+
43
+ meta: با استفاده از :PLATFORM قالب :THEME
44
+
45
+ not_found:
46
+ statement: متأسفیم، لینک زیر معتبر نیست یا به صفحه‌ای که وجود ندارد اشاره می‌کند.
47
+
48
+ notification:
49
+ update_found: نسخه جدیدی از محتوا موجود است.
50
+ update: به‌روزرسانی
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: نوشته شده توسط
56
+ posted: منتشر شده
57
+ updated: به‌روزرسانی شده
58
+ words: کلمات
59
+ pageview_measure: بازدیدها
60
+ read_time:
61
+ unit: دقیقه
62
+ prompt: زمان مطالعه
63
+ relate_posts: بیشتر بخوانید
64
+ share: اشتراک‌گذاری
65
+ button:
66
+ next: جدیدتر
67
+ previous: قدیمی‌تر
68
+ copy_code:
69
+ succeed: کپی شد!
70
+ share_link:
71
+ title: کپی لینک
72
+ succeed: لینک با موفقیت کپی شد!
73
+
74
+ # Date time format.
75
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
76
+ df:
77
+ post:
78
+ strftime: "%b %e, %Y"
79
+ dayjs: "ll"
80
+ archives:
81
+ strftime: "%b"
82
+ dayjs: "MMM"
83
+
84
+ # categories page
85
+ categories:
86
+ category_measure:
87
+ singular: دسته‌بندی
88
+ plural: دسته‌بندی‌ها
89
+ post_measure:
90
+ singular: پست
91
+ plural: پست‌ها
@@ -0,0 +1,84 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: 投稿
7
+ category: カテゴリー
8
+ tag: タグ
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: ホーム
14
+ categories: カテゴリー
15
+ tags: タグ
16
+ archives: アーカイブ
17
+ about: このサイトについて
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: 検索
22
+ cancel: キャンセル
23
+ no_results: 該当なし
24
+
25
+ panel:
26
+ lastmod: 最近更新された投稿
27
+ trending_tags: トレンドのタグ
28
+ toc: コンテンツ
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: この投稿は投稿者によって :LICENSE_NAME の下でライセンスされています。
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Some rights reserved.
39
+ verbose: >-
40
+ Except where otherwise noted, the blog posts on this site are licensed
41
+ under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
42
+
43
+ meta: :PLATFORM 用の :THEME を使用しています。
44
+
45
+ not_found:
46
+ statement: このURLは存在しないものを指し示しています。
47
+
48
+ notification:
49
+ update_found: 新しいバージョンが利用可能です。
50
+ update: 更新
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: 投稿者
56
+ posted: 投稿日
57
+ updated: 更新日
58
+ words: 語
59
+ pageview_measure: 回閲覧
60
+ read_time:
61
+ unit: 分
62
+ prompt: で読めます
63
+ relate_posts: さらに読む
64
+ share: シェア
65
+ button:
66
+ next: 次
67
+ previous: 前
68
+ copy_code:
69
+ succeed: コピーしました
70
+ share_link:
71
+ title: リンクをコピー
72
+ succeed: リンクをコピーしました
73
+
74
+ # Date time format.
75
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
76
+ df:
77
+ post:
78
+ strftime: "%Y/%m/%d"
79
+ dayjs: "YYYY/MM/DD"
80
+
81
+ # categories page
82
+ categories:
83
+ category_measure: カテゴリー
84
+ post_measure: 投稿
@@ -0,0 +1,90 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Post
7
+ category: Categorie
8
+ tag: Tag
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Startpagina
14
+ categories: Categorieën
15
+ tags: Tags
16
+ archives: Archief
17
+ about: Over
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: Zoek
22
+ cancel: Annuleer
23
+ no_results: Oops! Geen resultaat gevonden.
24
+
25
+ panel:
26
+ lastmod: Recent Bijgewerkt
27
+ trending_tags: Trending Tags
28
+ toc: Inhoud
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Alle posts zijn onder :LICENSE_NAME gepubliceerd door de auteur.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Sommige rechten voorbehouden.
39
+ verbose: >-
40
+ Tenzij anders vermeld, alle posts zijn onder de
41
+ Creative Commons Attribution 4.0 International (CC BY 4.0) gepubliceerd door de auteur.
42
+
43
+ meta: Gebruikt :THEME
44
+
45
+ not_found:
46
+ statement: Sorry, we hebben de URL verkeerd geplaatst of hij verwijst naar iets dat niet bestaat.
47
+
48
+ notification:
49
+ update_found: Nieuwe versie van inhoud beschikbaar.
50
+ update: Update
51
+
52
+ # ----- Posts related labels -----
53
+ post:
54
+ written_by: Door
55
+ posted: Posted
56
+ updated: Bijgewerkt
57
+ words: woorden
58
+ pageview_measure: Gelezen
59
+ read_time:
60
+ unit: min
61
+ prompt: lees
62
+ relate_posts: Verder Lezen
63
+ share: Deel
64
+ button:
65
+ next: Volgende
66
+ previous: Vorige
67
+ copy_code:
68
+ succeed: Gekopieerd!
69
+ share_link:
70
+ title: Link kopiëren
71
+ succeed: Succesvol gekopieerd!
72
+
73
+ # Date time format.
74
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
75
+ df:
76
+ post:
77
+ strftime: "%b %e, %Y"
78
+ dayjs: "ll"
79
+ archives:
80
+ strftime: "%b"
81
+ dayjs: "MMM"
82
+
83
+ # categories page
84
+ categories:
85
+ category_measure:
86
+ singular: categorie
87
+ plural: categorieën
88
+ post_measure:
89
+ singular: post
90
+ plural: posts
data/_includes/head.html CHANGED
@@ -70,7 +70,7 @@
70
70
 
71
71
  <!-- Bootstrap -->
72
72
  {% unless jekyll.environment == 'production' %}
73
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
73
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/css/bootstrap.min.css">
74
74
  {% endunless %}
75
75
 
76
76
  <!-- Theme style -->
@@ -66,7 +66,7 @@
66
66
 
67
67
  {% if page.math %}
68
68
  <!-- MathJax -->
69
- <script async src="{{ '/assets/js/data/mathjax.js' | relative_url }}"></script>
69
+ <script src="{{ '/assets/js/data/mathjax.js' | relative_url }}"></script>
70
70
  <script async src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"></script>
71
71
  <script id="MathJax-script" async src="{{ site.data.origin[type].mathjax.js | relative_url }}"></script>
72
72
  {% endif %}
@@ -8,8 +8,17 @@
8
8
  {%- if post.description -%}
9
9
  {{- post.description -}}
10
10
  {%- else -%}
11
- {%- include no-linenos.html content=post.content -%}
12
- {{- content | markdownify | strip_html -}}
11
+ {% comment %}
12
+ Remove the line number of the code snippet.
13
+ {% endcomment %}
14
+ {% assign content = post.content %}
15
+
16
+ {% if content contains '<td class="rouge-gutter gl"><pre class="lineno">' %}
17
+ {% assign content = content | replace: '<td class="rouge-gutter gl"><pre class="lineno">', '<!-- <td class="rouge-gutter gl"><pre class="lineno">'%}
18
+ {% assign content = content | replace: '</td><td class="rouge-code">', '</td> --><td class="rouge-code">' %}
19
+ {% endif %}
20
+
21
+ {{- content | markdownify | strip_html | newline_to_br | replace: '<br />', ' ' | strip_newlines -}}
13
22
  {%- endif -%}
14
23
  {%- endcapture -%}
15
24
 
@@ -88,9 +88,41 @@
88
88
  {% endfor %}
89
89
 
90
90
  <!-- take out classes -->
91
+ {% assign _wrapper_class = '' %}
92
+
91
93
  {% if _class %}
92
- {% capture _old_class %}class="{{ _class }}"{% endcapture %}
93
- {% assign _left = _left | remove: _old_class %}
94
+ {% assign _remain = _class %}
95
+ {% assign _class_array = _class | split: ' ' %}
96
+
97
+ {% for c in _class_array %}
98
+ {% assign _pick = false %}
99
+
100
+ {% case c %}
101
+ {% when 'preview-img', 'normal', 'left', 'right', 'light', 'dark' %}
102
+ {% assign _pick = true %}
103
+ {% else %}
104
+ {% if c contains '-' %}
105
+ {% assign start = c | split: '-' | first %}
106
+ {% if start == 'w' %}
107
+ {% assign _pick = true %}
108
+ {% endif %}
109
+ {% endif %}
110
+ {% endcase %}
111
+
112
+ {% if _pick %}
113
+ {% assign _remain = _remain | remove: c | strip %}
114
+ {% assign _wrapper_class = _wrapper_class | append: ' ' | append: c %}
115
+ {% endif %}
116
+ {% endfor %}
117
+
118
+ {% unless _wrapper_class == '' %}
119
+ {% capture _old_class %}class="{{ _class }}"{% endcapture %}
120
+ {% assign _left = _left | remove: _old_class %}
121
+ {% unless _remain == '' %}
122
+ {% capture _new_class %}class="{{ _remain }}"{% endcapture %}
123
+ {% assign _left = _left | append: _new_class %}
124
+ {% endunless %}
125
+ {% endunless %}
94
126
  {% endif %}
95
127
 
96
128
  {% assign _final_src = null %}
@@ -110,7 +142,7 @@
110
142
 
111
143
  {% if _lqip %}
112
144
  {% assign _lazyload = false %}
113
- {% assign _class = _class | append: ' blur' %}
145
+ {% assign _wrapper_class = _wrapper_class | append: ' blur' %}
114
146
 
115
147
  {% unless _lqip contains 'data:' %}
116
148
  {% assign _lqip_alt = 'lqip="' | append: _path_prefix %}
@@ -121,7 +153,7 @@
121
153
  {% assign _left = _left | replace: 'src=', 'data-src=' | replace: ' lqip=', ' data-lqip="true" src=' %}
122
154
 
123
155
  {% else %}
124
- {% assign _class = _class | append: ' shimmer' %}
156
+ {% assign _wrapper_class = _wrapper_class | append: ' shimmer' %}
125
157
  {% endif %}
126
158
 
127
159
  <!-- lazy-load images -->
@@ -153,8 +185,8 @@
153
185
  {% assign _wrapper_start = _final_src
154
186
  | default: _src
155
187
  | prepend: '<a href="'
156
- | append: '" class="popup img-link '
157
- | append: _class
188
+ | append: '" class="popup img-link'
189
+ | append: _wrapper_class
158
190
  | append: '">'
159
191
  %}
160
192
 
@@ -12,7 +12,7 @@
12
12
  {tags}
13
13
  </div>
14
14
  </header>
15
- <p>{snippet}</p>
15
+ <p>{content}</p>
16
16
  </article>
17
17
  {% endcapture %}
18
18
 
@@ -3,7 +3,7 @@
3
3
  <div id="search-result-wrapper" class="d-flex justify-content-center d-none">
4
4
  <div class="col-11 content">
5
5
  <div id="search-hints">
6
- {% include_cached trending-tags.html %}
6
+ {% include_cached trending-tags.html lang=include.lang %}
7
7
  </div>
8
8
  <div id="search-results" class="d-flex flex-wrap justify-content-center text-muted mt-3"></div>
9
9
  </div>
data/_includes/toc.html CHANGED
@@ -3,7 +3,7 @@
3
3
  {% if enable_toc %}
4
4
  <div class="toc-border-cover z-3"></div>
5
5
  <section id="toc-wrapper" class="invisible position-sticky ps-0 pe-4 pb-4">
6
- <h2 class="panel-heading ps-3 pb-1 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
6
+ <h2 class="panel-heading ps-3 pb-2 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
7
7
  <nav id="toc"></nav>
8
8
  </section>
9
9
  {% endif %}
@@ -1,6 +1,6 @@
1
1
  <!-- The Top Bar -->
2
2
 
3
- <header id="topbar-wrapper" aria-label="Top Bar">
3
+ <header id="topbar-wrapper" class="flex-shrink-0" aria-label="Top Bar">
4
4
  <div
5
5
  id="topbar"
6
6
  class="d-flex align-items-center justify-content-between px-lg-3 h-100"
@@ -40,7 +40,7 @@
40
40
  </nav>
41
41
  <!-- endof #breadcrumb -->
42
42
 
43
- <button type="button" id="sidebar-trigger" class="btn btn-link">
43
+ <button type="button" id="sidebar-trigger" class="btn btn-link" aria-label="Sidebar">
44
44
  <i class="fas fa-bars fa-fw"></i>
45
45
  </button>
46
46
 
@@ -55,7 +55,7 @@
55
55
  {% endif %}
56
56
  </div>
57
57
 
58
- <button type="button" id="search-trigger" class="btn btn-link">
58
+ <button type="button" id="search-trigger" class="btn btn-link" aria-label="Search">
59
59
  <i class="fas fa-search fa-fw"></i>
60
60
  </button>
61
61
 
@@ -31,7 +31,10 @@
31
31
  }
32
32
 
33
33
  %tag-hover {
34
+ @extend %link-color;
35
+
34
36
  background: var(--tag-hover);
37
+ border-color: var(--tag-hover);
35
38
  transition: background 0.35s ease-in-out;
36
39
  }
37
40
 
@@ -143,9 +143,7 @@ header {
143
143
 
144
144
  .post-tag {
145
145
  &:hover {
146
- @extend %link-hover;
147
146
  @extend %tag-hover;
148
- @extend %no-bottom-border;
149
147
  }
150
148
  }
151
149
  }
@@ -272,12 +270,8 @@ header {
272
270
  padding-left: 0;
273
271
 
274
272
  li {
275
- &:not(:last-child) {
276
- margin: 0.4rem 0;
277
- }
278
-
279
273
  a {
280
- padding: 0.2rem 0 0.2rem 1.25rem;
274
+ padding: 0.4rem 0 0.4rem 1.25rem;
281
275
  }
282
276
  }
283
277