jekyll-theme-chirpy 5.1.0 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/_config.yml +3 -0
  3. data/_data/authors.yml +17 -0
  4. data/_data/locales/en.yml +11 -6
  5. data/_data/locales/es-ES.yml +79 -0
  6. data/_data/locales/fr-FR.yml +79 -0
  7. data/_data/locales/id-ID.yml +4 -3
  8. data/_data/locales/ko-KR.yml +4 -3
  9. data/_data/locales/my-MM.yml +4 -3
  10. data/_data/locales/pt-BR.yml +79 -0
  11. data/_data/locales/ru-RU.yml +4 -3
  12. data/_data/locales/uk-UA.yml +4 -3
  13. data/_data/locales/vi-VN.yml +77 -0
  14. data/_data/locales/zh-CN.yml +4 -3
  15. data/_includes/datetime.html +21 -0
  16. data/_includes/footer.html +5 -6
  17. data/_includes/head.html +33 -7
  18. data/_includes/js-selector.html +9 -5
  19. data/_includes/mermaid.html +1 -1
  20. data/_includes/post-nav.html +4 -4
  21. data/_includes/post-paginator.html +2 -2
  22. data/_includes/post-sharing.html +3 -2
  23. data/_includes/refactor-content.html +9 -4
  24. data/_includes/related-posts.html +1 -4
  25. data/_includes/search-loader.html +1 -1
  26. data/_includes/sidebar.html +2 -2
  27. data/_includes/toc.html +1 -1
  28. data/_includes/topbar.html +2 -2
  29. data/_layouts/archives.html +15 -4
  30. data/_layouts/categories.html +25 -4
  31. data/_layouts/category.html +3 -3
  32. data/_layouts/default.html +19 -6
  33. data/_layouts/home.html +3 -7
  34. data/_layouts/page.html +8 -10
  35. data/_layouts/post.html +52 -44
  36. data/_layouts/tag.html +3 -3
  37. data/_layouts/tags.html +3 -1
  38. data/_sass/addon/commons.scss +115 -186
  39. data/_sass/addon/syntax.scss +1 -1
  40. data/_sass/addon/variables.scss +3 -3
  41. data/_sass/jekyll-theme-chirpy.scss +1 -1
  42. data/_sass/layout/post.scss +3 -6
  43. data/assets/404.html +0 -15
  44. data/assets/js/data/search.json +5 -5
  45. data/assets/js/dist/categories.min.js +2 -2
  46. data/assets/js/dist/commons.min.js +2 -2
  47. data/assets/js/dist/home.min.js +2 -2
  48. data/assets/js/dist/misc.min.js +2 -2
  49. data/assets/js/dist/page.min.js +2 -2
  50. data/assets/js/dist/post.min.js +2 -2
  51. data/assets/js/dist/pvreport.min.js +2 -2
  52. data/assets/js/pwa/app.js +55 -4
  53. data/assets/js/pwa/sw.js +42 -40
  54. data/assets/js/pwa/unregister.js +12 -0
  55. metadata +11 -5
  56. data/_includes/timeago.html +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 043dfe3b5591aeeb77214df1a3ad42b1de715f1e9c9662ed00503ab7ff3ae72b
4
- data.tar.gz: d665212495c2bc98abb48341a2d3e92f01caced260d14c0ef90286d8daffc2e0
3
+ metadata.gz: c81c39e181ad22387edde9225772bc693e4253c6a610023f730c343af2ccdc79
4
+ data.tar.gz: dfea7d51da714436d588ede746cf1b65c2030c8b5327555134d8799ced5ea258
5
5
  SHA512:
