jekyll-theme-chirpy 5.0.1 → 5.2.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 +4 -4
- data/README.md +7 -7
- data/_config.yml +38 -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 +241 -305
- 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 +55 -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: 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>
|
data/_includes/head.html
CHANGED
@@ -6,13 +6,12 @@
|
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
8
8
|
|
9
|
-
|
9
|
+
<!-- Allow having a localized datetime different from the appearance language -->
|
10
|
+
{% if site.prefer_datetime_locale %}
|
11
|
+
<meta name="prefer-datetime-locale" content="{{ site.prefer_datetime_locale }}">
|
12
|
+
{% endif %}
|
10
13
|
|
11
|
-
|
12
|
-
<meta name="day-prompt" content="{{ site.data.locales[lang].post.timeago.day }}">
|
13
|
-
<meta name="hour-prompt" content="{{ site.data.locales[lang].post.timeago.hour }}">
|
14
|
-
<meta name="minute-prompt" content="{{ site.data.locales[lang].post.timeago.minute }}">
|
15
|
-
<meta name="justnow-prompt" content="{{ site.data.locales[lang].post.timeago.just_now }}">
|
14
|
+
{% if page.layout == 'home' or page.layout == 'post' %}
|
16
15
|
|
17
16
|
{% if site.google_analytics.pv.proxy_endpoint %}
|
18
17
|
<meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}">
|
@@ -24,7 +23,30 @@
|
|
24
23
|
|
25
24
|
{% endif %}
|
26
25
|
|
27
|
-
{%
|
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 }}
|
28
50
|
|
29
51
|
<title>
|
30
52
|
{%- unless page.layout == "home" -%}
|
@@ -35,12 +57,24 @@
|
|
35
57
|
|
36
58
|
{% include favicons.html %}
|
37
59
|
|
38
|
-
|
39
|
-
|
40
|
-
|
60
|
+
{% if site.resources.ignore_env != jekyll.environment and site.resources.self_hosted %}
|
61
|
+
|
62
|
+
<link href="{{ site.data.assets[origin].webfonts | relative_url }}" rel="stylesheet">
|
63
|
+
|
64
|
+
{% else %}
|
65
|
+
|
66
|
+
{% for cdn in site.data.assets[origin].cdns %}
|
67
|
+
<link rel="preconnect" href="{{ cdn.url }}" {{ cdn.args }}>
|
68
|
+
<link rel="dns-prefetch" href="{{ cdn.url }}" {{ cdn.args }}>
|
69
|
+
{% endfor %}
|
70
|
+
|
71
|
+
<link rel="stylesheet" href="{{ site.data.assets[origin].webfonts | relative_url }}">
|
72
|
+
|
73
|
+
{% endif %}
|
41
74
|
|
42
75
|
<!-- GA -->
|
43
|
-
{% if jekyll.environment == 'production'
|
76
|
+
{% if jekyll.environment == 'production'
|
77
|
+
and site.google_analytics.id != empty and site.google_analytics.id %}
|
44
78
|
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin="use-credentials">
|
45
79
|
<link rel="dns-prefetch" href="https://www.google-analytics.com">
|
46
80
|
|
@@ -49,27 +83,34 @@
|
|
49
83
|
|
50
84
|
{% if site.google_analytics.pv.proxy_endpoint %}
|
51
85
|
{% assign proxy_url = site.google_analytics.pv.proxy_endpoint
|
52
|
-
|
53
|
-
|
86
|
+
| replace: "https://", "" | split: "/" | first | prepend: "https://" %}
|
54
87
|
<link rel="preconnect" href="{{ proxy_url }}" crossorigin="use-credentials">
|
55
88
|
<link rel="dns-prefetch" href="{{ proxy_url }}">
|
56
89
|
{% endif %}
|
57
90
|
{% endif %}
|
58
91
|
|
59
|
-
<!-- jsDelivr CDN -->
|
60
|
-
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
61
|
-
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
62
|
-
|
63
92
|
<!-- Bootstrap -->
|
64
|
-
<link rel="stylesheet" href="
|
93
|
+
<link rel="stylesheet" href="{{ site.data.assets[origin].bootstrap.css | relative_url}}">
|
65
94
|
|
66
95
|
<!-- Font Awesome -->
|
67
|
-
<link rel="stylesheet" href="
|
96
|
+
<link rel="stylesheet" href="{{ site.data.assets[origin].fontawesome.css | relative_url }}">
|
97
|
+
|
98
|
+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
|
68
99
|
|
69
|
-
{%
|
100
|
+
{% if site.toc and page.toc %}
|
101
|
+
<link rel="stylesheet" href="{{ site.data.assets[origin].bootstrap-toc.css | relative_url }}">
|
102
|
+
{% endif %}
|
103
|
+
|
104
|
+
{% if page.layout == 'page' or page.layout == 'post' %}
|
105
|
+
<!-- Manific Popup -->
|
106
|
+
<link rel="stylesheet" href="{{ site.data.assets[origin].magnific-popup.css | relative_url }}">
|
107
|
+
{% endif %}
|
70
108
|
|
71
109
|
<!-- JavaScript -->
|
72
110
|
|
73
|
-
<script src="
|
111
|
+
<script src="{{ site.data.assets[origin].jquery.js | relative_url }}"></script>
|
74
112
|
|
113
|
+
{% unless site.theme_mode %}
|
114
|
+
{% include mode-toggle.html %}
|
115
|
+
{% endunless %}
|
75
116
|
</head>
|