jekyll-theme-chirpy 5.3.2 → 5.5.0

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: e41cb04667d603c381a6aa8e231c57faf6bda11954062aa72af53c4b9f718d4c
4
- data.tar.gz: 4fd7e8955a48fef7aad7419de3a0922eaf560b5e8cd352fe072da9c0992ffbc7
3
+ metadata.gz: cb770479ed84cfb6f3c07b0cdbbf511addaff67161566bef2d7df658e8dbefe5
4
+ data.tar.gz: 923363ffebc883a7a4d58b80dbee685d92ebfbff2108b9503739c699f5c3e91c
5
5
  SHA512:
6
- metadata.gz: 2fceeed912b19646cb445f22db8b5e69b3c7e1e12f1441a9f10265e08c018d6d11ba7ec404df00479cc68bdc6df20d8958d88068c879bc43d0f04d18c030a27a
7
- data.tar.gz: 951db9e3015c1d599c982388ba12adbdfa93ce763d93bd82e0994940efaa295a76fbc59c1eefa81ba9ea356b21a6a56910c8725a94a60d3939dcc6d44bc8289f
6
+ metadata.gz: 93cd13278790fee0aad9be2f9b3f309d1d00f9c0283a35151ea0cb46df583d3ba8cb888a5bba0b03278963c2217b4bb7ba5dba4c6eda4fabba804a51f14af2e2
7
+ data.tar.gz: 915ad95175325d10c8dc3bdc509a018f7a7247c309b6b56d301d574586678019abc39208cc7d96041c38e4c7aeda428730088778fd5a184b5131c65b2c425356
data/README.md CHANGED
@@ -12,30 +12,31 @@
12
12
 
