jekyll-theme-chirpy-g 1.0.2 → 1.0.4

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.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/_data/locales/ca-ES.yml +84 -0
  3. data/_data/locales/da-DK.yml +86 -0
  4. data/_data/locales/dv/342/200/221MV.yml +90 -0
  5. data/_data/locales/{fa-IR.yaml → fa-IR.yml} +8 -8
  6. data/_data/locales/ja-JP.yml +84 -0
  7. data/_data/locales/ku-IQ.yml +91 -0
  8. data/_data/locales/ps/342/200/221AF.yml +90 -0
  9. data/_data/locales/ur-PK.yml +90 -0
  10. data/_data/origin/cors.yml +8 -8
  11. data/_includes/embed/audio.html +1 -1
  12. data/_includes/embed/spotify.html +22 -0
  13. data/_includes/favicons.html +3 -8
  14. data/_includes/head.html +16 -3
  15. data/_includes/js-selector.html +1 -1
  16. data/_includes/pageviews/goatcounter.html +1 -1
  17. data/_includes/post-summary.html +39 -0
  18. data/_includes/refactor-content.html +39 -7
  19. data/_includes/related-posts.html +1 -1
  20. data/_includes/search-results.html +1 -1
  21. data/_includes/sidebar.html +9 -1
  22. data/_includes/topbar.html +1 -1
  23. data/_layouts/default.html +2 -2
  24. data/_layouts/home.html +28 -10
  25. data/_layouts/post.html +0 -1
  26. data/_sass/abstracts/_placeholders.scss +3 -0
  27. data/_sass/base/_base.scss +10 -3
  28. data/_sass/base/_syntax.scss +2 -3
  29. data/_sass/base/_typography.scss +2 -4
  30. data/_sass/components/_popups.scss +1 -1
  31. data/_sass/pages/_home.scss +1 -4
  32. data/_sass/pages/_post.scss +1 -3
  33. data/_sass/themes/_dark.scss +46 -46
  34. data/_sass/themes/_light.scss +21 -25
  35. data/_sass/vendors/_bootstrap.scss +5 -0
  36. data/assets/404.html +1 -6
  37. data/assets/css/jekyll-theme-chirpy-g.scss +1 -0
  38. data/assets/feed.xml +1 -1
  39. data/assets/img/favicons/apple-touch-icon.png +0 -0
  40. data/assets/img/favicons/favicon-96x96.png +0 -0
  41. data/assets/img/favicons/favicon.ico +0 -0
  42. data/assets/img/favicons/favicon.svg +3 -0
  43. data/assets/img/favicons/site.webmanifest +6 -4
  44. data/assets/img/favicons/web-app-manifest-192x192.png +0 -0
  45. data/assets/img/favicons/web-app-manifest-512x512.png +0 -0
  46. data/assets/js/data/search.json +3 -5
  47. data/assets/js/dist/app.min.js +2 -2
  48. data/assets/js/dist/categories.min.js +2 -2
  49. data/assets/js/dist/commons.min.js +2 -2
  50. data/assets/js/dist/graph.min.js +2 -2
  51. data/assets/js/dist/home.min.js +2 -2
  52. data/assets/js/dist/misc.min.js +2 -2
  53. data/assets/js/dist/page.min.js +2 -2
  54. data/assets/js/dist/post.min.js +2 -2
  55. data/assets/js/dist/sw.min.js +2 -2
  56. data/assets/js/dist/theme.min.js +2 -2
  57. metadata +17 -24
  58. data/_includes/post-description.html +0 -25
  59. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  60. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  61. data/assets/img/favicons/browserconfig.xml +0 -13
  62. data/assets/img/favicons/favicon-16x16.png +0 -0
  63. data/assets/img/favicons/favicon-32x32.png +0 -0
  64. data/assets/img/favicons/mstile-150x150.png +0 -0
@@ -2,6 +2,6 @@
2
2
  permalink: /:basename
3
3
  ---
4
4
  /*!
5
- * jekyll-theme-chirpy-g v1.0.2 | © 2025 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
5
+ * jekyll-theme-chirpy-g v1.0.3 | © 2025 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
6
6
  */