6
- metadata.gz: 9b1f3a3f2798d51feb43c504b1d6d1da6d1a83e63daca6f64c60cb6beafef94cb11cc2643d412b830e6418a74141983b369482ad7a323f2fe17e809e96df6bb1
7
- data.tar.gz: a9934d55bad3269de239e306096af0e6d744d064e3967e7e7d2c5357465e2b06371dda86f6caf022f66643521dd6e3fc84e51baf100dcfef7dff55d018621b99
6
+ metadata.gz: 5d604d1a13948a5ad0c117a47555a073fa50228e3789a7934c567ede94eac30c66ff837673565733b9022fce08df91547f175e6cb9ece9af25a8a1a833542aaf
7
+ data.tar.gz: 3c5d9126c604ad8ad0ebfc1b16891fa8d31223ceb6954ee33c34870cbe853c880f65ad0b96627b8b307a026433e654de7a180677d27804ceb62ab961c27d8f86
data/_config.yml CHANGED
@@ -115,6 +115,9 @@ assets:
115
115
  # only works if `assets.self_host.enabled` is 'true'
116
116
  env: # [development|production]
117
117
 
118
+ pwa:
119
+ enabled: true # the option for PWA feature
120
+
118
121
  paginate: 10
119
122
 
120
123
  # ------------ The following options are not recommended to be modified ------------------
data/_data/authors.yml ADDED
@@ -0,0 +1,17 @@
1
+ ## Template › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/advanced-usage.md#setting-author-url
2
+ # -------------------------------------
3
+ # {author_id}:
4
+ # name: {full name}
5
+ # twitter: {twitter_of_author}
6
+ # url: {homepage_of_author}
7
+ # -------------------------------------
8
+
9
+ cotes:
10
+ name: Cotes Chung
11
+ twitter: cotes2020
12
+ url: https://github.com/cotes2020/
13
+
14
+ sille_bille:
15
+ name: Dinesh Prasanth Moluguwan Krishnamoorthy
16
+ twitter: dinesh_MKD
17
+ url: https://github.com/SilleBille/
data/_data/locales/en.yml CHANGED
@@ -20,7 +20,7 @@ tabs:
20
20
  search:
21
21
  hint: search
22
22
  cancel: Cancel
23
- no_results: Oops! No result founds.
23
+ no_results: Oops! No results found.
24
24
 
25
25
  panel:
26
26
  lastmod: Recently Updated
@@ -44,9 +44,10 @@ meta: Powered by :PLATFORM with :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.
47
- hint_template: :HEAD_BAK to try finding it again, or search for it on the :ARCHIVES_PAGE.
48
- head_back: Head back Home
49
- archives_page: Archives page
47
+
48
+ notification:
49
+ update_found: A new version of content is available.
50
+ update: Update
50
51
 
51
52
  # ----- Posts related labels -----
52
53
 
@@ -74,5 +75,9 @@ post:
74
75
 
75
76
  # categories page
76
77
  categories:
