jekyll-theme-chirpy 5.0.2 → 5.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/_config.yml +39 -13
- data/_data/assets/cross_origin.yml +62 -0
- data/_data/assets/self_host.yml +51 -0
- data/_data/authors.yml +17 -0
- data/_data/locales/en.yml +12 -20
- data/_data/locales/es-ES.yml +79 -0
- data/_data/locales/fr-FR.yml +79 -0
- data/_data/locales/id-ID.yml +4 -16
- data/_data/locales/ko-KR.yml +4 -16
- data/_data/locales/my-MM.yml +79 -0
- data/_data/locales/pt-BR.yml +79 -0
- data/_data/locales/ru-RU.yml +79 -0
- data/_data/locales/uk-UA.yml +79 -0
- data/_data/locales/vi-VN.yml +77 -0
- data/_data/locales/zh-CN.yml +4 -16
- data/_data/share.yml +1 -1
- data/_includes/assets-origin.html +12 -0
- data/_includes/comments/giscus.html +56 -0
- data/_includes/comments/utterances.html +2 -2
- data/_includes/datetime.html +21 -0
- data/_includes/footer.html +5 -6
- data/_includes/head.html +62 -21
- data/_includes/js-selector.html +47 -11
- data/_includes/jsdelivr-combine.html +32 -0
- data/_includes/mermaid.html +3 -3
- data/_includes/mode-toggle.html +4 -3
- data/_includes/post-nav.html +4 -4
- data/_includes/post-paginator.html +2 -2
- data/_includes/post-sharing.html +3 -2
- data/_includes/refactor-content.html +62 -10
- data/_includes/related-posts.html +1 -4
- data/_includes/search-loader.html +1 -1
- data/_includes/sidebar.html +8 -8
- data/_includes/toc.html +1 -1
- data/_includes/topbar.html +3 -4
- data/_layouts/archives.html +15 -6
- data/_layouts/categories.html +25 -4
- data/_layouts/category.html +1 -3
- data/_layouts/default.html +23 -8
- data/_layouts/home.html +4 -8
- data/_layouts/page.html +11 -11
- data/_layouts/post.html +52 -44
- data/_layouts/tag.html +1 -3
- data/_layouts/tags.html +3 -1
- data/_sass/addon/commons.scss +240 -304
- data/_sass/addon/module.scss +33 -17
- data/_sass/addon/syntax.scss +38 -25
- data/_sass/addon/variables.scss +9 -9
- data/_sass/colors/dark-syntax.scss +1 -0
- data/_sass/colors/dark-typography.scss +10 -1
- data/_sass/colors/light-syntax.scss +6 -1
- data/_sass/colors/light-typography.scss +14 -1
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/post.scss +4 -7
- data/_tabs/about.md +2 -2
- data/assets/404.html +0 -17
- data/assets/js/data/search.json +6 -5
- data/assets/js/data/swcache.js +11 -20
- data/assets/js/dist/categories.min.js +2 -2
- data/assets/js/dist/commons.min.js +2 -2
- data/assets/js/dist/home.min.js +2 -2
- data/assets/js/dist/misc.min.js +6 -0
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/pvreport.min.js +2 -2
- data/assets/js/pwa/app.js +42 -4
- data/assets/js/pwa/sw.js +42 -40
- data/assets/js/pwa/unregister.js +12 -0
- metadata +20 -7
- data/_includes/css-selector.html +0 -15
- data/_includes/no-zero-date.html +0 -13
- data/_includes/timeago.html +0 -26
@@ -0,0 +1,79 @@
|
|
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: Powered by :PLATFORM with :THEME theme.
|
44
|
+
|
45
|
+
not_found:
|
46
|
+
statment: ဝမ်းနည်းပါသည်၊ ကျွန်ုပ်တို့သည် အဆိုပါ 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
|
+
# pinned prompt of posts list on homepage
|
74
|
+
pin_prompt: ချိတ်ထားသည်။
|
75
|
+
|
76
|
+
# categories page
|
77
|
+
categories:
|
78
|
+
category_measure: ကဏ္ဍများ
|
79
|
+
post_measure: ပို့စ်များ
|
@@ -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
|
@@ -0,0 +1,79 @@
|
|
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
|
+
Публикации на сайте защищены лицензией Creative Commons Attribution 4.0 International (CC BY 4.0),
|
41
|
+
если в тексте публикации не указано иное.
|
42
|
+
|
43
|
+
meta: Powered by :PLATFORM with :THEME 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
|
+
# categories page
|
77
|
+
categories:
|
78
|
+
category_measure: категории
|
79
|
+
post_measure: публикации
|
@@ -0,0 +1,79 @@
|
|
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
|
+
Публікації на сайті захищено ліцензією Creative Commons Attribution 4.0 International (CC BY 4.0),
|
41
|
+
якщо інше не вказано в тексті.
|
42
|
+
|
43
|
+
meta: Powered by :PLATFORM with :THEME 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
|
+
# categories page
|
77
|
+
categories:
|
78
|
+
category_measure: категорії
|
79
|
+
post_measure: публікації
|
@@ -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
|
data/_data/locales/zh-CN.yml
CHANGED
@@ -27,14 +27,6 @@ panel:
|
|
27
27
|
trending_tags: 热门标签
|
28
28
|
toc: 文章内容
|
29
29
|
|
30
|
-
# The liquid date format › http://strftime.net/
|
31
|
-
date_format:
|
32
|
-
tooltip: '%F, %R %z'
|
33
|
-
post:
|
34
|
-
long: '%F'
|
35
|
-
short: '%m-%d'
|
36
|
-
archive_month: '%m月'
|
37
|
-
|
38
30
|
copyright:
|
39
31
|
# Shown at the bottom of the post
|
40
32
|
license:
|
@@ -51,9 +43,10 @@ meta: 本站由 :PLATFORM 生成,采用 :THEME 主题。
|
|
51
43
|
|
52
44
|
not_found:
|
53
45
|
statment: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。
|
54
|
-
|
55
|
-
|
56
|
-
|
46
|
+
|
47
|
+
notification:
|
48
|
+
update_found: 发现新版本的内容。
|
49
|
+
update: 更新
|
57
50
|
|
58
51
|
# ----- Posts related labels -----
|
59
52
|
|
@@ -61,11 +54,6 @@ post:
|
|
61
54
|
written_by: 作者
|
62
55
|
posted: 发表于
|
63
56
|
updated: 更新于
|
64
|
-
timeago:
|
65
|
-
day: 天前
|
66
|
-
hour: 小时前
|
67
|
-
minute: 分钟前
|
68
|
-
just_now: 刚刚
|
69
57
|
words: 字
|
70
58
|
pageview_measure: 次浏览
|
71
59
|
read_time:
|
data/_data/share.yml
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
{% comment %} Site static assets origin {% endcomment %}
|
2
|
+
{% assign origin = 'cross_origin' %}
|
3
|
+
|
4
|
+
{% if site.assets.self_host.enabled %}
|
5
|
+
{% if site.assets.self_host.env %}
|
6
|
+
{% if site.assets.self_host.env == jekyll.environment %}
|
7
|
+
{% assign origin = 'self_host' %}
|
8
|
+
{% endif %}
|
9
|
+
{% else %}
|
10
|
+
{% assign origin = 'self_host' %}
|
11
|
+
{% endif %}
|
12
|
+
{% endif %}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<!-- https://giscus.app/ -->
|
2
|
+
<script type="text/javascript">
|
3
|
+
$(function () {
|
4
|
+
const origin = "https://giscus.app";
|
5
|
+
const iframe = "iframe.giscus-frame";
|
6
|
+
const lightTheme = "light";
|
7
|
+
const darkTheme = "dark_dimmed";
|
8
|
+
let initTheme = lightTheme;
|
9
|
+
|
10
|
+
if ($("html[data-mode=dark]").length > 0
|
11
|
+
|| ($("html[data-mode]").length == 0
|
12
|
+
&& window.matchMedia("(prefers-color-scheme: dark)").matches)) {
|
13
|
+
initTheme = darkTheme;
|
14
|
+
}
|
15
|
+
|
16
|
+
let giscusAttributes = {
|
17
|
+
"src": "https://giscus.app/client.js",
|
18
|
+
"data-repo": "{{ site.comments.giscus.repo}}",
|
19
|
+
"data-repo-id": "{{ site.comments.giscus.repo_id }}",
|
20
|
+
"data-category": "{{ site.comments.giscus.category }}",
|
21
|
+
"data-category-id": "{{ site.comments.giscus.category_id }}",
|
22
|
+
"data-mapping": "{{ site.comments.giscus.mapping | default: 'pathname' }}",
|
23
|
+
"data-reactions-enabled": "1",
|
24
|
+
"data-emit-metadata": "0",
|
25
|
+
"data-theme": initTheme,
|
26
|
+
"data-input-position": "{{ site.comments.giscus.input_position | default: 'bottom' }}",
|
27
|
+
"data-lang": "{{ site.comments.giscus.lang | default: lang }}",
|
28
|
+
"crossorigin": "anonymous",
|
29
|
+
"async": ""
|
30
|
+
};
|
31
|
+
|
32
|
+
let giscusScript = document.createElement("script");
|
33
|
+
Object.entries(giscusAttributes).forEach(([key, value]) => giscusScript.setAttribute(key, value));
|
34
|
+
document.getElementById("tail-wrapper").appendChild(giscusScript);
|
35
|
+
|
36
|
+
addEventListener("message", (event) => {
|
37
|
+
if (event.source === window && event.data &&
|
38
|
+
event.data.direction === ModeToggle.ID) {
|
39
|
+
/* global theme mode changed */
|
40
|
+
const mode = event.data.message;
|
41
|
+
const theme = (mode === ModeToggle.DARK_MODE ? darkTheme : lightTheme);
|
42
|
+
|
43
|
+
const message = {
|
44
|
+
setConfig: {
|
45
|
+
theme: theme
|
46
|
+
}
|
47
|
+
};
|
48
|
+
|
49
|
+
const giscus = document.querySelector(iframe).contentWindow;
|
50
|
+
giscus.postMessage({ giscus: message }, origin);
|
51
|
+
}
|
52
|
+
|
53
|
+
});
|
54
|
+
|
55
|
+
});
|
56
|
+
</script>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
const darkTheme = "github-dark";
|
15
15
|
let initTheme = lightTheme;
|
16
16
|
|
17
|
-
if ($("html[mode=dark]").length > 0
|
18
|
-
|| ($("html[mode]").length == 0
|
17
|
+
if ($("html[data-mode=dark]").length > 0
|
18
|
+
|| ($("html[data-mode]").length == 0
|
19
19
|
&& window.matchMedia("(prefers-color-scheme: dark)").matches)) {
|
20
20
|
initTheme = darkTheme;
|
21
21
|
}
|
@@ -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 }}>
|
data/_includes/footer.html
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
<!--
|
2
|
-
The Footer
|
3
|
-
-->
|
1
|
+
<!-- The Footer -->
|
4
2
|
|
5
|
-
<footer class="
|
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>
|
34
|
+
</div>
|
35
|
+
|
37
36
|
</footer>
|