7
- !function(){"use strict";importScripts("./assets/js/data/swconf.js");const e=swconf.purge,t=swconf.interceptor;self.addEventListener("install",(t=>{e||t.waitUntil(caches.open(swconf.cacheName).then((e=>e.addAll(swconf.resources))))})),self.addEventListener("activate",(t=>{t.waitUntil(caches.keys().then((t=>Promise.all(t.map((t=>e||t!==swconf.cacheName?caches.delete(t):void 0))))))})),self.addEventListener("message",(e=>{"SKIP_WAITING"===e.data&&self.skipWaiting()})),self.addEventListener("fetch",(s=>{s.request.headers.has("range")||s.respondWith(caches.match(s.request).then((n=>n||fetch(s.request).then((n=>{const r=s.request.url;if(e||"GET"!==s.request.method||!function(e){const s=new URL(e),n=s.pathname;if(!s.protocol.startsWith("http"))return!1;for(const e of t.urlPrefixes)if(s.href.startsWith(e))return!1;for(const e of t.paths)if(n.startsWith(e))return!1;return!0}(r))return n;let a=n.clone();return caches.open(swconf.cacheName).then((e=>{e.put(s.request,a)})),n})))))}))}();
7
+ !function(){"use strict";importScripts("./assets/js/data/swconf.js");const e=swconf.purge,t=swconf.interceptor;self.addEventListener("install",t=>{e||t.waitUntil(caches.open(swconf.cacheName).then(e=>e.addAll(swconf.resources)))}),self.addEventListener("activate",t=>{t.waitUntil(caches.keys().then(t=>Promise.all(t.map(t=>e||t!==swconf.cacheName?caches.delete(t):void 0))))}),self.addEventListener("message",e=>{"SKIP_WAITING"===e.data&&self.skipWaiting()}),self.addEventListener("fetch",s=>{s.request.headers.has("range")||s.respondWith(caches.match(s.request).then(n=>n||fetch(s.request).then(n=>{const r=s.request.url;if(e||"GET"!==s.request.method||!function(e){const s=new URL(e),n=s.pathname;if(!s.protocol.startsWith("http"))return!1;for(const e of t.urlPrefixes)if(s.href.startsWith(e))return!1;for(const e of t.paths)if(n.startsWith(e))return!1;return!0}(r))return n;let a=n.clone();return caches.open(swconf.cacheName).then(e=>{e.put(s.request,a)}),n})))})}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * jekyll-theme-chirpy-g v1.0.2 | © 2025 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * jekyll-theme-chirpy-g v1.0.3 | © 2025 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- var Theme=function(){"use strict";function t(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function e(e,i,s){return s(t(e,i))}var i;class s{static get DARK(){return"dark"}static get LIGHT(){return"light"}static get ID(){return"theme-mode"}static get visualState(){return e(s,this,o)?e(s,this,n):e(s,this,h)?this.DARK:this.LIGHT}static getThemeMapper(t,e){return{[this.LIGHT]:t,[this.DARK]:e}}static init(){this.switchable&&(t(s,this,b)._.addEventListener("change",(()=>{const i=e(s,this,n);t(s,this,u).call(this),i!==this.visualState&&t(s,this,l).call(this)})),e(s,this,o)&&(e(s,this,r)?t(s,this,a).call(this):t(s,this,c).call(this)))}static flip(){e(s,this,o)?t(s,this,u).call(this):e(s,this,h)?t(s,this,c).call(this):t(s,this,a).call(this),t(s,this,l).call(this)}}function n(e){return sessionStorage.getItem(t(i,e,g)._)}function r(t){return e(i,t,n)===t.DARK}function o(t){return null!==e(i,t,n)}function h(e){return t(i,e,b)._.matches}function a(){document.documentElement.setAttribute(t(i,this,v)._,this.DARK),sessionStorage.setItem(t(i,this,g)._,this.DARK)}function c(){document.documentElement.setAttribute(t(i,this,v)._,this.LIGHT),sessionStorage.setItem(t(i,this,g)._,this.LIGHT)}function u(){document.documentElement.removeAttribute(t(i,this,v)._),sessionStorage.removeItem(t(i,this,g)._)}function l(){window.postMessage({id:this.ID},"*")}i=s;var m,f,d,g={_:"mode"},v={_:"data-mode"},b={_:window.matchMedia("(prefers-color-scheme: dark)")};return m=s,f="switchable",d=!document.documentElement.hasAttribute(t(i,i,v)._),(f=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e);if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(f))in m?Object.defineProperty(m,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):m[f]=d,s.init(),s}();
4
+ var Theme=function(){"use strict";function t(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function e(e,i,s){return s(t(e,i))}var i;class s{static get DARK(){return"dark"}static get LIGHT(){return"light"}static get ID(){return"theme-mode"}static get visualState(){return e(s,this,o)?e(s,this,n):e(s,this,h)?this.DARK:this.LIGHT}static getThemeMapper(t,e){return{[this.LIGHT]:t,[this.DARK]:e}}static init(){this.switchable&&(t(s,this,b)._.addEventListener("change",()=>{const i=e(s,this,n);t(s,this,a).call(this),i!==this.visualState&&t(s,this,l).call(this)}),e(s,this,o)&&(e(s,this,r)?t(s,this,u).call(this):t(s,this,c).call(this)))}static flip(){e(s,this,o)?t(s,this,a).call(this):e(s,this,h)?t(s,this,c).call(this):t(s,this,u).call(this),t(s,this,l).call(this)}}function n(e){return sessionStorage.getItem(t(i,e,g)._)||document.documentElement.getAttribute(t(i,e,v)._)}function r(t){return e(i,t,n)===t.DARK}function o(t){return null!==e(i,t,n)}function h(e){return t(i,e,b)._.matches}function u(){document.documentElement.setAttribute(t(i,this,v)._,this.DARK),sessionStorage.setItem(t(i,this,g)._,this.DARK)}function c(){document.documentElement.setAttribute(t(i,this,v)._,this.LIGHT),sessionStorage.setItem(t(i,this,g)._,this.LIGHT)}function a(){document.documentElement.removeAttribute(t(i,this,v)._),sessionStorage.removeItem(t(i,this,g)._)}function l(){window.postMessage({id:this.ID},"*")}i=s;var m,f,d,g={_:"mode"},v={_:"data-mode"},b={_:window.matchMedia("(prefers-color-scheme: dark)")};return m=s,f="switchable",d=!document.documentElement.hasAttribute(t(i,i,v)._),(f=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e);if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(f))in m?Object.defineProperty(m,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):m[f]=d,s.init(),s}();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-chirpy-g
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cotes Chung
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-03-09 00:00:00.000000000 Z
12
+ date: 2026-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -39,20 +39,6 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.1'
42
- - !ruby/object:Gem::Dependency
43
- name: jekyll-redirect-from
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '0.16'
49
- type: :runtime
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '0.16'
56
42
  - !ruby/object:Gem::Dependency