77
- category_measure: categories
78
- post_measure: posts
78
+ category_measure:
79
+ singular: category
80
+ plural: categories
81
+ post_measure:
82
+ singular: post
83
+ plural: posts
@@ -0,0 +1,79 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Entrada
7
+ category: Categoría
8
+ tag: Etiqueta
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Inicio
14
+ categories: Categorías
15
+ tags: Etiquetas
16
+ archives: Archivo
17
+ about: Acerca de
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: Buscar
22
+ cancel: Cancelar
23
+ no_results: ¡Oops! No se encuentran resultados.
24
+
25
+ panel:
26
+ lastmod: Actualizado recientemente
27
+ trending_tags: Etiquetas populares
28
+ toc: Contenido
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Esta entrada está licenciada bajo :LICENSE_NAME por el autor.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Algunos derechos reservados.
39
+ verbose: >-
40
+ Salvo que se indique explícitamente, las entradas de este blog están licenciadas
41
+ bajo la Creative Commons Attribution 4.0 International (CC BY 4.0) License por el autor.
42
+
43
+ meta: Hecho con :PLATFORM usando el tema :THEME.
44
+
45
+ not_found:
46
+ statment: Lo sentimos, hemos perdido esa URL o apunta a algo que no existe.
47
+
48
+ notification:
49
+ update_found: Hay una nueva versión de contenido disponible.
50
+ update: Actualizar
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: Por
56
+ posted: Publicado
57
+ updated: Actualizado
58
+ words: palabras
59
+ pageview_measure: visitas
60
+ read_time:
61
+ unit: min
62
+ prompt: ' de lectura'
63
+ relate_posts: Lecturas adicionales
64
+ share: Compartir
65
+ button:
66
+ next: Nuevo
67
+ previous: Anterior
68
+ copy_code:
69
+ succeed: ¡Copiado!
70
+ share_link:
71
+ title: Copiar enlace
72
+ succeed: ¡Enlace copiado!
73
+ # pinned prompt of posts list on homepage
74
+ pin_prompt: Fijado
75
+
76
+ # categories page
77
+ categories:
78
+ category_measure: categorias
79
+ post_measure: entradas
@@ -0,0 +1,79 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Post
7
+ category: Catégorie
8
+ tag: Tag
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Accueil
14
+ categories: Catégories
15
+ tags: Tags
16
+ archives: Archives
17
+ about: A propos de
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: recherche
22
+ cancel: Annuler
23
+ no_results: Oups ! Aucun résultat trouvé.
24
+
25
+ panel:
26
+ lastmod: Récemment mis à jour
27
+ trending_tags: Tags tendance
28
+ toc: Contenu
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Cet article est sous licence :LICENSE_NAME par l'auteur.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Certains droits réservés.
39
+ verbose: >-
40
+ Sauf mention contraire, les articles de ce site sont publiés sous licence
41
+ sous la licence Creative Commons Attribution 4.0 International (CC BY 4.0) par l'auteur.
42
+
43
+ meta: Propulsé par :PLATFORM avec le thème :THEME
44
+
45
+ not_found:
46
+ statment: Désolé, nous avons égaré cette URL ou elle pointe vers quelque chose qui n'existe pas.
47
+
48
+ notification:
49
+ update_found: Une nouvelle version du contenu est disponible.
50
+ update: Mise à jour
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: Par
56
+ posted: Posté
57
+ updated: Mis à jour
58
+ words: mots
59
+ pageview_measure: vues
60
+ read_time:
61
+ unit: min
62
+ prompt: lire
63
+ relate_posts: Autres lectures
64
+ share: Partager
65
+ button:
66
+ next: Plus récent
67
+ previous: Plus ancien
68
+ copy_code:
69
+ succeed: Copié !
70
+ share_link:
71
+ title: Copier le lien
72
+ succeed: Lien copié avec succès !
73
+ # pinned prompt of posts list on homepage
74
+ pin_prompt: Épinglé
75
+
76
+ # categories page
77
+ categories:
78
+ category_measure: catégories
79
+ post_measure: posts
@@ -44,9 +44,10 @@ meta: Didukung oleh :PLATFORM dengan tema :THEME.
44
44
 
45
45
  not_found:
46
46
  statment: Maaf, kami gagal menemukan URL itu atau memang mengarah ke sesuatu yang tidak ada.
47
- hint_template: :HEAD_BAK untuk mencoba mencari kembali, atau cari di :ARCHIVES_PAGE.
48
- head_back: Kembali ke Beranda
49
- archives_page: Halaman Arsip
47
+
48
+ notification:
49
+ update_found: Versi konten baru tersedia.
50
+ update: Perbarui
50
51
 
51
52
  # ----- Posts related labels -----
52
53
 
@@ -44,9 +44,10 @@ meta: Powered by :PLATFORM with :THEME theme.
44
44
 
45
45
  not_found:
46
46
  statment: 해당 URL은 존재하지 않습니다.
47
- hint_template: :HEAD_BAK을 눌러 다시 찾거나 :ARCHIVES_PAGE에서 검색해 주세요.
48
- head_back: 홈으로 돌아가기
49
- archives_page: 아카이브 페이지
47
+
48
+ notification:
49
+ update_found: 버전의 콘텐츠를 사용할 수 있습니다.
50
+ update: 업데이트
50
51
 