13
13
  [**Live Demo →**](https://cotes2020.github.io/chirpy-demo)
14
14
 
15
- [![Devices Mockup](https://raw.githubusercontent.com/cotes2020/chirpy-images/main/commons/devices-mockup.png)](https://cotes2020.github.io/chirpy-demo)
15
+ [![Devices Mockup](https://chirpy-img.netlify.app/commons/devices-mockup.png)](https://cotes2020.github.io/chirpy-demo)
16
16
 
17
17
  </div>
18
18
 
19
19
  ## Features
20
20
 
21
- - Localized Layout
22
21
  - Dark/Light Theme Mode
22
+ - Localized UI language
23
23
  - Pinned Posts
24
24
  - Hierarchical Categories
25
- - Last Modified Date for Posts
25
+ - Trending Tags
26
26
  - Table of Contents
27
- - Auto-generated Related Posts
27
+ - Last Modified Date of Posts
28
28
  - Syntax Highlighting
29
29
  - Mathematical Expressions
30
30
  - Mermaid Diagram & Flowchart
31
+ - Dark/Light Mode Images
32
+ - Embed Videos
31
33
  - Disqus/Utterances/Giscus Comments
32
34
  - Search
33
35
  - Atom Feeds
34
36
  - Google Analytics
35
- - GA Pageviews Reporting
37
+ - Page Views Reporting
36
38
  - SEO & Performance Optimization
37
39
 
38
-
39
40
  ## Quick Start
40
41
 
41
42
  Before starting, please follow the instructions in the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of `Ruby`, `RubyGems`, `Jekyll`, and `Bundler`. In addition, [Git](https://git-scm.com/) is also required to be installed.
@@ -16,47 +16,47 @@ 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/dist/jquery.min.js
19
+ js: https://cdn.jsdelivr.net/npm/jquery@3.6.1/dist/jquery.min.js
20
20
 
21
21
  bootstrap:
22
- css: https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css
23
- js: https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.bundle.min.js
22
+ css: https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css
23
+ js: https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js
24
24
 
25
25
  bootstrap-toc:
26
26
  css: https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.css
27
27
  js: https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.js
28
28
 
29
29
  fontawesome:
30
- css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css
30
+ css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.2.1/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/dist/mermaid.min.js
36
+ js: https://cdn.jsdelivr.net/npm/mermaid@9.2.2/dist/mermaid.min.js
37
37
 
38
38
  dayjs:
39
39
  js:
40
- common: https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js
41
- locale: https://cdn.jsdelivr.net/npm/dayjs@1/locale/:LOCALE.min.js
42
- relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.min.js
43
- localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1/plugin/localizedFormat.min.js
40
+ common: https://cdn.jsdelivr.net/npm/dayjs@1.11.6/dayjs.min.js
41
+ locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.6/locale/:LOCALE.min.js
42
+ relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.6/plugin/relativeTime.min.js
43
+ localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.6/plugin/localizedFormat.min.js
44
44
 
45
45
  countup:
46
46
  js: https://cdn.jsdelivr.net/npm/countup.js@1.9.3/dist/countUp.min.js
47
47
 
48
48
  magnific-popup:
49
- css: https://cdn.jsdelivr.net/npm/magnific-popup@1/dist/magnific-popup.min.css
50
- js: https://cdn.jsdelivr.net/npm/magnific-popup@1/dist/jquery.magnific-popup.min.js
49
+ css: https://cdn.jsdelivr.net/npm/magnific-popup@1.1.0/dist/magnific-popup.min.css
50
+ js: https://cdn.jsdelivr.net/npm/magnific-popup@1.1.0/dist/jquery.magnific-popup.min.js
51
51
 
52
- lozad:
53
- js: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js
52
+ lazysizes:
53
+ js: https://cdn.jsdelivr.net/npm/lazysizes@5.3.2/lazysizes.min.js
54
54
 
55
55
  clipboard:
56
- js: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js
56
+ js: https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js
57
57
 
58
58
  polyfill:
59
59
  js: https://polyfill.io/v3/polyfill.min.js?features=es6
60
60
 
61
61
  mathjax:
62
- js: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js
62
+ js: https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-chtml.js
@@ -38,8 +38,8 @@ magnific-popup:
38
38
  css: /assets/lib/magnific-popup-1.1.0/magnific-popup.css
39
39
  js: /assets/lib/magnific-popup-1.1.0/jquery.magnific-popup.min.js
40
40
 
41
- lozad:
42
- js: /assets/lib/lozad-1.16.0/lozad.min.js
41
+ lazysizes:
42
+ js: /assets/lib/lazysizes-5.3.2/lazysizes.min.js
43
43
 
44
44
  clipboard:
45
45
  js: /assets/lib/clipboard-2.0.9/clipboard.min.js
data/_data/contact.yml CHANGED
@@ -19,7 +19,7 @@
19
19
  # -
20
20
  # type: mastodon
21
21
  # icon: 'fab fa-mastodon' # icons powered by <https://fontawesome.com/>
22
- # url: '' # Fill with your mastodon account page
22
+ # url: '' # Fill with your Mastodon account page, rel="me" will be applied for verification
23
23
  # -
24
24
  # type: linkedin
25
25
  # icon: 'fab fa-linkedin' # icons powered by <https://fontawesome.com/>
@@ -0,0 +1,93 @@
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
+ statment: عذرا, الرابط التالي غير صالح أو انه يشير إلى صفحة غير موجودة.
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
+ # pinned prompt of posts list on homepage
74
+ pin_prompt: مثبت
75
+
76
+ # Date time format.
77
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
78
+ df:
79
+ post:
80
+ strftime: '%b %e, %Y'
81
+ dayjs: 'll'
82
+ archives:
83
+ strftime: '%b'
84
+ dayjs: 'MMM'
85
+
86
+ # categories page
87
+ categories:
88
+ category_measure:
89
+ singular: فئة
90
+ plural: فئات
91
+ post_measure:
92
+ singular: منشور
93
+ plural: منشورات
@@ -5,7 +5,7 @@
5
5
  layout:
6
6
  post: Публикация
7
7
  category: Категория
8
- tag: Тагове
8
+ tag: Таг
9
9
 
10
10
  # The tabs of sidebar
11
11
  tabs:
@@ -43,7 +43,7 @@ copyright:
43
43
  meta: Създадено чрез :PLATFORM и :THEME тема.
44
44
 
45
45
  not_found:
46
- statment: Съжалявам, но този на този URL адрес няма налично съдържание.
46
+ statment: Съжалявам, но на този URL адрес няма налично съдържание.
47
47
 
48
48
  notification:
49
49
  update_found: Налична е нова версия на съдържанието.
@@ -71,7 +71,7 @@ post:
71
71
  title: Копирай линк
72
72
  succeed: Линкът е копиран успешно!
73
73
  # pinned prompt of posts list on homepage
74
- pin_prompt: Прикрепен
74
+ pin_prompt: Прикрепенa
75
75
 
76
76
  # categories page
77
77
  categories:
@@ -0,0 +1,91 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Příspěvek
7
+ category: Kategorie
8
+ tag: Štítek
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Domů
14
+ categories: Kategorie
15
+ tags: Štítky
16
+ archives: Archivy
17
+ about: O mně
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: hledat
22
+ cancel: Zrušit
23
+ no_results: Ups! Žádný výsledek nenalezen.
24
+
25
+ panel:
26
+ lastmod: Nedávno aktualizováno
27
+ trending_tags: Trendy štítky
28
+ toc: Obsah
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Tento příspěvek je licencován pod :LICENSE_NAME autorem.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Některá práva vyhrazena.
39
+ verbose: >-
40
+ Pokud není uvedeno jinak, jsou příspěvky na tomto webu licencovány
41
+ pod licencí Creative Commons Attribution 4.0 International (CC BY 4.0) Licence autora.
42
+
43
+ meta: Použití :PLATFORM s motivem :THEME.
44
+
45
+ not_found:
46
+ statment: Omlouváme se, adresu URL jsme špatně umístili nebo odkazuje na něco, co neexistuje.
47
+
48
+ notification:
49
+ update_found: Je k dispozici nová verze obsahu.
50
+ update: Aktualizace
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: Od
56
+ posted: Zveřejněno
57
+ updated: Aktualizováno
58
+ words: slova
59
+ pageview_measure: zhlednutí
60
+ read_time:
61
+ unit: minut
62
+ prompt: čtení
63
+ relate_posts: Další čtení
64
+ share: Sdílet
65
+ button:
66
+ next: Novější
67
+ previous: Starší
68
+ copy_code:
69
+ succeed: Zkopírováno!
70
+ share_link:
71
+ title: Kopírovat odkaz
72
+ succeed: Zkopírováno!
73
+ # pinned prompt of posts list on homepage
74
+ pin_prompt: Připnuto
75
+
76
+ # Date time format.
77
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
78
+ df:
79
+ post:
80
+ strftime: '%b %e, %Y'
81
+ dayjs: 'll'
82
+ archives:
83
+ strftime: '%b'
84
+ dayjs: 'MMM'
85
+
86
+ # categories page
87
+ categories:
88
+ category_measure: kategorie
89
+ post_measure:
90
+ singular: příspěvěk
91
+ plural: příspěvky
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: Powered by :PLATFORM with :THEME theme.
43
+ meta: Using the :PLATFORM theme :THEME.
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.
@@ -0,0 +1,92 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Julkaisu
7
+ category: Kateogoria
8
+ tag: Tagi
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Koti
14
+ categories: Kateogoriat
15
+ tags: Tagit
16
+ archives: Arkistot
17
+ about: Minusta
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: etsi
22
+ cancel: Peruuta
23
+ no_results: Hups! Ei tuloksia.
24
+
25
+ panel:
26
+ lastmod: Viimeksi päivitetty
27
+ trending_tags: Trendaavat tagit
28
+ toc: Sisältö
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Tämä julkaisu on lisenssoitu :LICENSE_NAME julkaisijan toimesta.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Jotkut oikeudet pidätetään.
39
+ verbose: >-
40
+ Paitsi jos erikseen mainitaan on kaikki sisältö Creative Commons Attribution 4.0 International (CC BY 4.0) Lisensoitu kirjoittajan toimesta.
41
+
42
+ meta: Käytetään :PLATFORM iä Teema :THEME.
43
+
44
+ not_found:
45
+ statment: Valitettavasti tällä URL-osoitteella ei ole saatavilla sisältöä.
46
+
47
+ notification:
48
+ update_found: Uusi versio sisällöstä on saatavilla.
49
+ update: Päivitä
50
+
51
+ # ----- Posts related labels -----
52
+
53
+ post:
54
+ written_by: Kirjoittaja
55
+ posted: Julkaistu
56
+ updated: Päivitetty
57
+ words: sanaa
58
+ pageview_measure: katselukertoja
59
+ read_time:
60
+ unit: minuuttia
61
+ prompt: lukea
62
+ relate_posts: Jatka lukemista
63
+ share: Jaa
64
+ button:
65
+ next: Uudempi
66
+ previous: Vanhempi
67
+ copy_code:
68
+ succeed: Kopiotu!
69
+ share_link:
70
+ title: Kopioi linkki
71
+ succeed: Linkki kopioitu onnistuneesti!
72
+ # pinned prompt of posts list on homepage
73
+ pin_prompt: Kiinnitetty
74
+
75
+ # Date time format.
76
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
77
+ df:
78
+ post:
79
+ strftime: '%b %e, %Y'
80
+ dayjs: 'll'
81
+ archives:
82
+ strftime: '%b'
83
+ dayjs: 'MMM'
84
+
85
+ # categories page
86
+ categories:
87
+ category_measure:
88
+ singular: kategoria
89
+ plural: kategoriat
90
+ post_measure:
91
+ singular: julkaisu
92
+ plural: julkaisut
@@ -0,0 +1,93 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Post
7
+ category: Categoria
8
+ tag: Tag
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Pagina principale
14
+ categories: Categorie
15
+ tags: Tags
16
+ archives: Archivio
17
+ about: Informazioni
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: ricerca
22
+ cancel: Cancella
23
+ no_results: Oops! La ricerca non ha fornito risultati.
24
+
25
+ panel:
26
+ lastmod: Aggiornati recentemente
27
+ trending_tags: Tags più cliccati
28
+ toc: Contenuti
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Questo post è sotto licenza :LICENSE_NAME a nome dell'autore.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Alcuni diritti riservati.
39
+ verbose: >-
40
+ Eccetto quando esplicitamente menzionato, i post di questo blog sono da ritenersi sotto
41
+ i termini di licenza Creative Commons Attribution 4.0 International (CC BY 4.0).
42
+
43
+
44
+ meta: Servizio offerto da :PLATFORM con tema :THEME.
45
+ not_found:
46
+ statment: Ci scusiamo, non è stato possibile trovare l'URL in questione. Potrebbe puntare ad una pagina non esistente.
47
+
48
+ notification:
49
+ update_found: Nuova versione del contenuto disponibile.
50
+ update: Aggiornamento
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: Da
56
+ posted: Postato
57
+ updated: Aggiornato
58
+ words: parole
59
+ pageview_measure: visioni
60
+ read_time:
61
+ unit: min
62
+ prompt: lettura
63
+ relate_posts: Continua a leggere
64
+ share: Condividi
65
+ button:
66
+ next: Più recenti
67
+ previous: Meno recenti
68
+ copy_code:
69
+ succeed: Copiato!
70
+ share_link:
71
+ title: Copia link
72
+ succeed: Link copiato con successo!
73
+ # pinned prompt of posts list on homepage
74
+ pin_prompt: In alto
75
+
76
+ # Date time format.
77
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
78
+ df:
79
+ post:
80
+ strftime: '%b %e, %Y'
81
+ dayjs: 'll'
82
+ archives:
83
+ strftime: '%b'
84
+ dayjs: 'MMM'
85
+
86
+ # categories page
87
+ categories:
88
+ category_measure:
89
+ singular: categoria
90
+ plural: categorie
91
+ post_measure:
92
+ singular: post
93
+ plural: posts
@@ -0,0 +1,4 @@
1
+ <iframe class="embed-video twitch lazyload"
2
+ src="https://player.twitch.tv/?video={{ include.id }}&parent={{ site.url | split: '://' | last | remove: '/' }}"
3
+ frameborder="0" allowfullscreen="true"
4
+ scrolling="no"></iframe>
@@ -0,0 +1,6 @@
1
+ <iframe class="embed-video youtube lazyload"
2
+ src="https://www.youtube.com/embed/{{ include.id }}"
3
+ title="YouTube video player"
4
+ frameborder="0"
5
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
6
+ allowfullscreen></iframe>
@@ -17,16 +17,16 @@
17
17
  <div class="footer-right">
18
18
  <p class="mb-0">
19
19
 
20
- {% capture _platform %}
20
+ {%- capture _platform -%}
21
21
  <a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
22
- {% endcapture %}
22
+ {%- endcapture -%}
23
23
 
24
- {% capture _theme %}
24
+ {%- capture _theme -%}
25
25
  <a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a>
26
- {% endcapture %}
26
+ {%- endcapture -%}
27
27
 
28
28
  {{ site.data.locales[site.lang].meta
29
- | default: 'Powered by :PLATFORM with :THEME theme.'
29
+ | default: 'Using the :PLATFORM theme :THEME.'
30
30
  | replace: ':PLATFORM', _platform | replace: ':THEME', _theme
31
31
  }}
32
32
  </p>
data/_includes/head.html CHANGED
@@ -24,20 +24,25 @@
24
24
 
25
25
  {% if page.image %}
26
26
  {% assign img = page.image.path | default: page.image %}
27
- {% assign img_path = page.img_path | append: '/' | append: img | replace: '//', '/' %}
28
- {% capture target %}"{{ img | absolute_url }}"{% endcapture %}
29
-
30
- {% if site.img_cdn contains '//' %}
31
- <!-- it's a cross-origin URL -->
32
- {% capture replacement %}"{{ site.img_cdn }}{{ img_path }}"{% endcapture %}
33
- {% else %}
34
- <!-- it's a local file path -->
35
- {%- capture replacement -%}
36
- "{{ site.img_cdn | append: '/' | append: img_path | replace: '//', '/' | absolute_url }}"
37
- {%- endcapture -%}
38
- {% endif %}
39
27
 
40
- {% assign seo_tags = seo_tags | replace: target, replacement %}
28
+ {% unless img contains '://' %}
29
+ {% assign img_path = page.img_path | append: '/' | append: img | replace: '//', '/' %}
30
+ {% capture target %}"{{ img | absolute_url }}"{% endcapture %}
31
+
32
+ {% if site.img_cdn contains '//' %}
33
+ <!-- it's a cross-origin URL -->
34
+ {% capture replacement %}"{{ site.img_cdn }}{{ img_path }}"{% endcapture %}
35
+ {% else %}
36
+ <!-- it's a local file path -->
37
+ {%- capture replacement -%}
38
+ "{{ site.img_cdn | append: '/' | append: img_path | replace: '//', '/' | absolute_url }}"
39
+ {%- endcapture -%}
40
+ {% endif %}
41
+
42
+ {% assign seo_tags = seo_tags | replace: target, replacement %}
43
+
44
+ {% endunless %}
45
+
41
46
  {% endif %}
42
47
 
43
48
  {{ seo_tags }}
@@ -15,12 +15,11 @@
15
15
  {% if page.layout == 'post' or page.layout == 'page' %}
16
16
  <!-- image lazy-loading & popup & clipboard -->
17
17
  {% assign _urls = site.data.assets[origin].magnific-popup.js
18
- | append: ',' | append: site.data.assets[origin].lozad.js
18
+ | append: ',' | append: site.data.assets[origin].lazysizes.js
19
19
  | append: ',' | append: site.data.assets[origin].clipboard.js
20
20
  %}
21
21
 
22
22
  {% include jsdelivr-combine.html urls=_urls %}
23
-
24
23
  {% endif %}
25
24
 
26
25
  {% if page.layout == 'home'
@@ -6,7 +6,7 @@
6
6
  <span class="share-label text-muted mr-1">{{ site.data.locales[site.lang].post.share }}</span>
7
7
  <span class="share-icons">
8
8
  {% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
9
- {% assign title = title | url_encode %}
9
+ {% assign title = title | uri_escape %}
10
10
  {% assign url = page.url | absolute_url | url_encode %}
11
11
 
12
12
  {% for share in site.data.share.platforms %}