57
43
  name: jekyll-seo-tag
58
44
  requirement: !ruby/object:Gem::Requirement
@@ -121,20 +107,26 @@ files:
121
107
  - README.md
122
108
  - _data/locales/ar.yml
123
109
  - _data/locales/bg-BG.yml
110
+ - _data/locales/ca-ES.yml
124
111
  - _data/locales/cs-CZ.yml
112
+ - _data/locales/da-DK.yml
125
113
  - _data/locales/de-DE.yml
114
+ - _data/locales/dv‑MV.yml
126
115
  - _data/locales/el-GR.yml
127
116
  - _data/locales/en.yml
128
117
  - _data/locales/es-ES.yml
129
- - _data/locales/fa-IR.yaml
118
+ - _data/locales/fa-IR.yml
130
119
  - _data/locales/fi-FI.yml
131
120
  - _data/locales/fr-FR.yml
132
121
  - _data/locales/hu-HU.yml
133
122
  - _data/locales/id-ID.yml
134
123
  - _data/locales/it-IT.yml
124
+ - _data/locales/ja-JP.yml
135
125
  - _data/locales/ko-KR.yml
126
+ - _data/locales/ku-IQ.yml
136
127
  - _data/locales/my-MM.yml
137
128
  - _data/locales/nl-NL.yml