51
52
  # ----- Posts related labels -----
52
53
 
@@ -44,9 +44,10 @@ meta: Powered by :PLATFORM with :THEME theme.
44
44
 
45
45
  not_found:
46
46
  statment: ဝမ်းနည်းပါသည်၊ ကျွန်ုပ်တို့သည် အဆိုပါ URL ကို မှားယွင်းစွာ နေရာချထားခြင်း သို့မဟုတ် ၎င်းသည် မရှိသောအရာကို ညွှန်ပြနေပါသည်။
47
- hint_template: ၎င်းကို ထပ်မံရှာဖွေရန် :HEAD_BAK , သို့မဟုတ် :ARCHIVES_PAGE တွင်ရှာပါ။
48
- head_back: အဓိကစာမျက်နှာသို့ပြန်သွားပါ။
49
- archives_page: မှတ်တမ်း​တိုက် စာမျက်နှာ။
47
+
48
+ notification:
49
+ update_found: အကြောင်းအရာဗားရှင်းအသစ်ကို ရနိုင်ပါပြီ။
50
+ update: အပ်ဒိတ်
50
51
 
51
52
  # ----- Posts related labels -----
52
53
 
@@ -0,0 +1,79 @@
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: Home
14
+ categories: Categorias
15
+ tags: Tags
16
+ archives: Arquivos
17
+ about: Sobre
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: Buscar
22
+ cancel: Cancelar
23
+ no_results: Oops! Nenhum resultado encontrado.
24
+
25
+ panel:
26
+ lastmod: Atualizados recentemente
27
+ trending_tags: Trending Tags
28
+ toc: Conteúdo
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Esta postagem está licenciada sob :LICENSE_NAME pelo 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 direitos reservados.
39
+ verbose: >-
40
+ Exceto onde indicado de outra forma, as postagens do blog neste site são licenciadas sob a
41
+ Creative Commons Attribution 4.0 International (CC BY 4.0) License pelo autor.
42
+
43
+ meta: Feito com :PLATFORM usando o tema :THEME.
44
+
45
+ not_found:
46
+ statment: Desculpe, a página não foi encontrada.
47
+
48
+ notification:
49
+ update_found: Uma nova versão do conteúdo está disponível.
50
+ update: atualização
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: Por
56
+ posted: Postado em
57
+ updated: Atualizado
58
+ words: palavras
59
+ pageview_measure: visualizações
60
+ read_time:
61
+ unit: min
62
+ prompt: " de leitura"
63
+ relate_posts: Leia também
64
+ share: Compartilhar
65
+ button:
66
+ next: Próximo
67
+ previous: Anterior
68
+ copy_code:
69
+ succeed: Copiado!
70
+ share_link:
71
+ title: Copie o link
72
+ succeed: Link copiado com sucesso!
73
+ # pinned prompt of posts list on homepage
74
+ pin_prompt: Fixado
75
+
76
+ # categories page
77
+ categories:
78
+ category_measure: categorias
79
+ post_measure: posts
@@ -44,9 +44,10 @@ meta: Powered by :PLATFORM with :THEME theme.
44
44
 
45
45
  not_found:
46
46
  statment: Извините, эта ссылка указывает на ресурс который не существует.
47
- hint_template: :HEAD_BAK чтобы снова осуществить поиск, или поищите :ARCHIVES_PAGE.
48
- head_back: Вернитесь на домашнюю страницу
49
- archives_page: архиве
47
+
48
+ notification:
49
+ update_found: Доступна новая версия контента.
50
+ update: Обновлять
50
51
 
51
52
  # ----- Posts related labels -----
52
53
 
@@ -44,9 +44,10 @@ meta: Powered by :PLATFORM with :THEME theme.
44
44
 
45
45
  not_found:
46
46
  statment: Вибачте, це посилання вказує на ресурс, що не існує.
