hexo-theme-shokax 0.0.2-alpha1 → 0.0.2-alpha3

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.
Files changed (159) hide show
  1. package/CODE_OF_CONDUCT.md +128 -0
  2. package/CONTRIBUTING.md +56 -0
  3. package/LICENSE +28 -28
  4. package/LICENSE-shoka +21 -21
  5. package/README.md +46 -53
  6. package/README_en.MD +25 -0
  7. package/_config.yml +392 -355
  8. package/_images.yml +100 -100
  9. package/languages/README.md +19 -19
  10. package/languages/default.yml +1 -1
  11. package/languages/en.yml +151 -151
  12. package/languages/ja.yml +146 -146
  13. package/languages/zh-CN.yml +154 -154
  14. package/languages/zh-HK.yml +146 -146
  15. package/languages/zh-TW.yml +146 -146
  16. package/layout/_alternate/atom.ejs +30 -30
  17. package/layout/_alternate/json.ejs +16 -16
  18. package/layout/_alternate/rss.ejs +34 -34
  19. package/layout/_mixin/breadcrumb.pug +33 -33
  20. package/layout/_mixin/card.pug +37 -37
  21. package/layout/_mixin/comment.pug +66 -12
  22. package/layout/_mixin/postmeta.pug +30 -30
  23. package/layout/_mixin/segment.pug +32 -32
  24. package/layout/_mixin/sidebar.pug +36 -36
  25. package/layout/_mixin/widgets.pug +31 -29
  26. package/layout/_partials/footer.pug +40 -40
  27. package/layout/_partials/head/head.pug +51 -58
  28. package/layout/_partials/head/head_com.pug +17 -17
  29. package/layout/_partials/head/pwa.pug +18 -18
  30. package/layout/_partials/header.pug +18 -20
  31. package/layout/_partials/layout.pug +143 -153
  32. package/layout/_partials/loading.pug +13 -13
  33. package/layout/_partials/pagination.pug +4 -4
  34. package/layout/_partials/post/copyright.pug +20 -20
  35. package/layout/_partials/post/footer.pug +14 -14
  36. package/layout/_partials/post/nav.pug +13 -13
  37. package/layout/_partials/post/post.pug +28 -27
  38. package/layout/_partials/post/reward.pug +18 -18
  39. package/layout/_partials/sidebar/menu.pug +37 -37
  40. package/layout/_partials/sidebar/overview.pug +41 -42
  41. package/layout/_partials/third-party/baidu-analytics.pug +11 -11
  42. package/layout/_partials/third-party/clarity.pug +8 -8
  43. package/layout/archive.pug +118 -118
  44. package/layout/category.pug +63 -63
  45. package/layout/index.pug +33 -33
  46. package/layout/page.pug +56 -56
  47. package/layout/post.pug +35 -35
  48. package/layout/tag.pug +43 -43
  49. package/package.json +35 -35
  50. package/scripts/filters/locals.js +59 -59
  51. package/scripts/filters/post.js +23 -23
  52. package/scripts/generaters/archive.js +141 -141
  53. package/scripts/generaters/config.js +43 -43
  54. package/scripts/generaters/images.js +26 -26
  55. package/scripts/generaters/index.js +110 -110
  56. package/scripts/generaters/pages.js +19 -19
  57. package/scripts/generaters/script.js +89 -89
  58. package/scripts/helpers/asset.js +183 -237
  59. package/scripts/helpers/engine.js +190 -190
  60. package/scripts/helpers/list_categories.js +140 -140
  61. package/scripts/helpers/symbols_count_time.js +76 -76
  62. package/scripts/plugin/index.js +6 -6
  63. package/scripts/plugin/lib/injects-point.js +19 -19
  64. package/scripts/plugin/lib/injects.js +89 -88
  65. package/scripts/tags/links.js +86 -86
  66. package/scripts/tags/media.js +19 -19
  67. package/source/assets/algolia_logo.svg +9 -9
  68. package/source/assets/logo.svg +16 -16
  69. package/source/css/_colors.styl +207 -207
  70. package/source/css/_common/components/components.styl +6 -6
  71. package/source/css/_common/components/highlight/highlight.styl +353 -353
  72. package/source/css/_common/components/highlight/operation.styl +21 -21
  73. package/source/css/_common/components/pages/collapse.styl +119 -119
  74. package/source/css/_common/components/pages/home.styl +385 -385
  75. package/source/css/_common/components/pages/pages.styl +56 -56
  76. package/source/css/_common/components/pages/tag-cloud.styl +12 -12
  77. package/source/css/_common/components/post/breadcrumb.styl +39 -39
  78. package/source/css/_common/components/post/copyright.styl +41 -41
  79. package/source/css/_common/components/post/expand.styl +264 -264
  80. package/source/css/_common/components/post/footer.styl +11 -11
  81. package/source/css/_common/components/post/header.styl +79 -79
  82. package/source/css/_common/components/post/nav.styl +63 -63
  83. package/source/css/_common/components/post/post.styl +29 -29
  84. package/source/css/_common/components/post/reward.styl +50 -50
  85. package/source/css/_common/components/post/rtl.styl +12 -12
  86. package/source/css/_common/components/post/tags.styl +39 -39
  87. package/source/css/_common/components/tags/collapse.styl +72 -72
  88. package/source/css/_common/components/tags/container.styl +49 -49
  89. package/source/css/_common/components/tags/label.styl +12 -12
  90. package/source/css/_common/components/tags/links.styl +77 -77
  91. package/source/css/_common/components/tags/list.styl +131 -131
  92. package/source/css/_common/components/tags/note.styl +70 -70
  93. package/source/css/_common/components/tags/player.styl +361 -361
  94. package/source/css/_common/components/tags/quiz.styl +200 -200
  95. package/source/css/_common/components/tags/tabs.styl +83 -83
  96. package/source/css/_common/components/tags/tags.styl +9 -9
  97. package/source/css/_common/components/third-party/loading.styl +222 -222
  98. package/source/css/_common/components/third-party/mermaid/class.styl +90 -90
  99. package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -72
  100. package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -251
  101. package/source/css/_common/components/third-party/mermaid/git.styl +7 -7
  102. package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -37
  103. package/source/css/_common/components/third-party/mermaid/pie.styl +9 -9
  104. package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -95
  105. package/source/css/_common/components/third-party/mermaid/state.styl +130 -130
  106. package/source/css/_common/components/third-party/pace.styl +18 -18
  107. package/source/css/_common/components/third-party/search.styl +167 -167
  108. package/source/css/_common/components/third-party/theme.styl +151 -151
  109. package/source/css/_common/components/third-party/third-party.styl +22 -22
  110. package/source/css/_common/components/third-party/valine.styl +548 -548
  111. package/source/css/_common/components/third-party/widgets.styl +57 -57
  112. package/source/css/_common/outline/footer/footer.styl +69 -69
  113. package/source/css/_common/outline/header/brand.styl +77 -77
  114. package/source/css/_common/outline/header/header.styl +20 -20
  115. package/source/css/_common/outline/header/image.styl +79 -79
  116. package/source/css/_common/outline/header/menu.styl +117 -117
  117. package/source/css/_common/outline/header/nav.styl +81 -81
  118. package/source/css/_common/outline/header/right.styl +15 -15
  119. package/source/css/_common/outline/header/tool.styl +207 -207
  120. package/source/css/_common/outline/header/waves.styl +50 -50
  121. package/source/css/_common/outline/mobile.styl +46 -46
  122. package/source/css/_common/outline/outline.styl +78 -78
  123. package/source/css/_common/outline/sidebar/author.styl +59 -59
  124. package/source/css/_common/outline/sidebar/dimmer.styl +23 -23
  125. package/source/css/_common/outline/sidebar/menu.styl +63 -63
  126. package/source/css/_common/outline/sidebar/quick.styl +43 -43
  127. package/source/css/_common/outline/sidebar/related.styl +56 -56
  128. package/source/css/_common/outline/sidebar/sidebar.styl +75 -75
  129. package/source/css/_common/outline/sidebar/social.styl +69 -69
  130. package/source/css/_common/outline/sidebar/state.styl +37 -37
  131. package/source/css/_common/outline/sidebar/tab.styl +71 -71
  132. package/source/css/_common/outline/sidebar/toc.styl +47 -47
  133. package/source/css/_common/scaffolding/animate.styl +318 -318
  134. package/source/css/_common/scaffolding/base.styl +172 -172
  135. package/source/css/_common/scaffolding/buttons.styl +48 -48
  136. package/source/css/_common/scaffolding/divider.styl +36 -36
  137. package/source/css/_common/scaffolding/iconfont.styl +443 -443
  138. package/source/css/_common/scaffolding/normalize.styl +289 -289
  139. package/source/css/_common/scaffolding/pagination.styl +81 -81
  140. package/source/css/_common/scaffolding/ribbon.styl +38 -38
  141. package/source/css/_common/scaffolding/scaffolding.styl +14 -14
  142. package/source/css/_common/scaffolding/scrollbar.styl +37 -37
  143. package/source/css/_common/scaffolding/tables.styl +50 -50
  144. package/source/css/_common/scaffolding/tip.styl +19 -19
  145. package/source/css/_common/scaffolding/toggles.styl +59 -59
  146. package/source/css/_iconfont.styl +451 -451
  147. package/source/css/_mixins.styl +146 -146
  148. package/source/css/_variables.styl +89 -89
  149. package/source/css/app.styl +36 -38
  150. package/source/css/comment.styl +5 -5
  151. package/source/css/mermaid.styl +5 -5
  152. package/source/js/_app/components.js +330 -330
  153. package/source/js/_app/global.js +317 -317
  154. package/source/js/_app/library.js +302 -302
  155. package/source/js/_app/page.js +623 -623
  156. package/source/js/_app/player.js +748 -748
  157. package/source/js/_app/vue.js +43 -43
  158. package/layout/_partials/third-party/qweather.pug +0 -35
  159. package/source/css/plugin.styl +0 -174