129
+ - _data/locales/ps‑AF.yml
138
130
  - _data/locales/pt-BR.yml
139
131
  - _data/locales/ru-RU.yml
140
132
  - _data/locales/sl-SI.yml
@@ -142,6 +134,7 @@ files:
142
134
  - _data/locales/th.yml
143
135
  - _data/locales/tr-TR.yml
144
136
  - _data/locales/uk-UA.yml
137
+ - _data/locales/ur-PK.yml
145
138
  - _data/locales/vi-VN.yml
146
139
  - _data/locales/zh-CN.yml
147
140
  - _data/locales/zh-TW.yml
@@ -160,6 +153,7 @@ files:
160
153
  - _includes/datetime.html
161
154
  - _includes/embed/audio.html
162
155
  - _includes/embed/bilibili.html
156
+ - _includes/embed/spotify.html
163
157
  - _includes/embed/twitch.html
164
158
  - _includes/embed/video.html
165
159
  - _includes/embed/youtube.html
@@ -175,10 +169,10 @@ files:
175
169
  - _includes/notification.html
176
170
  - _includes/origin-type.html
177
171
  - _includes/pageviews/goatcounter.html
178
- - _includes/post-description.html
179
172
  - _includes/post-nav.html
180
173
  - _includes/post-paginator.html
181
174
  - _includes/post-sharing.html
175
+ - _includes/post-summary.html
182
176
  - _includes/read-time.html
183
177
  - _includes/refactor-content.html
184
178
  - _includes/related-posts.html
@@ -232,18 +226,17 @@ files:
232
226
  - _sass/pages/_tags.scss
233
227
  - _sass/themes/_dark.scss
234
228
  - _sass/themes/_light.scss
229
+ - _sass/vendors/_bootstrap.scss
235
230
  - assets/404.html
236
231
  - assets/css/jekyll-theme-chirpy-g.scss
237
232
  - assets/feed.xml
238
- - assets/img/favicons/android-chrome-192x192.png
239
- - assets/img/favicons/android-chrome-512x512.png
240
233
  - assets/img/favicons/apple-touch-icon.png
241
- - assets/img/favicons/browserconfig.xml
242
- - assets/img/favicons/favicon-16x16.png
243
- - assets/img/favicons/favicon-32x32.png
234
+ - assets/img/favicons/favicon-96x96.png
244
235
  - assets/img/favicons/favicon.ico
245
- - assets/img/favicons/mstile-150x150.png
236
+ - assets/img/favicons/favicon.svg
246
237
  - assets/img/favicons/site.webmanifest
238
+ - assets/img/favicons/web-app-manifest-192x192.png
239
+ - assets/img/favicons/web-app-manifest-512x512.png
247
240
  - assets/js/data/graph.json
248
241
  - assets/js/data/mathjax.js
249
242
  - assets/js/data/search.json
@@ -1,25 +0,0 @@
1
- {%- comment -%}
2
- Get post description or generate it from the post content.
3
- {%- endcomment -%}
4
-
5
- {%- assign max_length = include.max_length | default: 200 -%}
6
-
7
- {%- capture description -%}
8
- {%- if post.description -%}
9
- {{- post.description -}}
10
- {%- else -%}
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 -}}
22
- {%- endif -%}
23
- {%- endcapture -%}
24
-
25
- {{- description | strip | truncate: max_length | escape -}}
@@ -1,13 +0,0 @@
1
- ---
2
- layout: compress
3
- ---
4
-
5
- <?xml version="1.0" encoding="utf-8"?>
6
- <browserconfig>
7
- <msapplication>
8
- <tile>
9
- <square150x150logo src="{{ '/assets/img/favicons/mstile-150x150.png' | relative_url }}" />
10
- <TileColor>#da532c</TileColor>
11
- </tile>
12
- </msapplication>
13
- </browserconfig>
Binary file
Binary file
Binary file