47
- hint_template: :HEAD_BAK аби здійснити пошук, або пошукайте в :ARCHIVES_PAGE.
48
- head_back: Поверніться на домашню сторінку
49
- archives_page: архіві
47
+
48
+ notification:
49
+ update_found: Доступна нова версія вмісту.
50
+ update: Оновлення
50
51
 
51
52
  # ----- Posts related labels -----
52
53
 
@@ -0,0 +1,77 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Bài viết
7
+ category: Danh mục
8
+ tag: Thẻ
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Trang chủ
14
+ categories: Các danh mục
15
+ tags: Các thẻ
16
+ archives: Lưu trữ
17
+ about: Giới thiệu
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: tìm kiếm
22
+ cancel: Hủy
23
+ no_results: Không có kết quả tìm kiếm.
24
+
25
+ panel:
26
+ lastmod: Mới cập nhật
27
+ trending_tags: Các thẻ thịnh hành
28
+ toc: Mục lục
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Bài viết này được cấp phép bởi tác giả theo giấy phép :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: Một số quyền được bảo lưu.
39
+ verbose: >-
40
+ Trừ khi có ghi chú khác, các bài viết đăng trên trang này được cấp phép bởi tác giả theo giấy phép Creative Commons Attribution 4.0 International (CC BY 4.0).
41
+ meta: Trang web này được tạo bởi :PLATFORM với chủ đề :THEME.
42
+
43
+ not_found:
44
+ statment: Xin lỗi, chúng tôi đã đặt nhầm URL hoặc đường dẫn trỏ đến một trang nào đó không tồn tại.
45
+
46
+ notification:
47
+ update_found: Đã có phiên bản mới của nội dung.
48
+ update: Cập nhật
49
+
50
+ # ----- Posts related labels -----
51
+
52
+ post:
53
+ written_by: Viết bởi
54
+ posted: Đăng lúc
55
+ updated: Cập nhật lúc
56
+ words: từ
57
+ pageview_measure: lượt xem
58
+ read_time:
59
+ unit: phút
60
+ prompt: đọc
61
+ relate_posts: Bài viết liên quan
62
+ share: Chia sẻ
63
+ button:
64
+ next: Mới hơn
65
+ previous: Cũ hơn
66
+ copy_code:
67
+ succeed: Đã sao chép!
68
+ share_link:
69
+ title: Sao chép đường dẫn
70
+ succeed: Đã sao chép đường dẫn thành công!
71
+ # pinned prompt of posts list on homepage
72
+ pin_prompt: Bài ghim
73
+
74
+ # categories page
75
+ categories:
76
+ category_measure: danh mục
77
+ post_measure: bài viết
@@ -43,9 +43,10 @@ meta: 本站由 :PLATFORM 生成,采用 :THEME 主题。
43
43
 
44
44
  not_found:
45
45
  statment: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。
46
- hint_template: :HEAD_BAK尝试再次查找它,或在:ARCHIVES_PAGE上搜索它。
47
- head_back: 返回主页
48
- archives_page: 归档页面
46
+
47
+ notification:
48
+ update_found: 发现新版本的内容。
49
+ update: 更新
49
50
 
50
51
  # ----- Posts related labels -----
51
52
 
@@ -0,0 +1,21 @@
1
+ <!--
2
+ Date format snippet
3
+ See: ${JS_ROOT}/utils/locale-dateime.js
4
+ -->
5
+
6
+ {% assign wrap_elem = include.wrap | default: 'em' %}
7
+
8
+ {% if site.prefer_datetime_locale == 'en' or lang == 'en' %}
9
+ {% assign df_strftime = '%b %e, %Y' %}
10
+ {% assign df_dayjs = 'll' %}
11
+ {% else %}
12
+ {% assign df_strftime = '%F' %}
13
+ {% assign df_dayjs = 'YYYY-MM-DD' %}
14
+ {% endif %}
15
+
16
+ <{{ wrap_elem }} class="{% if include.class %}{{ include.class }}{% endif %}"
17
+ data-ts="{{ include.date | date: '%s' }}"
18
+ data-df="{{ df_dayjs }}"
19
+ {% if include.tooltip %}data-toggle="tooltip" data-placement="bottom"{% endif %}>
20
+ {{ include.date | date: df_strftime }}
21
+ </{{ wrap_elem }}>
@@ -1,9 +1,7 @@
1
- <!--
2
- The Footer
3
- -->
1
+ <!-- The Footer -->
4
2
 
