forked from wu-kan/jekyll-theme-WuK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.yml
227 lines (221 loc) · 11.3 KB
/
_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# 这个文件仅用于生成文档,配置项并不完整,可以在<https://github.com/wu-kan/wu-kan.github.io/blob/master/_config.yml>获取完整配置文档及示例!
title: jekyll-theme-WuK # 站点标题
description: A content-first, sliding sidebar theme for Jekyll. # 头像背后的信息,<br/>代表换行
url: https://jekyll-theme-WuK.wu-kan.cn
baseurl: "" # 假如你的博客是建在某个目录下的,请在这里加上目录名,并且下面配置的所有链接里的`/assets`前也要加,即`/your_baseurl/assets`。这一项结尾不要有'/'。
defaults: # 将所有配置选项使用<https://jekyllrb.com/docs/configuration/front-matter-defaults/>功能进行配置
- scope:
path: "" # an empty string here means all files in the project
values: # 以下配置项也可以在任意页面自定义
categories: "_posts"
jekyll-theme-WuK: # 我的主题的自定义样式都在这个命名空间
default:
body:
theme-base: theme-base-0d # 可选的主题色包括08~0f,见 <https://github.com/poole/lanyon>
layout-reverse: true # 开启后sidebar在右边,反之左边
sidebar-overlay: true # 开启后正文不随sidebar移动而移动
append_to_head: # 通过内嵌html的方式引入并定制插件,删改前确定知道自己在做什么。定制插件的方式可以参考这篇文章 <https://wu-kan.cn/_posts/2019-01-18-基于Jekyll搭建个人博客/>
- | #一些页面优化标签,看不懂可跳过
<meta
name="viewport"
content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<meta
http-equiv="content-type"
content="text/html; charset=utf-8"
/>
<link
rel="alternate"
href="/feed.xml"
title="RSS"
type="application/rss+xml"
/>
- | # 网站小图标,可换成你自己的图片,改href中的部分即可
<link
rel="apple-touch-icon-precomposed"
href="https://gravatar.loli.net/avatar/289efba375d63424de3c49569c446744?s=320"
/>
<link
rel="shortcut
icon"
href="https://gravatar.loli.net/avatar/289efba375d63424de3c49569c446744?s=32"
/>
- | # 来自lanyon的页面样式,不要改
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/gh/poole/[email protected]/public/css/poole.min.css,gh/poole/[email protected]/public/css/lanyon.min.css,gh/poole/[email protected]/public/css/syntax.min.css"
/>
- | # 用js引入fontawesome图标样式,功能更丰富
<script
async="async"
src="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/js/all.min.js"
></script>
- | # 引入live2d看板娘!不需要可以把这一项都删掉
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/Dreamer-Paul/[email protected]/static/pio.min.css"
/>
<script
async="async"
src="https://cdn.jsdelivr.net/combine/gh/Dreamer-Paul/[email protected]/static/l2d.min.js,gh/Dreamer-Paul/[email protected]/static/pio.min.js"
onload='
let pio_container = document.createElement("div");
pio_container.classList.add("pio-container");
pio_container.classList.add("right");
pio_container.style.bottom = "-2rem";
pio_container.style.zIndex = "1";
document.body.insertAdjacentElement("beforeend", pio_container);
let pio_action = document.createElement("div");
pio_action.classList.add("pio-action");
pio_container.insertAdjacentElement("beforeend", pio_action);
let pio_canvas = document.createElement("canvas");
pio_canvas.id = "pio";
pio_canvas.style.width = "14rem";
pio_canvas.width = "600";
pio_canvas.height = "800";
pio_container.insertAdjacentElement("beforeend", pio_canvas);
let pio = new Paul_Pio({
"mode": "fixed",
"hidden": true,
"night": "for(let i=7; i<16; ++i) if(document.body.classList.contains(`theme-base-0`+i.toString(16))) { document.body.classList.remove(`theme-base-0`+i.toString(16)); document.body.classList.add(`theme-base-0`+((i-6)%9+7).toString(16)); break; }",
"content": {
"link": ["https:\/\/wu-kan.cn"],
"skin": ["要换成我的朋友吗?", "让她放个假吧~"],
"hidden": true,
"custom": [{
"selector": "a",
"type": "link",
}, {
"selector": ".sidebar-toggle",
"text": "打开侧边栏叭~"
}, {
"selector": ".effect-info",
"text": "哇,你发现了什么!"
}, {
"selector": "#sidebar-search-input",
"text": "想搜索什么呢?很多干货哦!"
}, {
"selector": "#toc",
"text": "这是目录~"
}, {
"selector": ".page-title",
"text": "这是标题~"
}, {
"selector": ".v",
"text": "评论没有审核,要对自己的发言负责哦~"
}]
},
"model": [
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/33/model.2018.bls-winter.json",
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/platelet-2/model.json",
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/xiaomai/xiaomai.model.json",
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/mashiro/seifuku.model.json",
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/Violet/14.json",
"https:\/\/cdn.jsdelivr.net/gh/xiaoski/live2d_models_collection/Kobayaxi/Kobayaxi.model.json",
"https:\/\/cdn.jsdelivr.net/gh/xiaoski/live2d_models_collection/mikoto/mikoto.model.json",
"https:\/\/cdn.jsdelivr.net/gh/xiaoski/live2d_models_collection/uiharu/uiharu.model.json"]
});'
></script>
- | # 百度爬虫推送,http站点使用 http://push.zhanzhang.baidu.com/push.js
<script
src='https://zz.bdstatic.com/linksubmit/push.js'
async="async"
></script>
- | #修复行内图片默认样式
<style>
img {
display: inline-block;
margin: 0;
}
</style>
- | # 彩虹滚动条,仅对Chrome系浏览器生效
<style>
::-webkit-scrollbar {
width: 3px;
height: 3px;
}
::-webkit-scrollbar-thumb {
background-image: linear-gradient(45deg, Cyan 0%, Magenta 50%, Yellow 100%);
}
</style>
- | # 选中字体颜色
<style>
::selection {
color: White;
background: Black;
}
</style>
sidebar: # 此配置项下是一些关于侧边栏的配置
disable: true # 是否不显示sidebar
home: # 展示页的配置可跳过,详见<https://revealjs.com/>
append_to_section_tag:
- key: data-markdown
- key: data-separator # 水平展示页分隔符
value: <!-- .slide -->
- key: data-separator-vertical # 垂直展示页分隔符
value: <!-- .slide vertical=true -->
- key: data-background-color
value: "White"
prepend: |
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/npm/[email protected]/dist/reveal.min.css,npm/[email protected]/dist/theme/serif.min.css"
/>
<style>
.sidebar {
line-height: 1.5;
}
.reveal .slides {
text-align: left;
}
.reveal a {
color: #268BD2;
}
</style>
append: |
<script
async="async"
src="https://cdn.jsdelivr.net/combine/npm/[email protected]/dist/reveal.min.js,npm/[email protected]/plugin/markdown/markdown.min.js,npm/[email protected]/plugin/math/math.min.js,npm/[email protected]/plugin/highlight/highlight.min.js"
onload="
for(let x of document.getElementsByClassName('wrap'))
x.classList.add('reveal');
Reveal.initialize({
height: '100%',
hash: true,
mouseWheel: true,
navigationMode: 'linear',
math: {
mathjax: 'https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js',
config: 'TeX-AMS_HTML-full'
},
plugins: [ RevealMarkdown ,RevealMath, RevealHighlight]
});
"></script>
# githubpage上支持的插件见<https://pages.github.com/versions/>
plugins: # <https://jekyllrb.com/docs/plugins/>
- jekyll-readme-index # 使用readme做index,从而和github渲染效果一致
- jekyll-default-layout # 为每个markdown自动生成layout
- jekyll-seo-tag # 为每个页面生成标题
readme_index: # 缺失index.md和index.html时,使用README.md代替之
with_frontmatter: true # 支持带有yaml头的README
# permalink: /:categories/:year-:month-:day-:title/ #生成文章的地址格式,我希望它和_posts目录下的格式一样
# timezone: Asia/Shanghai # 解决githubpage显示时间不正确的问题,见<https://www.iana.org/time-zones>
# future: false # 不发布时间在未来的文章
# limit_posts: 999 # 限制博文数量
# encoding: utf-8
markdown: kramdown
kramdown: # 见<https://kramdown.gettalong.org/options.html>
input: GFM # 见<http://jekyllcn.com/docs/configuration/#kramdown>
syntax_highlighter_opts: # 可见<https://kramdown.gettalong.org/syntax_highlighter/rouge.html>
disable: true # 关掉默认的高亮,换用prismjs
# 以下为 githubpage上不可修改的参数,见<https://help.github.com/en/github/working-with-github-pages/about-github-pages-and-jekyll>
#lsi: false # 为相关文章生成索引
#safe: true # 禁用自定义插件
#source: [your repo's top level directory] # Jekyll 读取文件的路径
#incremental: false # 增量生成
#highlighter: rouge # 代码高亮器
#gist:
# noscript: false
#kramdown:
# math_engine: mathjax
# syntax_highlighter: rouge