package/_config.yml CHANGED
@@ -1,355 +1,392 @@
1
- alternate: testName # 站点大标题
2
-
3
- statics: "/" # 静态文件根目录
4
- assets: "assets"
5
- css: "css"
6
- js: "js"
7
-
8
- open_graph:
9
- #twitter_id:
10
- #google_plus:
11
- #fb_admins:
12
- #fb_app_id:
13
-
14
-
15
- grayMode: false # 全站黑白滤镜
16
- # 请注意: 本主题的PWA功能只是一个装载器,需要自备js和manifest
17
- # 图片可通过https://lp-pwa.gitee.io/pwa-genicon/生成
18
- pwa:
19
- enable: true # 开启PWA功能
20
- serviceworker: sw.js #serviceworker脚本位置,使用以/为基准的绝对路径
21
- manifest: manifest.json #manifest位置,使用以/为基准的绝对路径
22
-
23
- # 实验性特性
24
- experiments:
25
- noPlayer: false # 禁用音乐播放器
26
- gradient: false # 使用CSS渐变作为文章封面
27
- gradientCover: "" # 当gradient为true时使用的主页面cover(为空则使用bing随机图片)
28
- debug: false # 使用debug模式启动
29
-
30
- icon:
31
- favicon: "/favicon.ico"
32
- apple_touch_icon: "/apple-touch-icon.png"
33
-
34
- seo:
35
- bing: "bing-key"
36
- google: "google-key"
37
- yandex: "yandex-key"
38
- baidu: "baidu-key"
39
-
40
- visitor:
41
- clarity: false
42
- baiduAnalytics: false
43
-
44
- darkmode: false
45
- auto_dark: # 自动亮/暗模式
46
- enable: true #是否开启
47
- start: 20 #开始时间
48
- end: 7 #结束时间
49
-
50
- auto_scroll: true
51
-
52
- loader:
53
- start: true # 进入页面时显示加载动画
54
- switch: false # 切换页面时显示加载动画
55
-
56
- # 显示的动画(烟花)
57
- fireworks:
58
- enable: true
59
- color:
60
- - "rgba(255,182,185,.9)"
61
- - "rgba(250,227,217,.9)"
62
- - "rgba(187,222,214,.9)"
63
- - "rgba(138,198,209,.9)"
64
-
65
- font:
66
- enable: true
67
- # 字体选项:
68
- # `external`:从google字体库加载字体.
69
- # `family: 字体家族名,无需引号
70
- # `size: x.x`. 以`em`为单位. 默认: 1 (16px)
71
-
72
- # 适用于所有在body标签内的文字.
73
- global:
74
- external: false
75
- family: HarmonyOS_Regular
76
- size:
77
-
78
- # 大标题字体.
79
- logo:
80
- external: false
81
- family: HarmonyOS_Regular
82
- size: 3.5
83
-
84
- # 页面标题字体.
85
- title:
86
- external: false
87
- family: HarmonyOS_Regular
88
- size: 2.5
89
-
90
- # 标题字体.
91
- headings:
92
- external: false
93
- family: HarmonyOS_Regular
94
- size:
95
-
96
- # 文章字体.
97
- posts:
98
- external: false
99
- family:
100
-
101
- # 代码块的字体
102
- codes:
103
- external: false
104
- family: jetbrains-mono # Inconsolata
105
-
106
- # 自定义区域
107
- custom:
108
- enable: false
109
- font:
110
- # - FamilyName: # 字体名(冒号后留空)
111
- # FamilyName: # 家族名
112
- # src: # 链接,遵循@font-face的url格式
113
-
114
- # project of https://www.iconfont.cn/
115
- # //at.alicdn.com/t/font_1832207_c8i9n1ulxlt.css => 1832207_c8i9n1ulxlt
116
- iconfont: "1832207_igi8uaupcus"
117
-
118
- menu:
119
- home: / || home
120
- about:
121
- default: /about/ || user
122
- aboutsite: /about/ || star
123
- updata: /updata/ || cloud
124
- admiration: /admiration/ || coffee
125
- privacy: /privacy/ || list-alt
126
- posts:
127
- default: / || feather
128
- archives: /archives/ || list-alt
129
- categories: /categories/ || th
130
- tags: /tags/ || tags
131
- statistics: /statistics/ || clock
132
- friends: /friends/ || heart
133
-
134
- twikoo:
135
- enable: true
136
- link: "https://cdn.staticfile.org/twikoo/1.6.6/twikoo.nocss.min.js"
137
- integ: "sha384-JqH6BJQNmQcewnQi3qB4KpHn9zYI4qjaBZe7E7cEW1aNjmvofaN/2+/qEmX8Nzou"
138
- mode: vercel # vercel或tencent
139
- envId: "https://114514.foo.bar" # twikoo环境ID,vercel填地址
140
- region: "none"
141
-
142
- waline:
143
- enable: false
144
- serverURL: ''
145
-
146
- # Social Links
147
- # Usage: `Key: permalink || icon || color`
148
- # Key is the link label showing to end users.
149
- # Value before `||` delimiter is the target permalink,
150
- # secend value is the name of Font icon.
151
- social:
152
- github: https://github.com/name || github || "#191717"
153
- #google: https://plus.google.com/yourname || google
154
- #twitter: https://twitter.com/yourname || twitter || "#00aff0"
155
- #zhihu: https://www.zhihu.com/people/yourname || zhihu || "#1e88e5"
156
- #music: https://music.163.com/#/user/home?id=yourid || cloud-music || "#e60026"
157
- #weibo: https://weibo.com/yourname || weibo || "#ea716e"
158
- #about: https://about.me/yourname || address-card || "#3b5998"
159
- # email: mailto:foo@xxx.com || envelope || "#55acd5"
160
- #facebook: https://www.facebook.com/yourname || facebook
161
- # stackoverflow: https://stackoverflow.com/ || stack-overflow
162
- #youtube: https://youtube.com/yourname || youtube
163
- #instagram: https://instagram.com/yourname || instagram
164
- #skype: skype:yourname?call|chat || skype
165
- #douban: https://www.douban.com/people/yourname/ || douban
166
-
167
- sidebar:
168
- # Sidebar Position.
169
- position: left
170
- # position: right
171
- # Replace the default avatar image and set the url here.
172
- avatar: avatar.jpg
173
-
174
- widgets:
175
- # if true, will show random posts
176
- random_posts: true
177
- # if true, will show recent comments
178
- recent_comments: true
179
-
180
- footer:
181
- # Specify the date when the site was setup. If not defined, current year will be used.
182
- since: 2021
183
- icon:
184
- name: sakura rotate
185
- # Change the color of icon, using Hex Code.
186
- color: "#ffc0cb"
187
- # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
188
- count: true
189
- powered: true
190
- lantern:
191
- enable: true #是否开启
192
- word1: 中 #第一个字
193
- word2: 秋 #第二个字
194
- icp:
195
- enable: false
196
- icon: "beian.webp"
197
- icpnumber: "xxx"
198
- beian: "xxx"
199
- recordcode: "xxx"
200
-
201
- post:
202
- # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
203
- count: true
204
-
205
- # 文章是否失效
206
- outime:
207
- enable: true
208
- days: 30 # 超过 30 天文章失效
209
-
210
- reward:
211
- # If true, reward will be displayed in every article by default.
212
- enable: true
213
- account:
214
- wechatpay: /wechatpay.png
215
- alipay: /alipay.png
216
- # paypal: /paypal.png
217
-
218
- # TagCloud settings for tags page.
219
- tagcloud:
220
- # All values below are same as default, change them by yourself.
221
- min: 16 # Minimun font size in px
222
- max: 22 # Maxium font size in px
223
- start: "#72cecf" # Start color (hex, rgba, hsla or color keywords)
224
- end: "#ffbac3" # End color (hex, rgba, hsla or color keywords)
225
- amount: 200 # Amount of tags, change it if you have more than 200 tags
226
-
227
- # ---------------------------------------------------------------
228
- # Third Party Plugins & Services Settings
229
- # ---------------------------------------------------------------
230
-
231
- # Creative Commons 4.0 International License.
232
- # See: https://creativecommons.org/share-your-work/licensing-types-examples
233
- # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
234
- # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
235
- # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
236
- creative_commons:
237
- license: by-nc-sa
238
- language: deed.zh
239
-
240
- # bgm
241
- audio:
242
- - title: 列表1
243
- list:
244
- - https://music.163.com/#/playlist?id=2943811283
245
- - https://music.163.com/#/playlist?id=2297706586
246
- - title: 列表2
247
- list:
248
- - https://music.163.com/#/playlist?id=2031842656
249
-
250
- # random image api
251
- image_server: # "https://acg.xydwz.cn/api/api.php"
252
-
253
- # Algolia Search
254
- # For more information: https://www.algolia.com
255
- search:
256
- hits:
257
- per_page: 10
258
-
259
- # Dependencies: https://github.com/amehime/hexo-renderer-multi-markdown-it
260
- pangu: false
261
-
262
- # Quicklink Support
263
- # For more information: https://github.com/GoogleChromeLabs/quicklink
264
- quicklink:
265
- # Custom a time in milliseconds by which the browser must execute prefetching.
266
- timeout: 3000
267
- # Default (true) will attempt to use the fetch() API if supported (rather than link[rel=prefetch]).
268
- priority: true
269
-
270
- # For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores.
271
- # See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns
272
- ignores:
273
-
274
- #! ---------------------------------------------------------------
275
- #! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
276
- #! UNLESS YOU KNOW WHAT YOU ARE DOING
277
- #! Script dependencies will be combined with jsDelivr (cdn.jsdelivr.net)
278
- #! ---------------------------------------------------------------
279
- advVendors:
280
- enable: true
281
- github: "https://cdn.jsdelivr.net/gh/"
282
- combine: "https://cdn.jsdelivr.net/"
283
- npm: "https://unpkg.com/"
284
- js:
285
- pace:
286
- src: bytedance:pace/1.0.2/pace.min.js
287
- pjax:
288
- src: baomitu:pjax/0.2.8/pjax.min.js
289
- fetch:
290
- src: npm:whatwg-fetch@3.4.0/dist/fetch.umd.js
291
- anime:
292
- src: bytedance:animejs/3.2.0/anime.min.js
293
- algolia:
294
- src: bytedance:algoliasearch/4.12.1/algoliasearch-lite.umd.min.js
295
- instantsearch:
296
- src: bytedance:instantsearch.js/4.39.0/instantsearch.production.min.js
297
- lazyload:
298
- src: bytedance:lozad.js/1.16.0/lozad.min.js
299
- quicklink:
300
- src: bytedance:quicklink/2.2.0/quicklink.umd.min.js
301
- fancybox:
302
- src: bytedance:??jquery/3.5.1/jquery.min.js,fancybox/3.5.7/jquery.fancybox.min.js,justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js
303
- async: true
304
- copy_tex:
305
- src: bytedance:KaTeX/0.12.0/contrib/copy-tex.min.js
306
- async: true
307
- chart:
308
- src: npm:frappe-charts@1.5.0/dist/frappe-charts.min.iife.js
309
- css:
310
- katex:
311
- src: npm:katex@0.12.0/dist/katex.min.css
312
- comment:
313
- src: css/comment.css
314
- fancybox:
315
- src: combine/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css,npm/justifiedGallery@3.8.1/dist/css/justifiedGallery.min.css
316
- vendorsList:
317
- js:
318
- - pace
319
- - pjax
320
- - fetch
321
- - anime
322
- - algolia
323
- - instantsearch
324
- - lazyload
325
- - quicklink
326
- - fancybox
327
- - copy_tex
328
- - chart
329
-
330
- vendors:
331
- css:
332
- # katex: npm/katex@0.12.0/dist/katex.min.css
333
- katex: npm/katex@0.12.0/dist/katex.min.css # ok
334
- comment: css/comment.css
335
- fancybox: combine/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css,npm/justifiedGallery@3.8.1/dist/css/justifiedGallery.min.css # notok
336
- # fancybox: npm/fancybox/justifiedGallery.min.css
337
-
338
- js:
339
- pace: npm/pace-js@1.0.2/pace.min.js # ok
340
- pjax: npm/pjax@0.2.8/pjax.min.js # ok
341
- fetch: npm/whatwg-fetch@3.4.0/dist/fetch.umd.min.js # ok
342
- anime: npm/animejs@3.2.0/lib/anime.min.js # ok
343
- algolia: npm/algoliasearch@4/dist/algoliasearch-lite.umd.js # ok
344
- instantsearch: npm/instantsearch.js@4/dist/instantsearch.production.min.js # ok
345
- lazyload: npm/lozad@1/dist/lozad.min.js # ok
346
- quicklink: npm/quicklink@2/dist/quicklink.umd.js # ok
347
- fancybox: combine/npm/jquery@3.5.1/dist/jquery.min.js,npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js,npm/justifiedGallery@3.8.1/dist/js/jquery.justifiedGallery.min.js # notok
348
- # fancybox: npm/fancybox/jquery.justifiedGallery.min.js
349
- valine: gh/amehime/MiniValine@4.2.2-beta10/dist/MiniValine.min.js
350
- copy_tex: npm/katex@0.12.0/dist/contrib/copy-tex.min.js # ok
351
- chart: npm/frappe-charts@1.5.0/dist/frappe-charts.min.iife.min.js # ok
352
-
353
- qweather:
354
- enable: false
355
- key: "114514"
1
+ alternate: testName # 站点大标题
2
+
3
+ statics: "/" # 静态文件根目录
4
+ assets: "assets"
5
+ css: "css"
6
+ js: "js"
7
+
8
+ open_graph:
9
+ #twitter_id:
10
+ #google_plus:
11
+ #fb_admins:
12
+ #fb_app_id:
13
+
14
+
15
+ grayMode: false # 全站黑白滤镜
16
+ # 请注意: 本主题的PWA功能只是一个装载器,需要自备js和manifest
17
+ # 图片可通过https://lp-pwa.gitee.io/pwa-genicon/生成
18
+ pwa:
19
+ enable: false # 开启PWA功能
20
+ serviceworker: sw.js #serviceworker脚本位置,使用以/为基准的绝对路径
21
+ manifest: manifest.json #manifest位置,使用以/为基准的绝对路径
22
+
23
+ # 实验性特性
24
+ experiments:
25
+ noPlayer: false # 禁用音乐播放器
26
+ gradient: false # 使用CSS渐变作为文章封面
27
+ gradientCover: "" # 当gradient为true时使用的主页面cover(为空则使用bing随机图片)
28
+ debug: false # 使用debug模式启动
29
+ disableThemeComment: false # 禁用主题评论系统(一般用于关闭评论或让插件接管评论系统)
30
+
31
+ icon:
32
+ favicon: "/favicon.ico"
33
+ apple_touch_icon: "/apple-touch-icon.png"
34
+
35
+ seo:
36
+ bing: "bing-key"
37
+ google: "google-key"
38
+ yandex: "yandex-key"
39
+ baidu: "baidu-key"
40
+
41
+ visitor:
42
+ clarity: false
43
+ baiduAnalytics: false
44
+
45
+ darkmode: false
46
+ auto_dark: # 自动亮/暗模式
47
+ enable: true #是否开启
48
+ start: 20 #开始时间
49
+ end: 7 #结束时间
50
+
51
+ auto_scroll: true
52
+
53
+ loader:
54
+ start: true # 进入页面时显示加载动画
55
+ switch: false # 切换页面时显示加载动画
56
+
57
+ # 显示的动画(烟花)
58
+ fireworks:
59
+ enable: true
60
+ color:
61
+ - "rgba(255,182,185,.9)"
62
+ - "rgba(250,227,217,.9)"
63
+ - "rgba(187,222,214,.9)"
64
+ - "rgba(138,198,209,.9)"
65
+
66
+ font:
67
+ enable: true
68
+ # google字体库加载,如果自定义@font-face请关闭
69
+ loadFromGoogle: true
70
+ # 字体选项:
71
+ # `external`:从google字体库加载字体.
72
+ # `family: 字体家族名,无需引号
73
+ # `size: x.x`. 以`em`为单位. 默认: 1 (16px)
74
+
75
+ # 适用于所有在body标签内的文字.
76
+ global:
77
+ external: true
78
+ family: Mulish
79
+ size:
80
+
81
+ # 大标题字体.
82
+ logo:
83
+ external: true
84
+ family: Fredericka the Great
85
+ size: 3.5
86
+
87
+ # 页面标题字体.
88
+ title:
89
+ external: true
90
+ family: Noto Serif JP
91
+ size: 2.5
92
+
93
+ # 标题字体.
94
+ headings:
95
+ external: true
96
+ family: Noto Serif SC
97
+ size:
98
+
99
+ # 文章字体.
100
+ posts:
101
+ external: false
102
+ family:
103
+
104
+ # 代码块的字体
105
+ codes:
106
+ external: true
107
+ family: Inconsolata
108
+
109
+ # project of https://www.iconfont.cn/
110
+ # //at.alicdn.com/t/font_1832207_c8i9n1ulxlt.css => 1832207_c8i9n1ulxlt
111
+ iconfont: "1832207_igi8uaupcus"
112
+
113
+ menu:
114
+ home: / || home
115
+ about:
116
+ default: /about/ || user
117
+ aboutsite: /about/ || star
118
+ updata: /updata/ || cloud
119
+ admiration: /admiration/ || coffee
120
+ privacy: /privacy/ || list-alt
121
+ posts:
122
+ default: / || feather
123
+ archives: /archives/ || list-alt
124
+ categories: /categories/ || th
125
+ tags: /tags/ || tags
126
+ statistics: /statistics/ || clock
127
+ friends: /friends/ || heart
128
+
129
+ # https://twikoo.js.org
130
+ twikoo:
131
+ enable: false
132
+ link: "https://cdn.staticfile.org/twikoo/1.6.6/twikoo.nocss.min.js"
133
+ mode: vercel # vercel或tencent
134
+ envId: "https://114514.foo.bar" # twikoo环境ID,vercel填地址
135
+ region:
136
+
137
+ # https://waline.js.org/
138
+ waline:
139
+ enable: false
140
+ serverURL: ''
141
+ lang: "zh-CN"
142
+ locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80
143
+ emoji: # 表情包
144
+ - https://unpkg.com/@waline/emojis@1.0.1/weibo
145
+ - https://unpkg.com/@waline/emojis@1.0.1/alus
146
+ - https://unpkg.com/@waline/emojis@1.0.1/bilibili
147
+ - https://unpkg.com/@waline/emojis@1.0.1/qq
148
+ - https://unpkg.com/@waline/emojis@1.0.1/tieba
149
+ - https://unpkg.com/@waline/emojis@1.0.1/tw-emoji
150
+ meta: # 可以填写的内容
151
+ - nick
152
+ - mail
153
+ - link
154
+ requiredMeta: # 必须填写的内容
155
+ - nick
156
+ - mail
157
+ wordLimit: 0 # 字数限制,0为不限制
158
+ pageSize: 10 # 每页评论条数
159
+
160
+ # https://github.com/gitalk/gitalk/blob/master/readme-cn.md
161
+ gitalk:
162
+ clientID:
163
+ clientSecret:
164
+ repo:
165
+ owner:
166
+ admin:
167
+ proxy: # 选填
168
+
169
+ # https://giscus.app/zh-CN
170
+ giscus:
171
+ repo:
172
+ repoId:
173
+ category:
174
+ categoryId:
175
+ mapping:
176
+ strict:
177
+ reactionsEnabled:
178
+ emitMetadata:
179
+ inputPosition:
180
+ commentTheme:
181
+ lang:
182
+
183
+
184
+ # Social Links
185
+ # Usage: `Key: permalink || icon || color`
186
+ # Key is the link label showing to end users.
187
+ # Value before `||` delimiter is the target permalink,
188
+ # secend value is the name of Font icon.
189
+ social:
190
+ github: https://github.com/name || github || "#191717"
191
+ #google: https://plus.google.com/yourname || google
192
+ #twitter: https://twitter.com/yourname || twitter || "#00aff0"
193
+ #zhihu: https://www.zhihu.com/people/yourname || zhihu || "#1e88e5"
194
+ #music: https://music.163.com/#/user/home?id=yourid || cloud-music || "#e60026"
195
+ #weibo: https://weibo.com/yourname || weibo || "#ea716e"
196
+ #about: https://about.me/yourname || address-card || "#3b5998"
197
+ # email: mailto:foo@xxx.com || envelope || "#55acd5"
198
+ #facebook: https://www.facebook.com/yourname || facebook
199
+ # stackoverflow: https://stackoverflow.com/ || stack-overflow
200
+ #youtube: https://youtube.com/yourname || youtube
201
+ #instagram: https://instagram.com/yourname || instagram
202
+ #skype: skype:yourname?call|chat || skype
203
+ #douban: https://www.douban.com/people/yourname/ || douban
204
+
205
+ sidebar:
206
+ # Sidebar Position.
207
+ position: left
208
+ # position: right
209
+ # Replace the default avatar image and set the url here.
210
+ avatar: avatar.jpg
211
+
212
+ widgets:
213
+ # if true, will show random posts
214
+ random_posts: true
215
+ # if true, will show recent comments
216
+ recent_comments: true
217
+
218
+ footer:
219
+ # Specify the date when the site was setup. If not defined, current year will be used.
220
+ since: 2021
221
+ icon:
222
+ name: sakura rotate
223
+ # Change the color of icon, using Hex Code.
224
+ color: "#ffc0cb"
225
+ # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
226
+ count: true
227
+ powered: true
228
+ lantern:
229
+ enable: true #是否开启
230
+ word1: 中 #第一个字
231
+ word2: 秋 #第二个字
232
+ icp: # ICP备案
233
+ enable: false
234
+ icon: "beian.webp" #网安备案图片
235
+ icpnumber: "xxx" # ICP备案号
236
+ beian: "xxx" # 网安备案号
237
+ recordcode: "xxx" # 网安备案链接中的recordcode参数
238
+
239
+ post:
240
+ count: true
241
+
242
+ # 文章是否失效
243
+ outime:
244
+ enable: true
245
+ days: 90 # 超过 90 天文章失效
246
+
247
+ reward:
248
+ # If true, reward will be displayed in every article by default.
249
+ enable: true
250
+ account:
251
+ wechatpay: /wechatpay.png
252
+ alipay: /alipay.png
253
+ # paypal: /paypal.png
254
+
255
+ # TagCloud settings for tags page.
256
+ tagcloud:
257
+ # All values below are same as default, change them by yourself.
258
+ min: 16 # Minimun font size in px
259
+ max: 22 # Maxium font size in px
260
+ start: "#72cecf" # Start color (hex, rgba, hsla or color keywords)
261
+ end: "#ffbac3" # End color (hex, rgba, hsla or color keywords)
262
+ amount: 200 # Amount of tags, change it if you have more than 200 tags
263
+
264
+ # ---------------------------------------------------------------
265
+ # Third Party Plugins & Services Settings
266
+ # ---------------------------------------------------------------
267
+
268
+ # Creative Commons 4.0 International License.
269
+ # See: https://creativecommons.org/share-your-work/licensing-types-examples
270
+ # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
271
+ # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
272
+ # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
273
+ creative_commons:
274
+ license: by-nc-sa
275
+ language: deed.zh
276
+
277
+ # bgm
278
+ audio:
279
+ - title: 列表1
280
+ list:
281
+ - https://music.163.com/#/playlist?id=2943811283
282
+ - https://music.163.com/#/playlist?id=2297706586
283
+ - title: 列表2
284
+ list:
285
+ - https://music.163.com/#/playlist?id=2031842656
286
+
287
+ # random image api
288
+ image_server: # "https://acg.xydwz.cn/api/api.php"
289
+
290
+ # Algolia Search
291
+ # For more information: https://www.algolia.com
292
+ search:
293
+ hits:
294
+ per_page: 10
295
+
296
+ # Dependencies: https://github.com/amehime/hexo-renderer-multi-markdown-it
297
+ pangu: false
298
+
299
+ # Quicklink Support
300
+ # For more information: https://github.com/GoogleChromeLabs/quicklink
301
+ quicklink:
302
+ # Custom a time in milliseconds by which the browser must execute prefetching.
303
+ timeout: 3000
304
+ # Default (true) will attempt to use the fetch() API if supported (rather than link[rel=prefetch]).
305
+ priority: true
306
+
307
+ # For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores.
308
+ # See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns
309
+ ignores:
310
+
311
+ #! ---------------------------------------------------------------
312
+ #! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
313
+ #! UNLESS YOU KNOW WHAT YOU ARE DOING
314
+ #! Script dependencies will be combined with jsDelivr (cdn.jsdelivr.net)
315
+ #! ---------------------------------------------------------------
316
+ advVendors:
317
+ enable: true
318
+ github: "https://cdn.jsdelivr.net/gh/"
319
+ combine: "https://cdn.jsdelivr.net/"
320
+ npm: "https://unpkg.com/"
321
+ js:
322
+ pace:
323
+ src: bytedance:pace/1.0.2/pace.min.js
324
+ pjax:
325
+ src: baomitu:pjax/0.2.8/pjax.min.js
326
+ fetch:
327
+ src: npm:whatwg-fetch@3.4.0/dist/fetch.umd.js
328
+ anime:
329
+ src: bytedance:animejs/3.2.0/anime.min.js
330
+ algolia:
331
+ src: bytedance:algoliasearch/4.12.1/algoliasearch-lite.umd.min.js
332
+ instantsearch:
333
+ src: bytedance:instantsearch.js/4.39.0/instantsearch.production.min.js
334
+ lazyload:
335
+ src: bytedance:lozad.js/1.16.0/lozad.min.js
336
+ quicklink:
337
+ src: bytedance:quicklink/2.2.0/quicklink.umd.min.js
338
+ fancybox:
339
+ src: bytedance:??jquery/3.5.1/jquery.min.js,fancybox/3.5.7/jquery.fancybox.min.js,justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js
340
+ async: true
341
+ copy_tex:
342
+ src: bytedance:KaTeX/0.12.0/contrib/copy-tex.min.js
343
+ async: true
344
+ chart:
345
+ src: npm:frappe-charts@1.5.0/dist/frappe-charts.min.iife.js
346
+ css:
347
+ katex:
348
+ src: npm:katex@0.12.0/dist/katex.min.css
349
+ comment:
350
+ src: css/comment.css
351
+ fancybox:
352
+ src: combine:npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css,npm/justifiedGallery@3.8.1/dist/css/justifiedGallery.min.css
353
+ vendorsList:
354
+ js:
355
+ - pace
356
+ - pjax
357
+ - fetch
358
+ - anime
359
+ - algolia
360
+ - instantsearch
361
+ - lazyload
362
+ - quicklink
363
+ - fancybox
364
+ - copy_tex
365
+ - chart
366
+
367
+ vendors:
368
+ css:
369
+ # katex: npm/katex@0.12.0/dist/katex.min.css
370
+ katex: npm/katex@0.12.0/dist/katex.min.css # ok
371
+ comment: css/comment.css
372
+ fancybox: combine/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css,npm/justifiedGallery@3.8.1/dist/css/justifiedGallery.min.css # notok
373
+ # fancybox: npm/fancybox/justifiedGallery.min.css
374
+
375
+ js:
376
+ pace: npm/pace-js@1.0.2/pace.min.js # ok
377
+ pjax: npm/pjax@0.2.8/pjax.min.js # ok
378
+ fetch: npm/whatwg-fetch@3.4.0/dist/fetch.umd.min.js # ok
379
+ anime: npm/animejs@3.2.0/lib/anime.min.js # ok
380
+ algolia: npm/algoliasearch@4/dist/algoliasearch-lite.umd.js # ok
381
+ instantsearch: npm/instantsearch.js@4/dist/instantsearch.production.min.js # ok
382
+ lazyload: npm/lozad@1/dist/lozad.min.js # ok
383
+ quicklink: npm/quicklink@2/dist/quicklink.umd.js # ok
384
+ fancybox: combine/npm/jquery@3.5.1/dist/jquery.min.js,npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js,npm/justifiedGallery@3.8.1/dist/js/jquery.justifiedGallery.min.js # notok
385
+ # fancybox: npm/fancybox/jquery.justifiedGallery.min.js
386
+ valine: gh/amehime/MiniValine@4.2.2-beta10/dist/MiniValine.min.js
387
+ copy_tex: npm/katex@0.12.0/dist/contrib/copy-tex.min.js # ok
388
+ chart: npm/frappe-charts@1.5.0/dist/frappe-charts.min.iife.min.js # ok
389
+
390
+ qweather:
391
+ enable: false
392
+ key: "114514"