5
- <footer class="d-flex w-100 justify-content-center">
6
- <div class="d-flex justify-content-between align-items-center text-muted">
3
+ <footer class="row pl-3 pr-3">
4
+ <div class="col-12 d-flex justify-content-between align-items-center text-muted pl-0 pr-0">
7
5
  <div class="footer-left">
8
6
  <p class="mb-0">
9
7
  © {{ 'now' | date: "%Y" }}
@@ -33,5 +31,6 @@
33
31
  </p>
34
32
  </div>
35
33
 
36
- </div> <!-- div.d-flex -->
34
+ </div>
35
+
37
36
  </footer>
data/_includes/head.html CHANGED
@@ -23,7 +23,30 @@
23
23
 
24
24
  {% endif %}
25
25
 
26
- {% seo title=false %}
26
+ {% capture seo_tags %}
27
+ {% seo title=false %}
28
+ {% endcapture %}
29
+
30
+ {% if site.img_cdn and seo_tags contains 'og:image' %}
31
+ {% assign properties = 'og:image,twitter:image' | split: ',' %}
32
+
33
+ {% for prop in properties %}
34
+ {% if site.img_cdn contains '//' %}
35
+ <!-- `site.img_cdn` is a cross-origin URL -->
36
+ {% capture target %}<meta property="{{ prop }}" content="{{ site.url }}{% endcapture %}
37
+ {% capture replacement %}<meta property="{{ prop }}" content="{{ site.img_cdn }}{% endcapture %}
38
+ {% else %}
39
+ <!-- `site.img_cdn` is a local file path -->
40
+ {% capture target %}<meta property="{{ prop }}" content="{{ site.url }}{{ site.baseurl }}{% endcapture %}
41
+ {% assign replacement = target | append: site.img_cdn %}
42
+ {% endif %}
43
+
44
+ {% assign seo_tags = seo_tags | replace: target, replacement %}
45
+
46
+ {% endfor %}
47
+ {% endif %}
48
+
49
+ {{ seo_tags }}
27
50
 
28
51
  <title>
29
52
  {%- unless page.layout == "home" -%}
@@ -45,7 +68,7 @@
45
68
  <link rel="dns-prefetch" href="{{ cdn.url }}" {{ cdn.args }}>
46
69
  {% endfor %}
47
70
 
48
- <link rel="stylesheet" href="{{ site.data.assets[origin].webfonts }}">
71
+ <link rel="stylesheet" href="{{ site.data.assets[origin].webfonts | relative_url }}">
49
72
 
50
73
  {% endif %}
51
74
 
@@ -67,24 +90,27 @@
67
90
  {% endif %}
68
91
 
69
92
  <!-- Bootstrap -->
70
- <link rel="stylesheet" href="{{ site.data.assets[origin].bootstrap.css }}">
93
+ <link rel="stylesheet" href="{{ site.data.assets[origin].bootstrap.css | relative_url}}">
71
94
 
72
95
  <!-- Font Awesome -->
73
- <link rel="stylesheet" href="{{ site.data.assets[origin].fontawesome.css }}">
96
+ <link rel="stylesheet" href="{{ site.data.assets[origin].fontawesome.css | relative_url }}">
74
97
 
75
98
  <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
76
99
 
77
100
  {% if site.toc and page.toc %}
78
- <link rel="stylesheet" href="{{ site.data.assets[origin].bootstrap-toc.css }}">
101
+ <link rel="stylesheet" href="{{ site.data.assets[origin].bootstrap-toc.css | relative_url }}">
79
102
  {% endif %}
80
103
 
81
104
  {% if page.layout == 'page' or page.layout == 'post' %}
