jekyll-theme-h2o-ac 1.1.9 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -3
- data/_config.yml +28 -11
- data/_data/cv.yml +132 -0
- data/_data/links.yml +14 -0
- data/_includes/footer.html +15 -2
- data/_includes/head.html +2 -2
- data/_includes/header.html +20 -5
- data/_includes/mermaid.html +12 -0
- data/_includes/post-head.html +8 -3
- data/_layouts/blog.html +20 -0
- data/_layouts/categories.html +62 -0
- data/_layouts/cv.html +197 -0
- data/_layouts/default.html +14 -4
- data/_layouts/links.html +46 -0
- data/_layouts/page.html +39 -4
- data/_layouts/post.html +68 -9
- data/_layouts/tags.html +26 -10
- data/assets/css/app.min.css +1 -1
- data/assets/css/cv.min.css +1 -0
- data/assets/icons/upyun.png +0 -0
- data/assets/img/h3.webp +0 -0
- data/assets/js/index.min.js +1 -1
- data/blog/index.html +2 -2
- metadata +30 -10
- data/assets/fonts/Merriweather-Black.ttf +0 -0
- data/assets/fonts/Merriweather-Light.ttf +0 -0
- data/assets/fonts/Merriweather-Regular.ttf +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63fa086d15be1efbfd59b8256346e85fdb67110e841eb27d372e5f5db5951063
|
4
|
+
data.tar.gz: 0c3bdbcd06b49f4c4bfbdad2cd43cfa532c98304d560b10e24d452eea0c823a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec87e4b0fe2597114ba6e42dbe3400925047ff84f35e7ceda18048919cbc87da188dccde5c10aaea4034cf273b8a4a67c51cdc60edac9beb7146346f17823074
|
7
|
+
data.tar.gz: de89c1b4b1ab4aebb3747a3913bc432d52b39d67ae4bf783426943cea89e77606fa02e7de22c95c182bfef5b3fa75d9a82fefbbeadf5c9948a4dddafb8f86746
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
基于 Jekyll 和 [H2O](https://github.com/kaeyleo/jekyll-theme-H2O) 主题、适合学术研究人员和运维开发人员的博客主题模板。
|
14
14
|
|
15
|
-
|
15
|
+
A Jekyll theme for researchers and maintainers based on Jekyll and [H2O](https://github.com/kaeyleo/jekyll-theme-H2O) theme.
|
16
16
|
|
17
17
|
</div>
|
18
18
|
|
@@ -85,18 +85,25 @@ Please refer to [H2O-ac theme for Jekyll](https://lisz.me/tech/webmaster/new-the
|
|
85
85
|
|
86
86
|
Any types of contribution are welcome. Thanks.
|
87
87
|
|
88
|
-
接受各种形式的贡献,包括不限于提交问题与需求,修复代码。等待您的 ```Pull Request
|
88
|
+
接受各种形式的贡献,包括不限于提交问题与需求,修复代码。等待您的 ```Pull Request```。
|
89
89
|
|
90
|
-
|
90
|
+
### Thanks 感谢参与 H2O 代码贡献的伙伴
|
91
91
|
|
92
92
|
- [kaeyleo](https://github.com/kaeyleo/)
|
93
93
|
- [Ray-Eldath](https://github.com/Ray-Eldath)
|
94
94
|
- [sctop](https://github.com/sctop)
|
95
95
|
- [bananaappletw](https://github.com/bananaappletw)
|
96
96
|
- [moycat](https://github.com/moycat)
|
97
|
+
- More
|
98
|
+
|
99
|
+
### Contributors 贡献者
|
100
|
+
|
101
|
+
![Contributors](https://contrib.rocks/image?repo=zhonger/jekyll-theme-H2O-ac)
|
97
102
|
|
98
103
|
### License 许可证
|
99
104
|
|
100
105
|
Jekyll-Theme-H2O-ac is licensed under [MIT](https://github.com/zhonger/jekyll-theme-H2O-ac/blob/master/LICENSE).
|
101
106
|
|
102
107
|
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fzhonger%2Fjekyll-theme-H2O-ac.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fzhonger%2Fjekyll-theme-H2O-ac?ref=badge_large)
|
108
|
+
|
109
|
+
![Alt](https://repobeats.axiom.co/api/embed/c3257de0cec8e91520debc3232103da52e4727b4.svg "Repobeats analytics image")
|
data/_config.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# jekyll-theme-h2o-ac
|
2
|
-
version: 1.1.
|
2
|
+
version: 1.1.12
|
3
3
|
|
4
4
|
# Site settings 配置站点
|
5
5
|
title: 'Mr Li'
|
@@ -37,8 +37,8 @@ nav:
|
|
37
37
|
blog: '/blog/index.html'
|
38
38
|
archives: '/archives.html'
|
39
39
|
tags: '/tags.html'
|
40
|
-
|
41
|
-
|
40
|
+
about:
|
41
|
+
RSS: '/feed.xml'
|
42
42
|
|
43
43
|
# Gray for the whole site 全站灰色
|
44
44
|
gray: false
|
@@ -90,16 +90,21 @@ postPatterns: 'circuitBoard'
|
|
90
90
|
# SNS settings 配置社交网站
|
91
91
|
# url: email, weibo, zhihu, twitter, instagram, juejin, github, douban, facebook, dribble, uicn, jianshu, medium, linkedin
|
92
92
|
sns:
|
93
|
-
google-scholar: 'https://scholar.google.com/citations?user=AUupIooAAAAJ'
|
94
|
-
researchgate: 'https://www.researchgate.net/profile/Shengzhou-Li'
|
95
|
-
ORCID: 'https://orcid.org/0000-0001-6973-3825'
|
96
|
-
github: 'https://github.com/zhonger'
|
97
|
-
linkedin: 'https://www.linkedin.com/in/shengzhouli/'
|
98
|
-
segmentfault: 'https://segmentfault.com/u/wuwozhonger'
|
93
|
+
# google-scholar: 'https://scholar.google.com/citations?user=AUupIooAAAAJ'
|
94
|
+
# researchgate: 'https://www.researchgate.net/profile/Shengzhou-Li'
|
95
|
+
# ORCID: 'https://orcid.org/0000-0001-6973-3825'
|
96
|
+
# github: 'https://github.com/zhonger'
|
97
|
+
# linkedin: 'https://www.linkedin.com/in/shengzhouli/'
|
98
|
+
# segmentfault: 'https://segmentfault.com/u/wuwozhonger'
|
99
99
|
|
100
100
|
# Links 友情链接
|
101
101
|
links:
|
102
|
-
'Mr Li': 'https://lisz.me'
|
102
|
+
# 'Mr Li': 'https://lisz.me'
|
103
|
+
|
104
|
+
# Supports 赞助商
|
105
|
+
supports:
|
106
|
+
upyun:
|
107
|
+
webify:
|
103
108
|
|
104
109
|
# Beian 备案号
|
105
110
|
beian: '沪ICP备xxxxxxxx号'
|
@@ -127,6 +132,9 @@ google_analytics:
|
|
127
132
|
# Google Search
|
128
133
|
google_search:
|
129
134
|
|
135
|
+
# ToS
|
136
|
+
tos: /tos.html
|
137
|
+
|
130
138
|
# Tags 设置标签
|
131
139
|
recommend-tags: true # whether or not display recommend-tags on the sidebar
|
132
140
|
recommend-condition-size: 12 # a tag will be recommended if the size of it is more than this value
|
@@ -163,6 +171,15 @@ RSS: true
|
|
163
171
|
# See: https://github.com/kaeyleo/jekyll-theme-H2O/issues/35
|
164
172
|
permalink: /:categories/:title.html
|
165
173
|
|
174
|
+
# Extlinks
|
175
|
+
extlinks:
|
176
|
+
attributes: {rel: nofollow, target: _blank, class: extlinks}
|
177
|
+
# rel_exclude: ['host1.com', 'host2.net']
|
178
|
+
# class_exclude: ['host1.com', 'host2.net']
|
179
|
+
|
180
|
+
# Mermaid
|
181
|
+
mermaid: true
|
182
|
+
|
166
183
|
# TOC
|
167
184
|
toc: true
|
168
185
|
# <div class="title">{% if title %} {{title}} {% else %} {{default_title}} {% endif %}</div>
|
@@ -204,4 +221,4 @@ premonition:
|
|
204
221
|
default_title: 'Error'
|
205
222
|
|
206
223
|
# Plugins
|
207
|
-
plugins: [jekyll-paginate-v2, jekyll-feed, jekyll-sitemap, premonition]
|
224
|
+
plugins: [jekyll-paginate-v2, jekyll-feed, jekyll-sitemap, premonition, h2o-ac-jekyll-extlinks]
|
data/_data/cv.yml
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
- lang: "zh"
|
2
|
+
name: "诸葛亮"
|
3
|
+
motivation: "云平台开发工程师"
|
4
|
+
photo: "/assets/img/h3.webp"
|
5
|
+
email: "zhuge@live.cn"
|
6
|
+
github: "zhuge"
|
7
|
+
linkedin: "zhuge"
|
8
|
+
website: "https://zhuge.me"
|
9
|
+
languages:
|
10
|
+
- idiom: "普通话"
|
11
|
+
- idiom: "闽南语"
|
12
|
+
educations:
|
13
|
+
- degree: "本科-计算机科学与技术"
|
14
|
+
university: "卧龙大学"
|
15
|
+
time: "2012-2016"
|
16
|
+
- degree: "研究生-计算机科学与技术"
|
17
|
+
university: "卧龙大学"
|
18
|
+
time: "2016-2019"
|
19
|
+
- degree: "博士-计算机科学与技术"
|
20
|
+
university: "卧龙大学"
|
21
|
+
time: "2019-至今"
|
22
|
+
skills:
|
23
|
+
- title: "后端技能"
|
24
|
+
skill:
|
25
|
+
- GO
|
26
|
+
- Python
|
27
|
+
- PHP
|
28
|
+
- NodeJS
|
29
|
+
- title: "前端技能"
|
30
|
+
skill:
|
31
|
+
- HTML/CSS/JS
|
32
|
+
- VueJS
|
33
|
+
- title: "运维开发技能"
|
34
|
+
skill:
|
35
|
+
- Docker
|
36
|
+
- KVM
|
37
|
+
experience:
|
38
|
+
- role: "三国鼎立之论"
|
39
|
+
company: "科研方向"
|
40
|
+
time: "2017.10 - 2019.6"
|
41
|
+
details: "分析吴蜀魏三国鼎立的内因、外因,并预测未来三国的发展趋势。"
|
42
|
+
tech: "技术:Python,常用机器学习算法(SVM,RF,DT,KNN)"
|
43
|
+
- role: "吴蜀联盟"
|
44
|
+
company: "主要负责人"
|
45
|
+
time: "2017.10 - 2019.6"
|
46
|
+
details: "前往东吴舌战群儒,借东风火烧连营,草船借箭。"
|
47
|
+
tech: "技术:Linux,KVM,Docker,PHP,VueJS"
|
48
|
+
- role : "七擒孟获"
|
49
|
+
company: "主要负责人"
|
50
|
+
time: "2018.6 - 2018.10"
|
51
|
+
details: "主要负责了制定抓孟获的思路和方案,七擒七纵终于收服了孟获。"
|
52
|
+
tech: "技术:HTML/CSS/JS,AMAP,REST API"
|
53
|
+
honors:
|
54
|
+
- 2019 年卧龙大学优秀毕业生
|
55
|
+
- 2012~至今 卧龙大学学业奖学金/每年
|
56
|
+
- 2016 年卧龙大学校长奖学金
|
57
|
+
- 2016 年卧龙大学优秀毕业生
|
58
|
+
publications:
|
59
|
+
- "<b>诸葛亮</b>, 关羽, 张飞, 赵云, 刘备*. 《七出岐山的必要性》. 三国志快报, 2021(1):110-118."
|
60
|
+
- "<b>诸葛亮</b>, 周瑜, 关羽, 黄盖, 鲁肃, 孙权*, 刘备*. 《吴蜀联盟为什么行》. 三国志简报, 2020(1):110-118."
|
61
|
+
- "<b>诸葛亮</b>, 周瑜, 荀彧, 曹操*, 孙权*, 刘备*. 《三个国家的浪漫史》. 三国志综述, 2022(1):110-118."
|
62
|
+
introduction:
|
63
|
+
- title: "研究内容"
|
64
|
+
content: "研究生期间主要从事三国鼎立的研究,在本人的帮助下发展了吴蜀联盟 <sup>[2]</sup>;在后期针对魏国的强大作出了七出岐山的决定 <sup>[1]</sup>;与三国主要负责人合作完成了《三个国家的浪漫史》 <sup>[3]</sup>。"
|
65
|
+
- title: "开发平台"
|
66
|
+
content: "蜀汉建立的元老,为蜀国的发展和强大贡献了力量。(以上内容均为展示效果填充需要,内容请勿当真!!!)"
|
67
|
+
- lang: "en"
|
68
|
+
name: "Zhuge Liang"
|
69
|
+
motivation: "Cloud Computing Developer"
|
70
|
+
photo: "/assets/img/h3.webp"
|
71
|
+
email: "zhuge@live.cn"
|
72
|
+
github: "zhuge"
|
73
|
+
linkedin: "zhuge"
|
74
|
+
website: "https://zhuge.me"
|
75
|
+
languages:
|
76
|
+
- idiom: "Chinese"
|
77
|
+
- idiom: "Minnan"
|
78
|
+
educations:
|
79
|
+
- degree: "Bachelor-Computer Science"
|
80
|
+
university: "Wolong University"
|
81
|
+
time: "2012-2016"
|
82
|
+
- degree: "Master-Computer Science"
|
83
|
+
university: "Wolong University"
|
84
|
+
time: "2016-2019"
|
85
|
+
- degree: "Doctor-Computer Science"
|
86
|
+
university: "Wolong University"
|
87
|
+
time: "2019-Now"
|
88
|
+
skills:
|
89
|
+
- title: "Backend Skills"
|
90
|
+
skill:
|
91
|
+
- Go
|
92
|
+
- Python
|
93
|
+
- PHP
|
94
|
+
- NodeJS
|
95
|
+
- title: "Frontend Skills"
|
96
|
+
skill:
|
97
|
+
- HTML/CSS/JS
|
98
|
+
- VueJS
|
99
|
+
- title: "DevOps Skills"
|
100
|
+
skill:
|
101
|
+
- Docker
|
102
|
+
- KVM
|
103
|
+
experience:
|
104
|
+
- role: "Three Kingdoms"
|
105
|
+
company: "Research"
|
106
|
+
time: "2017.10 - 2019.6"
|
107
|
+
details: "Analyze the internal and external factors of the three kingdoms of Wu, Shu and Wei, and predict the development trend of the three kingdoms in the future."
|
108
|
+
tech: "Techs: Python, Common ML algorithms (SVM, RF, DT, KNN)"
|
109
|
+
- role: "The union of Shu and Wu"
|
110
|
+
company: "Principal Researcher"
|
111
|
+
time: "2017.10 - 2019.6"
|
112
|
+
details: "Go to the Eastern Wu tongue to fight against the Confucian scholars, borrow the Dongfeng fire to burn the company camp, and borrow arrows from the thatched boat."
|
113
|
+
tech: "Techs: Linux, KVM, Docker, PHP, VueJS"
|
114
|
+
- role : "Seven Release of MengHuo"
|
115
|
+
company: "Principal Researcher"
|
116
|
+
time: "2018.6 - 2018.10"
|
117
|
+
details: "Mainly responsible for formulating ideas and plans for capturing Meng Huo, seven captures and seven verticals finally subdued Meng Huo."
|
118
|
+
tech: "Techs: HTML/CSS/JS, AMAP, REST API"
|
119
|
+
honors:
|
120
|
+
- Award of Wolong University Outstanding Graduates, 2019
|
121
|
+
- Award of Wolong University President cholarship, 2016
|
122
|
+
- Award of Wolong University Outstanding Graduates, 2016
|
123
|
+
- Graduate Scholarship, 2012~Now/every year
|
124
|
+
publications:
|
125
|
+
- "<b>Zhuge Liang</b>, Guan Yu, Zhang Fei, Zhao Yun, Liu Bei*. 'The necessity of going out Qishan for serveral times'. SGZL, 2021(1):110-118."
|
126
|
+
- "<b>Zhuge Liang</b>, Zhou Yu, Guan Yu, Huang Gai, Lu Su, Sun Quan*, Liu Bei*. 'Why the union of Shu and Wu is good'. SGZB, 2020(1):110-118."
|
127
|
+
- "<b>Zhuge Liang</b>, Zhou Yu, Xun Yu, Cao Cao*, Sun Quan*, Liu Bei*. 'Romance of the three Kingdoms'. SGZR, 2022(1):110-118."
|
128
|
+
introduction:
|
129
|
+
- title: "Researches"
|
130
|
+
content: "During the postgraduate period, he was mainly engaged in the research of the Three Kingdoms, and with my help, he developed the Wushu Alliance <sup>[2]</sup>; in the later period, he made a decision to go out of Qishan in response to the strength of the Wei State <sup>[1]</sup>; Cooperated with the principals of the Three Kingdoms to complete 'The Romance of the Three Kingdoms'<sup>[3]</sup>."
|
131
|
+
- title: "Projects"
|
132
|
+
content: "The elders established by Shu Han contributed to the development and strength of the Shu Kingdom. (The above content maybe faake for filling needs, please do not take it seriously!!!)"
|
data/_data/links.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
links:
|
2
|
+
- name: "Github"
|
3
|
+
info: "免费代码托管"
|
4
|
+
img: "https://cdn-icons-png.flaticon.com/512/1051/1051326.png"
|
5
|
+
url: "https://github.com"
|
6
|
+
- name: "Cloudflare"
|
7
|
+
info: "全球加速网络"
|
8
|
+
img: "https://cdn-icons-png.flaticon.com/512/5969/5969044.png"
|
9
|
+
url: "https://cloudflare.com"
|
10
|
+
friends:
|
11
|
+
- name: "Mr Li"
|
12
|
+
info: "zhonger 的博客"
|
13
|
+
img: "https://lisz.me/assets/img/profile.webp"
|
14
|
+
url: "https://lisz.me"
|
data/_includes/footer.html
CHANGED
@@ -7,10 +7,10 @@
|
|
7
7
|
{% endunless %}
|
8
8
|
{{ current }}
|
9
9
|
{% if site.beian %}
|
10
|
-
<a href="https://beian.miit.gov.cn/" target="_blank">{{ site.beian }}</a>
|
10
|
+
<a href="https://beian.miit.gov.cn/" target="_blank" class="extlinks">{{ site.beian }}</a>
|
11
11
|
{% endif %}
|
12
12
|
</section>
|
13
|
-
<section>Powered by <a href="//jekyllrb.com">Jekyll</a> & <a href="https://github.com/zhonger/jekyll-theme-H2O-ac">H2O-ac</a> {% if site.version %}v{{ site.version }} {% endif %} (based on <a href="https://github.com/kaeyleo/jekyll-theme-H2O">H2O</a>)
|
13
|
+
<section>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> {% if site.version %}v{{ site.version }} {% endif %} (based on <a href="https://github.com/kaeyleo/jekyll-theme-H2O" target="_blank" class="extlinks">H2O</a>) {% if site.supports.webify %} & <a href="https://webify.cloudbase.net/" target="_blank" class="extlinks">CloudBase Webify</a> {% endif %}
|
14
14
|
{% if site.cnzz %}
|
15
15
|
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_{{ site.cnzz }}'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D{{ site.cnzz }}%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
|
16
16
|
{% endif %}
|
@@ -25,7 +25,20 @@
|
|
25
25
|
</span>
|
26
26
|
</section>
|
27
27
|
{% endif %}
|
28
|
+
{% if site.supports.upyun %}
|
29
|
+
<section>
|
30
|
+
<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank" class="extlinks">本网站由 <img src="{{ "/assets/icons/upyun.png" | relative_url }}" class="upyun" /></span> 提供 CDN 加速/云存储服务</a>
|
31
|
+
</section>
|
32
|
+
{% endif %}
|
28
33
|
</footer>
|
34
|
+
<div class="cookie-tip">
|
35
|
+
{% if site.language == 'zh-cn' %}
|
36
|
+
{{ cookie.cookieconsent_status }}为了提升本站的使用体验和必要功能的正常使用,本站会使用本地 Cookie。详细请查看「<a href="{{ site.tos | prepend: site.baseurl }}">本站使用条款</a>」了解更多。
|
37
|
+
{% else %}
|
38
|
+
In order to improve the experience and gurantee necessary functions of our website, we will use the local Cookie. More details in <a href="{{ site.tos | prepend: site.baseurl }}">ToS</a> page.
|
39
|
+
{% endif %}
|
40
|
+
<button id="accept-tos">同意(Accept)</button>
|
41
|
+
</div>
|
29
42
|
<button id="list" aria-label="Scroll back to top" class="mobile-list" type="button">
|
30
43
|
<svg class="icon list day" aria-hidden="true">
|
31
44
|
<use xlink:href="#icon-list-day"></use>
|
data/_includes/head.html
CHANGED
@@ -18,13 +18,13 @@
|
|
18
18
|
{% endif %}
|
19
19
|
<meta name="theme-color" content="{{ site.pwa.color }}" />
|
20
20
|
<link rel="manifest" href="{{ "/manifest.json" | prepend: site.baseurl }}" />
|
21
|
-
<link rel="apple-touch-icon" href="{{ "/assets/img/touch/apple-touch-icon.png" | prepend: site.baseurl" />
|
21
|
+
<link rel="apple-touch-icon" href="{{ "/assets/img/touch/apple-touch-icon.png" | prepend: site.baseurl }}" />
|
22
22
|
<link rel="Shortcut Icon" href="{{ site.favicon | prepend: site.baseurl }}">
|
23
23
|
<link rel="icon" href="{{ site.favicon | prepend: site.baseurl }}" type="image/x-icon" />
|
24
24
|
<link rel="bookmark" href="{{ site.favicon | prepend: site.baseurl }}" type="image/x-icon" />
|
25
25
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.min.css" async>
|
26
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css" />
|
26
27
|
<link rel="stylesheet" href="{{ "/assets/css/plugins.min.css" | prepend: site.baseurl }}">
|
27
|
-
<link rel="preload" href="{{ "/assets/fonts/Merriweather-Regular.ttf" | prepend: site.baseurl }}" as="font" crossorigin="anonymous">
|
28
28
|
{% assign prisms1 = "coy,dark,funky,okaidia,solarizedlight,tomorrow,twilight" | split: "," %}
|
29
29
|
{% assign prisms2 = "a11y-dark,atom-dark,base16-ateliersulphurpool.light,cb,coldark-cold,coy-without-shadows,darcula,duotone-dark,duotone-earth,duotone-light,dutone-sea,dutone-space,ghcolors,gruvbox-dark,gruvbox-light,holi-theme,hopscotch,lucario,material-dark,material-light,material-oceanic,night-owl,nord,one-dark,one-light,pojoaque,shades-of-purple,solarized-dark-atom,synthwave84,vs,vsc-dark-plus,xonokai,z-touch" | split: "," %}
|
30
30
|
{% if prisms1 contains site.prism.theme %}
|
data/_includes/header.html
CHANGED
@@ -17,11 +17,26 @@
|
|
17
17
|
<nav class="g-nav">
|
18
18
|
<ul>
|
19
19
|
{% for i in site.nav %}
|
20
|
-
|
21
|
-
<
|
22
|
-
{{ i[0] }}
|
23
|
-
|
24
|
-
|
20
|
+
{% if i[1].first %}
|
21
|
+
<li class="dropdown">
|
22
|
+
<a class="dropdown-toggle"> {{ i[0] }} </a>
|
23
|
+
<ul class="dropdown-menu">
|
24
|
+
{% for j in i[1] %}
|
25
|
+
<li>
|
26
|
+
<a href="{{ j[1] | relative_url}}" aria-label="{{ j[0] }}">
|
27
|
+
{{ j[0] }}
|
28
|
+
</a>
|
29
|
+
</li>
|
30
|
+
{% endfor %}
|
31
|
+
</ul>
|
32
|
+
</li>
|
33
|
+
{% else %}
|
34
|
+
<li>
|
35
|
+
<a href="{{ i[1] | relative_url}}" aria-label="{{ i[0] }}">
|
36
|
+
{{ i[0] }}
|
37
|
+
</a>
|
38
|
+
</li>
|
39
|
+
{% endif %}
|
25
40
|
{% endfor %}
|
26
41
|
<li class="mode">
|
27
42
|
<svg class="icon day" aria-hidden="true">
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{% if page.mermaid or site.mermaid %}
|
2
|
+
<script src="https://cdn.jsdelivr.net/npm/mermaid@9.1.6/dist/mermaid.min.js"></script>
|
3
|
+
<script>
|
4
|
+
$(document).ready(function (){
|
5
|
+
mermaid.initialize({
|
6
|
+
startOnLoad:true,
|
7
|
+
theme: "default",
|
8
|
+
});
|
9
|
+
mermaid.init(undefined, $('.mermaid2'));
|
10
|
+
});
|
11
|
+
</script>
|
12
|
+
{% endif %}
|
data/_includes/post-head.html
CHANGED
@@ -13,6 +13,12 @@
|
|
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
|
+
{% if page.next.url %}
|
17
|
+
<meta property="og:previous_url" content="{{ page.next.url | relative_url }}">
|
18
|
+
{% endif %}
|
19
|
+
{% if page.previous.url %}
|
20
|
+
<meta property="og:next_url" content="{{ page.previous.url | relative_url }}">
|
21
|
+
{% endif %}
|
16
22
|
<meta property="post-date-format" content="{{ site.formats.time }}">
|
17
23
|
{% case site.formats.time %}
|
18
24
|
{% when 0 %}
|
@@ -31,10 +37,9 @@
|
|
31
37
|
<link rel="Shortcut Icon" href="{{ site.favicon | prepend: site.baseurl }}">
|
32
38
|
<link rel="icon" href="{{ site.favicon | prepend: site.baseurl }}" type="image/x-icon" />
|
33
39
|
<link rel="bookmark" href="{{ site.favicon | prepend: site.baseurl }}" type="image/x-icon" />
|
34
|
-
<link rel="stylesheet" href="
|
40
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.min.css" />
|
41
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css" />
|
35
42
|
<link rel="stylesheet" href="{{ "/assets/css/plugins.min.css" | prepend: site.baseurl }}" />
|
36
|
-
<link rel="preload" href="{{ "/assets/fonts/Merriweather-Regular.ttf" | prepend: site.baseurl }}" as="font" crossorigin="anonymous" />
|
37
|
-
<link rel="stylesheet" href="{{ "/assets/fonts/Merriweather-Regular.ttf" | prepend: site.baseurl }}" media="print" onload="this.media='all'" />
|
38
43
|
{% assign prisms1 = "coy,dark,funky,okaidia,solarizedlight,tomorrow,twilight" | split: "," %}
|
39
44
|
{% assign prisms2 = "a11y-dark,atom-dark,base16-ateliersulphurpool.light,cb,coldark-cold,coy-without-shadows,darcula,duotone-dark,duotone-earth,duotone-light,dutone-sea,dutone-space,ghcolors,gruvbox-dark,gruvbox-light,holi-theme,hopscotch,lucario,material-dark,material-light,material-oceanic,night-owl,nord,one-dark,one-light,pojoaque,shades-of-purple,solarized-dark-atom,synthwave84,vs,vsc-dark-plus,xonokai,z-touch" | split: "," %}
|
40
45
|
{% if prisms1 contains site.prism.theme %}
|
data/_layouts/blog.html
CHANGED
@@ -34,6 +34,26 @@ description: 或许是最漂亮的Jekyll主题
|
|
34
34
|
<div class="bio">
|
35
35
|
<p>{{ site.bio }}</p>
|
36
36
|
</div>
|
37
|
+
<div class="level">
|
38
|
+
<div class="level-item">
|
39
|
+
<p class="heading">Posts</p>
|
40
|
+
<a href="{{ "/archives.html" | prepend: site.baseurl }}">
|
41
|
+
<p class="title">{{ site.posts | size }}</p>
|
42
|
+
</a>
|
43
|
+
</div>
|
44
|
+
<div class="level-item">
|
45
|
+
<p class="heading">Categories</p>
|
46
|
+
<a href="{{ "/categories.html" | prepend: site.baseurl }}">
|
47
|
+
<p class="title">{{ site.categories | size }}</p>
|
48
|
+
</a>
|
49
|
+
</div>
|
50
|
+
<div class="level-item">
|
51
|
+
<p class="heading">Tags</p>
|
52
|
+
<a href="{{ "/tags.html" | prepend: site.baseurl }}">
|
53
|
+
<p class="title">{{ site.tags | size }}</p>
|
54
|
+
</a>
|
55
|
+
</div>
|
56
|
+
</div>
|
37
57
|
{% if site.sns.size > 0 %}
|
38
58
|
<ul id="sns-links" class="sns-links">
|
39
59
|
{% for s in site.sns %}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
home-title: Welcome to zhonger's blog!
|
4
|
+
description: Writing, writing, writing ...
|
5
|
+
permalink: /categories.html
|
6
|
+
cover: https://images.unsplash.com/photo-1465189684280-6a8fa9b19a7a?w=1600&q=900
|
7
|
+
---
|
8
|
+
|
9
|
+
{% assign category_posts_num = site.categories | size%}
|
10
|
+
{% assign uncategory_posts = site.posts | where: "categories", empty | sort: "date" | reverse %}
|
11
|
+
{% assign uncategory_posts_num = uncategory_posts | size %}
|
12
|
+
|
13
|
+
<h2>Categories</h2>
|
14
|
+
|
15
|
+
<p>本站共有 {{ site.posts | size }} 篇文章{% if category_posts_num > 0 %},其中有 {{ category_posts_num }} 个类别{% endif %}{% if uncategory_posts_num > 0 %},{{ uncategory_posts_num }} 篇未分类{% endif %}</p>
|
16
|
+
|
17
|
+
{% for category in site.categories %}
|
18
|
+
{% assign category_name = category | first %}
|
19
|
+
<h3 class="category">{{ category[0] }}</h3>
|
20
|
+
<ul>
|
21
|
+
{% for post in site.categories[category_name] %}
|
22
|
+
<li>
|
23
|
+
<p class="archives-title">
|
24
|
+
<span class="archives-date">
|
25
|
+
{% case site.formats.time %}
|
26
|
+
{% when 0 %}
|
27
|
+
{{ post.date | date: "%Y-%m-%d" }}
|
28
|
+
{% when 1 %}
|
29
|
+
{{ post.date | date_to_string }}
|
30
|
+
{% else %}
|
31
|
+
{{ post.date | date: "%Y年%-m月%-d日" }}
|
32
|
+
{% endcase %}
|
33
|
+
</span>
|
34
|
+
<a href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a>
|
35
|
+
</p>
|
36
|
+
</li>
|
37
|
+
{% endfor %}
|
38
|
+
</ul>
|
39
|
+
{% endfor %}
|
40
|
+
|
41
|
+
{% if uncategory_posts_num > 0 %}
|
42
|
+
<h3 class="category">Uncategorized</h3>
|
43
|
+
<ul>
|
44
|
+
{% for post in uncategory_posts %}
|
45
|
+
<li>
|
46
|
+
<p class="archives-title">
|
47
|
+
<span class="archives-date">
|
48
|
+
{% case site.formats.time %}
|
49
|
+
{% when 0 %}
|
50
|
+
{{ post.date | date: "%Y-%m-%d" }}
|
51
|
+
{% when 1 %}
|
52
|
+
{{ post.date | date_to_string }}
|
53
|
+
{% else %}
|
54
|
+
{{ post.date | date: "%Y年%-m月%-d日" }}
|
55
|
+
{% endcase %}
|
56
|
+
</span>
|
57
|
+
<a href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a>
|
58
|
+
</p>
|
59
|
+
</li>
|
60
|
+
{% endfor %}
|
61
|
+
</ul>
|
62
|
+
{% endif %}
|