jekyll-theme-h2o-ac 1.2.1 → 1.3.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 +5 -4
- data/_config.yml +4 -1
- data/_data/collections.yml +11 -0
- data/_data/locales/en.yml +6 -0
- data/_data/locales/ja.yml +6 -0
- data/_data/locales/zh-Hans.yml +6 -0
- data/_data/locales/zh-Hant.yml +6 -0
- data/_includes/calendar.html +31 -0
- data/_includes/footer.html +52 -31
- data/_includes/head.html +4 -0
- data/_includes/header.html +1 -1
- data/_includes/mathjax.html +4 -9
- data/_includes/paginate-article.html +1 -1
- data/_includes/sidebar.html +21 -4
- data/_includes/submenu.html +20 -0
- data/_includes/waline.html +1 -1
- data/_layouts/archives.html +25 -0
- data/_layouts/default.html +10 -2
- data/_layouts/links.html +14 -4
- data/_layouts/post.html +7 -55
- data/_layouts/stats.html +22 -0
- data/assets/css/app.min.css +1 -2591
- data/assets/css/app.min.css.map +1 -1
- data/assets/css/cv.min.css +1 -279
- data/assets/css/cv.min.css.map +1 -1
- data/assets/js/app.min.js +1 -686
- data/assets/js/app.min.js.LICENSE.txt +15 -0
- data/assets/js/app.min.js.map +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 639e64a94b17f1be8b23d2b74aa1092806383cc573f1a1a724b1ec0ca7c2d2b3
|
4
|
+
data.tar.gz: 9bf22e2a1e22b29266543005ecffffd9330f255d71927b4dfccbe6bdc6a13437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f808b5bddfa7c433e10c74314b46cc343bd6a11f1b9afabf6ec8a917b4ac45755243d7c638dc059355a7b4089cb2db0d75ae82718943fa7efcac1155ca523403
|
7
|
+
data.tar.gz: 53a3be7033dfd2f356044e965e6e7951bd3f9cae03ff5fc27ac92af8ae10370ecde24c07dc5fa4bf86c530158c6e88d38da6c79f90f4362da48477c4674731ac
|
data/README.md
CHANGED
@@ -16,9 +16,8 @@ A Jekyll theme for researchers and maintainers based on Jekyll and [H2O](https:/
|
|
16
16
|
## Preview
|
17
17
|
|
18
18
|
### [在线预览 Live Demo →](https://h2o-ac.pages.dev/)
|
19
|
-
|
20
|
-

|
19
|
+

|
20
|
+

|
22
21
|
|
23
22
|
如果你喜欢这个博客模板,请在右上角star一下,非常感谢~
|
24
23
|
|
@@ -28,7 +27,7 @@ If you like this theme or using it, please give a ⭐️ for motivation ;)
|
|
28
27
|
|
29
28
|
Using your smartphone to scan the QR Code for preview
|
30
29
|
|
31
|
-
<img src="https://
|
30
|
+
<img src="https://github.com/zhonger/jekyll-theme-H2O-ac/assets/12064158/b01c0a31-4fad-413c-9692-a67d330699b1" width=200 />
|
32
31
|
|
33
32
|
## New Features compared with H2O, 与 H2O 不同的新特性
|
34
33
|
|
@@ -51,6 +50,7 @@ Using your smartphone to scan the QR Code for preview
|
|
51
50
|
- 提示框支持
|
52
51
|
- 文章置顶
|
53
52
|
- 版权显式声明
|
53
|
+
- 国际化支持(简中、繁中、英文、日文)
|
54
54
|
|
55
55
|
### EN
|
56
56
|
|
@@ -71,6 +71,7 @@ Using your smartphone to scan the QR Code for preview
|
|
71
71
|
- Premonition
|
72
72
|
- Top article pin
|
73
73
|
- Copyright statement for articles
|
74
|
+
- Internationlization (Simplified Chinese, Traditional Chinse, English, Japanese)
|
74
75
|
|
75
76
|
## Usage 快速开始
|
76
77
|
|
data/_config.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# jekyll-theme-h2o-ac
|
2
|
-
version: 1.
|
2
|
+
version: 1.3.0
|
3
3
|
|
4
4
|
# Site settings 配置站点
|
5
5
|
title: 'Mr Li'
|
@@ -104,6 +104,9 @@ sns:
|
|
104
104
|
links:
|
105
105
|
# 'Mr Li': 'https://lisz.me'
|
106
106
|
|
107
|
+
# Calendar 日历
|
108
|
+
calendar: true
|
109
|
+
|
107
110
|
# Supports 赞助商
|
108
111
|
supports:
|
109
112
|
upyun:
|
data/_data/locales/en.yml
CHANGED
@@ -3,9 +3,14 @@ panel:
|
|
3
3
|
posts: 'POSTS'
|
4
4
|
categories: 'CATEGORIES'
|
5
5
|
tags: 'TAGS'
|
6
|
+
calendar: 'CALENDAR'
|
7
|
+
calendar_less: 'Less'
|
8
|
+
calendar_more: 'More'
|
6
9
|
hot_tags: 'HOT TAGS'
|
7
10
|
links: 'LINKS'
|
8
11
|
update: 'RECENT UPDATES'
|
12
|
+
friends: 'FRIENDS'
|
13
|
+
nolink: 'No any links'
|
9
14
|
footer:
|
10
15
|
driver: 'Powered by <a href="//jekyllrb.com" target="_blank" class="extlinks">Jekyll</a> & <a href="https://github.com/zhonger/jekyll-theme-H2O-ac" target="_blank" class="extlinks">H2O-ac</a> (based on <a href="https://github.com/kaeyleo/jekyll-theme-H2O" target="_blank" class="extlinks">H2O</a>)'
|
11
16
|
views: 'Total Views'
|
@@ -22,6 +27,7 @@ footer:
|
|
22
27
|
middle: 'Terms of Service'
|
23
28
|
right: 'page.'
|
24
29
|
btn: 'Accept'
|
30
|
+
name: 'Terms of Service'
|
25
31
|
post:
|
26
32
|
outline: 'Contents'
|
27
33
|
cover:
|
data/_data/locales/ja.yml
CHANGED
@@ -3,9 +3,14 @@ panel:
|
|
3
3
|
posts: '記事'
|
4
4
|
categories: 'カテゴリー'
|
5
5
|
tags: 'タグ'
|
6
|
+
calendar: 'カレンダー'
|
7
|
+
calendar_less: '少ない'
|
8
|
+
calendar_more: '多い'
|
6
9
|
hot_tags: '人気タグ'
|
7
10
|
links: 'リンク'
|
8
11
|
update: '最新のアップデート'
|
12
|
+
friends: '友達'
|
13
|
+
nolink: 'リンクがありません'
|
9
14
|
footer:
|
10
15
|
driver: 'このサイトは <a href="//jekyllrb.com" target="_blank" class="extlinks">Jekyll</a> と <a href="https://github.com/zhonger/jekyll-theme-H2O-ac" target="_blank" class="extlinks">H2O-ac</a> を利用しています'
|
11
16
|
views: '総閲覧数'
|
@@ -22,6 +27,7 @@ footer:
|
|
22
27
|
middle: 'このサイトについて'
|
23
28
|
right: 'をご覧ください。'
|
24
29
|
btn: '同意する'
|
30
|
+
name: '利用規約'
|
25
31
|
post:
|
26
32
|
outline: '目次'
|
27
33
|
cover:
|
data/_data/locales/zh-Hans.yml
CHANGED
@@ -3,9 +3,14 @@ panel:
|
|
3
3
|
posts: '文章'
|
4
4
|
categories: '类别'
|
5
5
|
tags: '标签'
|
6
|
+
calendar: '日历'
|
7
|
+
calendar_less: '少'
|
8
|
+
calendar_more: '多'
|
6
9
|
hot_tags: '热门标签'
|
7
10
|
links: '链接'
|
8
11
|
update: '最近更新'
|
12
|
+
friends: '朋友们'
|
13
|
+
nolink: '暂无链接'
|
9
14
|
footer:
|
10
15
|
driver: '本站由 <a href="//jekyllrb.com" target="_blank" class="extlinks">Jekyll</a> 和 (基于 <a href="https://github.com/kaeyleo/jekyll-theme-H2O" target="_blank" class="extlinks">H2O</a> 的) <a href="https://github.com/zhonger/jekyll-theme-H2O-ac" target="_blank" class="extlinks">H2O-ac</a> 强力驱动'
|
11
16
|
views: '总浏览量'
|
@@ -22,6 +27,7 @@ footer:
|
|
22
27
|
middle: '本站使用条款'
|
23
28
|
right: '了解更多。'
|
24
29
|
btn: '同意'
|
30
|
+
name: '使用条款'
|
25
31
|
post:
|
26
32
|
outline: '目录'
|
27
33
|
cover:
|
data/_data/locales/zh-Hant.yml
CHANGED
@@ -3,9 +3,14 @@ panel:
|
|
3
3
|
posts: '文章'
|
4
4
|
categories: '類別'
|
5
5
|
tags: '標籤'
|
6
|
+
calendar: '日曆'
|
7
|
+
calendar_less: '少'
|
8
|
+
calendar_more: '多'
|
6
9
|
hot_tags: '熱門標簽'
|
7
10
|
links: '鏈接'
|
8
11
|
update: '最近更新'
|
12
|
+
friends: '朋友們'
|
13
|
+
nolink: '暫無鏈接'
|
9
14
|
footer:
|
10
15
|
driver: '本站由 <a href="//jekyllrb.com" target="_blank" class="extlinks">Jekyll</a> 和 (基於 <a href="https://github.com/kaeyleo/jekyll-theme-H2O" target="_blank" class="extlinks">H2O</a> 的) <a href="https://github.com/zhonger/jekyll-theme-H2O-ac" target="_blank" class="extlinks">H2O-ac</a> 強力驅動'
|
11
16
|
views: '總瀏覽量'
|
@@ -22,6 +27,7 @@ footer:
|
|
22
27
|
middle: '本站使用條款'
|
23
28
|
right: '了解更多。'
|
24
29
|
btn: '同意'
|
30
|
+
name: '使用條款'
|
25
31
|
post:
|
26
32
|
outline: '目錄'
|
27
33
|
cover:
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<section class="tags-card">
|
2
|
+
<div class="links">
|
3
|
+
<svg class="icon" aria-hidden="true">
|
4
|
+
<use xlink:href="#icon-calendar"></use>
|
5
|
+
</svg> {{ panel.calendar }}
|
6
|
+
</div>
|
7
|
+
<div id="cal-heatmap">
|
8
|
+
<div id="ex-ghDay" class="calendar-top">
|
9
|
+
<a id="ex-ghDay-prev" class="button" href="#" aria-label="Prev month">
|
10
|
+
<svg class="icon" aria-hidden="true">
|
11
|
+
<use xlink:href="#icon-left"></use>
|
12
|
+
</svg>
|
13
|
+
</a>
|
14
|
+
<a id="ex-ghDay-next" class="button" href="#" aria-label="Next month">
|
15
|
+
<svg class="icon" aria-hidden="true">
|
16
|
+
<use xlink:href="#icon-right"></use>
|
17
|
+
</svg>
|
18
|
+
</a>
|
19
|
+
<a id="ex-ghDay-today" class="button" href="#" aria-label="Rotate view to today">
|
20
|
+
<svg class="icon" aria-hidden="true">
|
21
|
+
<use xlink:href="#icon-rotate"></use>
|
22
|
+
</svg>
|
23
|
+
</a>
|
24
|
+
<div class="legends">
|
25
|
+
<span class="text">{{panel.calendar_less}}</span>
|
26
|
+
<div id="ex-ghDay-legend"></div>
|
27
|
+
<span class="text">{{panel.calendar_more}}</span>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</section>
|
data/_includes/footer.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="g-left">
|
7
7
|
<section class="links">
|
8
8
|
{{ footer.driver }}
|
9
|
-
{% if site.version %} (<a href="https://github.com/zhonger/jekyll-theme-H2O-ac/releases/tag/v
|
9
|
+
{% if site.version %} (<a href="https://github.com/zhonger/jekyll-theme-H2O-ac/releases/tag/v{{ site.version }}" target="_blank" class="extlinks">v{{ site.version }}</a>){% endif %}
|
10
10
|
{% if site.supports.webify %} & <a href="https://webify.cloudbase.net/" target="_blank" class="extlinks">CloudBase Webify</a> {% endif %}
|
11
11
|
</section>
|
12
12
|
<section class="links">{{ site.title }} ©
|
@@ -16,17 +16,31 @@
|
|
16
16
|
-
|
17
17
|
{% endunless %}
|
18
18
|
{{ current }}
|
19
|
-
{% if site.beian %}
|
19
|
+
{% if site.beian and site.beian != "" %}
|
20
20
|
<a href="https://beian.miit.gov.cn/" target="_blank" class="extlinks">{{ site.beian }}</a>
|
21
21
|
{% endif %}
|
22
|
+
<a href="/rss.xml" target="_blank" aria-label="Terms of Service" class="others">
|
23
|
+
<svg class="icon" aria-hidden="true">
|
24
|
+
<use xlink:href="#icon-rss"></use>
|
25
|
+
</svg> RSS
|
26
|
+
</a>
|
27
|
+
<a href="/tos" target="_blank" aria-label="Terms of Service" class="others">
|
28
|
+
<svg class="icon" aria-hidden="true">
|
29
|
+
<use xlink:href="#icon-tos"></use>
|
30
|
+
</svg> {{footer.tos.name}}
|
31
|
+
</a>
|
22
32
|
</section>
|
23
33
|
{% if site.busuanzi %}
|
24
|
-
<section>
|
34
|
+
<section class="links">
|
25
35
|
<span id="busuanzi_container_site_pv">
|
26
|
-
|
36
|
+
<svg class="icon" aria-hidden="true">
|
37
|
+
<use xlink:href="#icon-pv"></use>
|
38
|
+
</svg> {{ footer.views }} <span id="busuanzi_value_site_pv"></span> <b>·</b>
|
27
39
|
</span>
|
28
40
|
<span id="busuanzi_container_site_uv">
|
29
|
-
|
41
|
+
<svg class="icon" aria-hidden="true">
|
42
|
+
<use xlink:href="#icon-user"></use>
|
43
|
+
</svg> {{ footer.visitors }} <span id="busuanzi_value_site_uv"></span>
|
30
44
|
</span>
|
31
45
|
</section>
|
32
46
|
{% endif %}
|
@@ -43,23 +57,23 @@
|
|
43
57
|
<div class="g-right">
|
44
58
|
{% if site.supports.upyun %}
|
45
59
|
<section>
|
46
|
-
<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank" class="extlinks">{{ footer.upyun }} <img src="{{ "/assets/icons/upyun.png" | relative_url }}" class="upyun" /></a>
|
60
|
+
<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank" class="extlinks">{{ footer.upyun }} <img src="{{ "/assets/icons/upyun.png" | relative_url }}" class="upyun" alt="upyun" /></a>
|
47
61
|
</section>
|
48
62
|
{% endif %}
|
49
63
|
{% if site.foreverblog or site.wormhole or site.notbyAI %}
|
50
64
|
<section class="badges">
|
51
65
|
{% if site.foreverblog %}
|
52
|
-
<a href="https://www.foreverblog.cn/" target="_blank" class="foreverblog">
|
66
|
+
<a href="https://www.foreverblog.cn/" target="_blank" class="foreverblog" aria-label="foreverblog">
|
53
67
|
<img src="https://img.foreverblog.cn/logo_en_default.png" alt="">
|
54
68
|
</a>
|
55
69
|
{% endif %}
|
56
70
|
{% if site.wormhole %}
|
57
|
-
<a href="https://www.foreverblog.cn/go.html" target="_blank" class="wormhole">
|
71
|
+
<a href="https://www.foreverblog.cn/go.html" target="_blank" class="wormhole" aria-label="wormhole">
|
58
72
|
<img src="https://img.foreverblog.cn/wormhole_3.gif" alt="" title="穿梭虫洞-随机访问十年之约友链博客">
|
59
73
|
</a>
|
60
74
|
{% endif%}
|
61
75
|
{% if site.notbyAI %}
|
62
|
-
<a href="https://notbyai.fyi/" target="_blank" class="notbyAI">
|
76
|
+
<a href="https://notbyai.fyi/" target="_blank" class="notbyAI" aria-label="notbyAI">
|
63
77
|
<img src="{{ "/assets/icons/notbyAI-white.png" | prepend: site.baseurl }}" alt="Written by Human, Not by AI">
|
64
78
|
</a>
|
65
79
|
{% endif %}
|
@@ -76,26 +90,33 @@
|
|
76
90
|
|
77
91
|
<button id="accept-tos">{{ footer.tos.btn }}</button>
|
78
92
|
</div>
|
79
|
-
<button id="list" aria-label="Scroll back to top" class="mobile-list" type="button">
|
80
|
-
<svg class="icon list day" aria-hidden="true">
|
81
|
-
<use xlink:href="#icon-list-day"></use>
|
82
|
-
</svg>
|
83
|
-
<svg class="icon list night" aria-hidden="true">
|
84
|
-
<use xlink:href="#icon-list-night"></use>
|
85
|
-
</svg>
|
86
|
-
<svg class="icon exit day" aria-hidden="true">
|
87
|
-
<use xlink:href="#icon-exit-day"></use>
|
88
|
-
</svg>
|
89
|
-
<svg class="icon exit night" aria-hidden="true">
|
90
|
-
<use xlink:href="#icon-exit-night"></use>
|
91
|
-
</svg>
|
92
|
-
</button>
|
93
|
-
<button id="bttb" aria-label="Scroll back to top" class="bttb" type="button">
|
94
|
-
<svg class="icon up day" aria-hidden="true">
|
95
|
-
<use xlink:href="#icon-up-day"></use>
|
96
|
-
</svg>
|
97
|
-
<svg class="icon up night" aria-hidden="true">
|
98
|
-
<use xlink:href="#icon-up-night"></use>
|
99
|
-
</svg>
|
100
|
-
</button>
|
101
93
|
|
94
|
+
<section id="tools">
|
95
|
+
{% if page.submenu %}
|
96
|
+
<div class="tool collection">
|
97
|
+
<svg class="icon b1 active" aria-hidden="true">
|
98
|
+
<use xlink:href="#icon-submenu"></use>
|
99
|
+
</svg>
|
100
|
+
<svg class="icon b2" aria-hidden="true">
|
101
|
+
<use xlink:href="#icon-exit"></use>
|
102
|
+
</svg>
|
103
|
+
</div>
|
104
|
+
{% endif %}
|
105
|
+
{% if page.content contains 'h1' or page.content contains 'h2' or page.content contains 'h3' or page.content contains 'h4' or page.content contains 'h5' or page.content contains 'h6' and site.toc %}
|
106
|
+
<div class="tool toc">
|
107
|
+
<svg class="icon b1 active" aria-hidden="true">
|
108
|
+
<use xlink:href="#icon-toc"></use>
|
109
|
+
</svg>
|
110
|
+
<svg class="icon b2" aria-hidden="true">
|
111
|
+
<use xlink:href="#icon-exit"></use>
|
112
|
+
</svg>
|
113
|
+
</div>
|
114
|
+
{% endif %}
|
115
|
+
</section>
|
116
|
+
<section id="bttb" aria-label="Scroll back to top" class="bttb">
|
117
|
+
<div class="tool">
|
118
|
+
<svg class="icon top" aria-hidden="true">
|
119
|
+
<use xlink:href="#icon-top"></use>
|
120
|
+
</svg>
|
121
|
+
</div>
|
122
|
+
</section>
|
data/_includes/head.html
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
<meta property="og:description" content="{{ site.description }}">
|
14
14
|
<meta property="og:site_name" content="{{ site.title }}">
|
15
15
|
<meta property="og:gray" content="{{ site.gray }}">
|
16
|
+
<meta property="og:lang" content="{{ lang }}">
|
16
17
|
{% if site.alivetime %}
|
17
18
|
<meta name="alivestart" content="{{ site.alivestart }}">
|
18
19
|
{% endif %}
|
@@ -41,6 +42,9 @@
|
|
41
42
|
{% if site.prism.line_numbers %}
|
42
43
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.28.0/plugins/line-numbers/prism-line-numbers.min.css">
|
43
44
|
{% endif %}
|
45
|
+
{% if site.calendar %}
|
46
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cal-heatmap@4.2.4/dist/cal-heatmap.min.css">
|
47
|
+
{% endif %}
|
44
48
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@waline/client/dist/waline.css" />
|
45
49
|
<link rel="stylesheet" href="{{ "/assets/css/app.min.css" | prepend: site.baseurl }}">
|
46
50
|
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
data/_includes/header.html
CHANGED
data/_includes/mathjax.html
CHANGED
@@ -1,20 +1,15 @@
|
|
1
|
-
<!--
|
2
|
-
Author: Ray-Eldath
|
3
|
-
refer to:
|
4
|
-
- http://docs.mathjax.org/en/latest/options/index.html
|
5
|
-
-->
|
6
1
|
{% if site.mathjax %}
|
7
2
|
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
8
|
-
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-
|
3
|
+
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax-full@3.2.2/es5/tex-mml-svg.min.js"></script>
|
9
4
|
<script type="text/x-mathjax-config">
|
10
5
|
MathJax.Hub.Config({
|
11
6
|
jax: ["input/TeX", "output/HTML-CSS"],
|
12
7
|
tex2jax: {
|
13
|
-
inlineMath: [ ["
|
14
|
-
|
8
|
+
inlineMath: [['$', '$'], ["\\(", "\\)"]],
|
9
|
+
processEscapes: true,
|
15
10
|
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
|
16
11
|
},
|
17
12
|
"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"] }
|
18
13
|
});
|
19
14
|
</script>
|
20
|
-
{% endif %}
|
15
|
+
{% endif %}
|
data/_includes/sidebar.html
CHANGED
@@ -45,7 +45,9 @@
|
|
45
45
|
</ul>
|
46
46
|
{% endif %}
|
47
47
|
</section>
|
48
|
-
|
48
|
+
{% if site.calendar %}
|
49
|
+
{% include calendar.html %}
|
50
|
+
{% endif %}
|
49
51
|
{% if site.recommend-tags and site.tags.size>0 %}
|
50
52
|
{% assign max_tag_count = 0 %}
|
51
53
|
{% for tag in site.tags %}
|
@@ -54,7 +56,12 @@
|
|
54
56
|
{% endif %}
|
55
57
|
{% endfor %}
|
56
58
|
<section class="tags-card">
|
57
|
-
<div class="links" rel="links">
|
59
|
+
<div class="links" rel="links">
|
60
|
+
<svg class="icon" aria-hidden="true">
|
61
|
+
<use xlink:href="#icon-tags"></use>
|
62
|
+
</svg>
|
63
|
+
{{ panel.hot_tags }}
|
64
|
+
</div>
|
58
65
|
{% assign pnum = 0 %}
|
59
66
|
{% for i in (1..max_tag_count) reversed %}
|
60
67
|
{% for tag in site.tags %}
|
@@ -75,7 +82,12 @@
|
|
75
82
|
|
76
83
|
{% if site.links.size > 0 %}
|
77
84
|
<section class="tags-card">
|
78
|
-
<div class="links" rel="links">
|
85
|
+
<div class="links" rel="links">
|
86
|
+
<svg class="icon" aria-hidden="true">
|
87
|
+
<use xlink:href="#icon-links"></use>
|
88
|
+
</svg>
|
89
|
+
{{ panel.links }}
|
90
|
+
</div>
|
79
91
|
{% for link in site.links %}
|
80
92
|
<a href="{{ link[1] }}" target="_blank" class="tag" rel="noreferrer"> {{ link[0] }} </a>
|
81
93
|
{% endfor %}
|
@@ -84,7 +96,12 @@
|
|
84
96
|
|
85
97
|
<section class="tags-card">
|
86
98
|
{% assign posts = site.posts | sort: "date" | reverse %}
|
87
|
-
<div class="links">
|
99
|
+
<div class="links">
|
100
|
+
<svg class="icon" aria-hidden="true">
|
101
|
+
<use xlink:href="#icon-new"></use>
|
102
|
+
</svg>
|
103
|
+
{{ panel.update }}
|
104
|
+
</div>
|
88
105
|
<ul class="latest-articles">
|
89
106
|
{% for post in posts limit:3 %}
|
90
107
|
<li>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{% if page.submenu %}
|
2
|
+
<div class="submenu">
|
3
|
+
{% for collection in site.data.collections %}
|
4
|
+
{% if collection.id == page.submenu %}
|
5
|
+
<h4>
|
6
|
+
<svg class="icon" aria-hidden="true">
|
7
|
+
<use xlink:href="#icon-submenu"></use>
|
8
|
+
</svg>{{ collection.name }}
|
9
|
+
</h4>
|
10
|
+
<ul>
|
11
|
+
{% for article in collection.articles %}
|
12
|
+
<li><a href="{{ article.url | prepend: site.baseurl }}">{{ article.name }}</a></li>
|
13
|
+
{% endfor %}
|
14
|
+
</ul>
|
15
|
+
{% endif %}
|
16
|
+
{% endfor %}
|
17
|
+
{% else %}
|
18
|
+
<div class="submenu hidden">
|
19
|
+
{% endif %}
|
20
|
+
</div>
|
data/_includes/waline.html
CHANGED
data/_layouts/archives.html
CHANGED
@@ -38,6 +38,31 @@ cover: https://images.unsplash.com/photo-1465189684280-6a8fa9b19a7a?w=1600&q=900
|
|
38
38
|
{{ archives.words.unit }}
|
39
39
|
</p>
|
40
40
|
|
41
|
+
<div id="archive-heatmap">
|
42
|
+
<div id="ex-ghDay2" class="calendar-top">
|
43
|
+
<a id="ex-ghDay-prev2" class="button" href="#">
|
44
|
+
<svg class="icon" aria-hidden="true">
|
45
|
+
<use xlink:href="#icon-left"></use>
|
46
|
+
</svg>
|
47
|
+
</a>
|
48
|
+
<a id="ex-ghDay-next2" class="button" href="#">
|
49
|
+
<svg class="icon" aria-hidden="true">
|
50
|
+
<use xlink:href="#icon-right"></use>
|
51
|
+
</svg>
|
52
|
+
</a>
|
53
|
+
<a id="ex-ghDay-today2" class="button" href="#">
|
54
|
+
<svg class="icon" aria-hidden="true">
|
55
|
+
<use xlink:href="#icon-rotate"></use>
|
56
|
+
</svg>
|
57
|
+
</a>
|
58
|
+
<div class="legends">
|
59
|
+
<span class="text">Less</span>
|
60
|
+
<div id="ex-ghDay-legend2"></div>
|
61
|
+
<span class="text">More</span>
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
|
41
66
|
{% assign ssyears = "rat,ox,tiger,rabbit,dragon,snake,horse,goat,monkey,rooster,dog,pig" | split: "," %}
|
42
67
|
|
43
68
|
{% if pin_posts_num > 0 %}
|
data/_layouts/default.html
CHANGED
@@ -31,15 +31,23 @@
|
|
31
31
|
</div>
|
32
32
|
</div>
|
33
33
|
{% endif%}
|
34
|
-
|
34
|
+
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
35
35
|
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
36
|
+
{% if site.calendar %}
|
37
|
+
<script src="https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js"></script>
|
38
|
+
<script src="https://cdn.jsdelivr.net/npm/cal-heatmap@4.2.4/dist/cal-heatmap.min.js"></script>
|
39
|
+
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"></script>
|
40
|
+
<script src="https://cdn.jsdelivr.net/npm/cal-heatmap@4.2.4/dist/plugins/Tooltip.min.js"></script>
|
41
|
+
<script src="https://cdn.jsdelivr.net/npm/cal-heatmap@4.2.4/dist/plugins/LegendLite.min.js"></script>
|
42
|
+
<script src="https://cdn.jsdelivr.net/npm/cal-heatmap@4.2.4/dist/plugins/CalendarLabel.min.js"></script>
|
43
|
+
{% endif %}
|
36
44
|
<script src="https://cdn.jsdelivr.net/npm/clipboard/dist/clipboard.min.js"></script>
|
37
45
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-core.min.js"></script>
|
38
46
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
39
47
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
40
48
|
<script src="{{ "/assets/js/app.min.js" | prepend: site.baseurl }}"></script>
|
41
49
|
<script src="https://cdn.jsdelivr.net/npm/lazysizes@5.3.2/lazysizes.min.js" async></script>
|
42
|
-
<script src="https://at.alicdn.com/t/
|
50
|
+
<script src="https://at.alicdn.com/t/c/font_3046306_9tox63bysiw.js"></script>
|
43
51
|
{% include waline.html %}
|
44
52
|
{% include analytics.html %}
|
45
53
|
{% include umami.html %}
|
data/_layouts/links.html
CHANGED
@@ -3,10 +3,16 @@ layout: page
|
|
3
3
|
home-title: H2O-ac Theme For Jekyll
|
4
4
|
description: 或许是最漂亮的Jekyll主题
|
5
5
|
---
|
6
|
-
|
6
|
+
{% assign lang = page.lang | default: site.default_lang %}
|
7
|
+
{% assign locales = site.data.locales[lang] %}
|
8
|
+
{% assign panel = locales.panel %}
|
7
9
|
{% if site.data.links %}
|
8
10
|
<div class="friends">
|
9
|
-
<h2>
|
11
|
+
<h2>
|
12
|
+
<svg class="icon" aria-hidden="true">
|
13
|
+
<use xlink:href="#icon-links"></use>
|
14
|
+
</svg> {{panel.links}}
|
15
|
+
</h2>
|
10
16
|
{% for f in site.data.links.links %}
|
11
17
|
<a target="_blank" href="{{ f.url }}" title="{{ f.name }}" class="friendurl">
|
12
18
|
<div class="frienddiv">
|
@@ -23,7 +29,11 @@ description: 或许是最漂亮的Jekyll主题
|
|
23
29
|
{% endfor %}
|
24
30
|
</div>
|
25
31
|
<div class="friends">
|
26
|
-
<h2>
|
32
|
+
<h2>
|
33
|
+
<svg class="icon" aria-hidden="true">
|
34
|
+
<use xlink:href="#icon-friends"></use>
|
35
|
+
</svg> {{panel.friends}}
|
36
|
+
</h2>
|
27
37
|
{% for f in site.data.links.friends %}
|
28
38
|
<a target="_blank" href="{{ f.url }}" title="{{ f.name }}" class="friendurl">
|
29
39
|
<div class="frienddiv">
|
@@ -40,7 +50,7 @@ description: 或许是最漂亮的Jekyll主题
|
|
40
50
|
{% endfor %}
|
41
51
|
</div>
|
42
52
|
{% else %}
|
43
|
-
|
53
|
+
{{panel.nolink}}
|
44
54
|
{% endif %}
|
45
55
|
|
46
56
|
{{ content }}
|