82
105
  <!-- Manific Popup -->
83
- <link rel="stylesheet" href="{{ site.data.assets[origin].magnific-popup.css }}">
106
+ <link rel="stylesheet" href="{{ site.data.assets[origin].magnific-popup.css | relative_url }}">
84
107
  {% endif %}
85
108
 
86
109
  <!-- JavaScript -->
87
110
 
88
- <script src="{{ site.data.assets[origin].jquery.js }}"></script>
111
+ <script src="{{ site.data.assets[origin].jquery.js | relative_url }}"></script>
89
112
 
113
+ {% unless site.theme_mode %}
114
+ {% include mode-toggle.html %}
115
+ {% endunless %}
90
116
  </head>
@@ -7,7 +7,7 @@
7
7
  {% if page.layout == 'post' %}
8
8
  {% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
9
9
  <!-- pv-report needs countup.js -->
10
- <script async src="{{ site.data.assets[origin].countup.js }}"></script>
10
+ <script async src="{{ site.data.assets[origin].countup.js | relative_url }}"></script>
11
11
  <script defer src="{{ '/assets/js/dist/pvreport.min.js' | relative_url }}"></script>
12
12
  {% endif %}
13
13
  {% endif %}
@@ -79,18 +79,22 @@
79
79
  }
80
80
  };
81
81
  </script>
82
- <script src="{{ site.data.assets[origin].polyfill.js }}"></script>
83
- <script id="MathJax-script" async src="{{ site.data.assets[origin].mathjax.js }}">
82
+ <script src="{{ site.data.assets[origin].polyfill.js | relative_url }}"></script>
83
+ <script id="MathJax-script" async src="{{ site.data.assets[origin].mathjax.js | relative_url }}">
84
84
  </script>
85
85
  {% endif %}
86
86
 
87
87
  <!-- commons -->
88
88
 
89
- <script src="{{ site.data.assets[origin].bootstrap.js }}"></script>
89
+ <script src="{{ site.data.assets[origin].bootstrap.js | relative_url }}"></script>
90
90
 
91
91
  {% if jekyll.environment == 'production' %}
92
92
  <!-- PWA -->
93
- <script defer src="{{ '/app.js' | relative_url }}"></script>
93
+ {% if site.pwa.enabled %}
94
+ <script defer src="{{ '/app.js' | relative_url }}"></script>
95
+ {% else %}
96
+ <script defer src="{{ '/unregister.js' | relative_url }}"></script>
97
+ {% endif %}
94
98
 
95
99
  <!-- GA -->
96
100
  {% if site.google_analytics.id != empty and site.google_analytics.id %}
@@ -2,7 +2,7 @@
2
2
  mermaid-js loader
3
3
  -->
4
4
 
5
- <script src="{{ site.data.assets[origin].mermaid.js }}"></script>
5
+ <script src="{{ site.data.assets[origin].mermaid.js | relative_url }}"></script>
6
6
 
7
7
  <script>
8
8
  $(function() {
@@ -9,10 +9,10 @@
9
9
  <p>{{ page.previous.title }}</p>
10
10
  </a>
11
11
  {% else %}
12
- <span class="btn btn-outline-primary disabled"
12
+ <div class="btn btn-outline-primary disabled"
13
13
  prompt="{{ site.data.locales[lang].post.button.previous }}">
14
14
  <p>-</p>
15
- </span>
15
+ </div>
16
16
  {% endif %}
17
17
 
18
18
  {% if page.next.url %}
@@ -21,10 +21,10 @@
21
21
  <p>{{ page.next.title }}</p>
22
22
  </a>
23
23
  {% else %}
24
- <span class="btn btn-outline-primary disabled"
24
+ <div class="btn btn-outline-primary disabled"
25
25
  prompt="{{ site.data.locales[lang].post.button.next }}">
26
26
  <p>-</p>
27
- </span>
27
+ </div>
28
28
  {% endif %}
29
29
 
30
30
  </div>