hexo-theme-fluid 1.8.13 → 1.9.1

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 (155) hide show
  1. package/LICENSE +674 -21
  2. package/README.md +17 -21
  3. package/_config.yml +164 -79
  4. package/languages/de.yml +58 -33
  5. package/languages/en.yml +58 -33
  6. package/languages/eo.yml +58 -33
  7. package/languages/es.yml +69 -0
  8. package/languages/ja.yml +58 -33
  9. package/languages/zh-CN.yml +58 -33
  10. package/languages/zh-HK.yml +69 -0
  11. package/languages/zh-TW.yml +58 -33
  12. package/layout/.DS_Store +0 -0
  13. package/layout/404.ejs +3 -1
  14. package/layout/{_partial → _partials}/archive-list.ejs +4 -4
  15. package/layout/_partials/category-chains.ejs +19 -0
  16. package/layout/_partials/category-list.ejs +62 -0
  17. package/layout/{_partial → _partials}/comments/changyan.ejs +0 -0
  18. package/layout/{_partial → _partials}/comments/cusdis.ejs +0 -0
  19. package/layout/{_partial → _partials}/comments/disqus.ejs +0 -0
  20. package/layout/_partials/comments/giscus.ejs +36 -0
  21. package/layout/{_partial → _partials}/comments/gitalk.ejs +0 -0
  22. package/layout/{_partial → _partials}/comments/livere.ejs +0 -0
  23. package/layout/{_partial → _partials}/comments/remark42.ejs +0 -0
  24. package/layout/{_partial → _partials}/comments/twikoo.ejs +3 -1
  25. package/layout/{_partial → _partials}/comments/utterances.ejs +1 -1
  26. package/layout/{_partial → _partials}/comments/valine.ejs +3 -1
  27. package/layout/{_partial → _partials}/comments/waline.ejs +6 -3
  28. package/layout/_partials/comments.ejs +5 -0
  29. package/layout/_partials/css.ejs +26 -0
  30. package/layout/_partials/footer/beian.ejs +33 -0
  31. package/layout/_partials/footer/statistics.ejs +39 -0
  32. package/layout/_partials/footer.ejs +18 -0
  33. package/layout/{_partial → _partials}/head.ejs +7 -1
  34. package/layout/_partials/header/banner.ejs +33 -0
  35. package/layout/{_partial/nav.ejs → _partials/header/navigation.ejs} +3 -2
  36. package/layout/_partials/header.ejs +8 -0
  37. package/layout/{_partial → _partials}/paginator.ejs +0 -0
  38. package/layout/_partials/plugins/analytics.ejs +87 -0
  39. package/layout/_partials/plugins/anchorjs.ejs +24 -0
  40. package/layout/_partials/plugins/code-widget.ejs +71 -0
  41. package/layout/_partials/plugins/fancybox.ejs +11 -0
  42. package/layout/_partials/plugins/highlight.ejs +13 -0
  43. package/layout/_partials/plugins/math.ejs +46 -0
  44. package/layout/_partials/plugins/mermaid.ejs +5 -0
  45. package/layout/{_partial → _partials}/plugins/nprogress.ejs +0 -0
  46. package/layout/_partials/plugins/typed.ejs +48 -0
  47. package/layout/_partials/post/category-bar.ejs +18 -0
  48. package/layout/_partials/post/copyright.ejs +56 -0
  49. package/layout/_partials/post/meta-bottom.ejs +16 -0
  50. package/layout/_partials/post/meta-top.ejs +63 -0
  51. package/layout/_partials/post/sidebar-left.ejs +10 -0
  52. package/layout/_partials/post/sidebar-right.ejs +10 -0
  53. package/layout/_partials/post/toc.ejs +34 -0
  54. package/layout/_partials/scripts.ejs +32 -0
  55. package/layout/{_partial → _partials}/search.ejs +2 -3
  56. package/layout/about.ejs +5 -3
  57. package/layout/archive.ejs +1 -1
  58. package/layout/categories.ejs +10 -59
  59. package/layout/category.ejs +1 -1
  60. package/layout/index.ejs +13 -15
  61. package/layout/layout.ejs +19 -39
  62. package/layout/links.ejs +2 -8
  63. package/layout/page.ejs +28 -12
  64. package/layout/post.ejs +65 -59
  65. package/layout/tag.ejs +1 -1
  66. package/package.json +11 -3
  67. package/scripts/.DS_Store +0 -0
  68. package/scripts/events/.DS_Store +0 -0
  69. package/scripts/events/index.js +1 -0
  70. package/scripts/events/lib/compatible-configs.js +7 -8
  71. package/scripts/events/lib/footnote.js +1 -1
  72. package/scripts/events/lib/hello.js +6 -2
  73. package/scripts/events/lib/highlight.js +93 -24
  74. package/scripts/events/lib/injects.js +118 -0
  75. package/scripts/events/lib/merge-configs.js +37 -7
  76. package/scripts/filters/default-injects.js +27 -0
  77. package/scripts/filters/post-filter.js +7 -0
  78. package/scripts/helpers/date.js +25 -0
  79. package/scripts/helpers/engine.js +9 -0
  80. package/scripts/helpers/export-config.js +8 -0
  81. package/scripts/helpers/import.js +24 -0
  82. package/scripts/helpers/injects.js +7 -0
  83. package/scripts/helpers/scope.js +44 -0
  84. package/scripts/helpers/utils.js +17 -2
  85. package/scripts/tags/checkbox.js +4 -2
  86. package/scripts/utils/.DS_Store +0 -0
  87. package/scripts/utils/object.js +5 -0
  88. package/scripts/utils/resolve.js +15 -0
  89. package/source/.DS_Store +0 -0
  90. package/source/css/_pages/_archive/archive.styl +28 -0
  91. package/source/css/_pages/_base/_widget/anchorjs.styl +8 -0
  92. package/source/css/_pages/_base/_widget/banner.styl +2 -11
  93. package/source/css/_pages/_base/_widget/board.styl +1 -4
  94. package/source/css/_pages/_base/_widget/code-widget.styl +36 -0
  95. package/source/css/_pages/_base/_widget/copyright.styl +90 -0
  96. package/source/css/_pages/_base/_widget/footer.styl +4 -1
  97. package/source/css/_pages/_base/_widget/header.styl +161 -2
  98. package/source/css/_pages/_base/_widget/modal.styl +100 -0
  99. package/source/css/_pages/_base/_widget/ngrogress.styl +12 -0
  100. package/source/css/_pages/_base/_widget/noscript.styl +12 -0
  101. package/source/css/_pages/_base/_widget/pagination.styl +23 -0
  102. package/source/css/_pages/_base/_widget/scroll-btn.styl +2 -15
  103. package/source/css/_pages/_base/_widget/toc.styl +75 -0
  104. package/source/css/_pages/_base/base.styl +23 -3
  105. package/source/css/_pages/_base/color-schema.styl +30 -58
  106. package/source/css/_pages/_base/inline.styl +2 -2
  107. package/source/css/_pages/_category/category-bar.styl +59 -0
  108. package/source/css/_pages/_category/category-chain.styl +6 -0
  109. package/source/css/_pages/_category/{categories.styl → category-list.styl} +17 -11
  110. package/source/css/_pages/_index/index.styl +7 -5
  111. package/source/css/_pages/_links/links.styl +2 -1
  112. package/source/css/_pages/_post/comment.styl +27 -0
  113. package/source/css/_pages/_post/highlight.styl +65 -0
  114. package/source/css/_pages/_post/markdown.styl +91 -0
  115. package/source/css/_pages/_post/{post.styl → post-page.styl} +44 -75
  116. package/source/css/_pages/_post/{tag_plugin.styl → post-tag.styl} +29 -27
  117. package/source/css/_variables/base.styl +30 -9
  118. package/source/css/highlight-dark.styl +6 -0
  119. package/source/css/highlight.styl +6 -0
  120. package/source/css/main.styl +7 -0
  121. package/source/img/.DS_Store +0 -0
  122. package/source/img/default.png +0 -0
  123. package/source/img/{favicon.png → fluid.png} +0 -0
  124. package/source/js/boot.js +1 -9
  125. package/source/js/color-schema.js +52 -7
  126. package/source/js/events.js +15 -15
  127. package/source/js/leancloud.js +9 -2
  128. package/source/js/local-search.js +2 -2
  129. package/source/js/plugins.js +26 -94
  130. package/source/js/utils.js +28 -12
  131. package/.editorconfig +0 -13
  132. package/.eslintrc +0 -224
  133. package/.gitattributes +0 -1
  134. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -28
  135. package/.github/ISSUE_TEMPLATE/bug_report_zh.md +0 -33
  136. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  137. package/.github/ISSUE_TEMPLATE/feature_request_zh.md +0 -20
  138. package/.github/ISSUE_TEMPLATE/question.md +0 -11
  139. package/.github/ISSUE_TEMPLATE/question_zh.md +0 -14
  140. package/.github/workflows/limit.yaml +0 -18
  141. package/README_en.md +0 -125
  142. package/layout/_partial/beian.ejs +0 -36
  143. package/layout/_partial/css.ejs +0 -47
  144. package/layout/_partial/footer.ejs +0 -11
  145. package/layout/_partial/plugins/analytics.ejs +0 -66
  146. package/layout/_partial/plugins/math.ejs +0 -69
  147. package/layout/_partial/plugins/mermaid.ejs +0 -24
  148. package/layout/_partial/plugins/typed.ejs +0 -41
  149. package/layout/_partial/post-meta.ejs +0 -51
  150. package/layout/_partial/scripts.ejs +0 -72
  151. package/layout/_partial/statistics.ejs +0 -43
  152. package/layout/_partial/toc.ejs +0 -4
  153. package/source/css/_pages/_base/_widget/copy-btn.styl +0 -42
  154. package/source/css/_pages/_base/rewrite.styl +0 -556
  155. package/source/css/_pages/_category/category.styl +0 -0
package/README.md CHANGED
@@ -8,8 +8,8 @@
8
8
  ![ScreenShot](https://cdn.jsdelivr.net/gh/fluid-dev/static@master/hexo-theme-fluid/screenshots/index.png)
9
9
 
10
10
  <p align="center">
11
- <a title="Hexo Version" target="_blank" href="https://hexo.io/zh-cn/"><img alt="Hexo Version" src="https://img.shields.io/badge/Hexo-%3E%3D%203.0-orange?style=flat"></a>
12
- <a title="Node Version" target="_blank" href="https://nodejs.org/zh-cn/"><img alt="Node Version" src="https://img.shields.io/badge/Node-%3E%3D%208.10.0-yellowgreen?style=flat"></a>
11
+ <a title="Hexo Version" target="_blank" href="https://hexo.io/zh-cn/"><img alt="Hexo Version" src="https://img.shields.io/badge/Hexo-%3E%3D%205.0-orange?style=flat"></a>
12
+ <a title="Node Version" target="_blank" href="https://nodejs.org/zh-cn/"><img alt="Node Version" src="https://img.shields.io/badge/Node-%3E%3D%2010.13.0-yellowgreen?style=flat"></a>
13
13
  <a title="License" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/github/license/fluid-dev/hexo-theme-fluid.svg?style=flat"></a>
14
14
  <br>
15
15
  <a title="GitHub Release" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/fluid-dev/hexo-theme-fluid?style=flat"></a>
@@ -82,7 +82,6 @@ hexo new page about
82
82
  ```yaml
83
83
  ---
84
84
  title: about
85
- date: 2020-02-23 19:20:33
86
85
  layout: about
87
86
  ---
88
87
 
@@ -95,20 +94,25 @@ layout: about
95
94
 
96
95
  ## 功能特性
97
96
 
98
- - [x] 图片懒加载
99
- - [x] 自定义代码高亮方案
100
- - [x] 内置多语言
101
- - [x] 支持多款评论插件
102
- - [x] 支持使用[数据文件](https://hexo.io/zh-cn/docs/data-files)存放配置
103
- - [x] 自定义静态资源 CDN
104
97
  - [x] 无比详实的[用户文档](https://hexo.fluid-dev.com/docs/)
105
- - [x] 内置文章搜索
106
- - [x] 页脚备案信息
107
- - [x] 网页访问统计
98
+ - [x] 页面组件懒加载
99
+ - [x] 多种代码高亮方案
100
+ - [x] 多语言配置
101
+ - [x] 内置多款评论插件
102
+ - [x] 内置网页访问统计
103
+ - [x] 内置文章本地搜索
104
+ - [x] 支持暗色模式
108
105
  - [x] 支持脚注语法
109
106
  - [x] 支持 LaTeX 数学公式
110
107
  - [x] 支持 mermaid 流程图
111
- - [x] 暗色模式
108
+
109
+ ## 支持我们
110
+
111
+ 你可以扫描下方微信赞赏码支持我们的开源创作,让我们可以补贴服务器及域名等日常开销。
112
+
113
+ <img src="https://github.com/fluid-dev/static/blob/master/hexo-theme-fluid/sponsor.png?s=200&v=4" width="200" alt="微信赞赏码">
114
+
115
+ 同时我们正在**寻求商业赞助**,如果贵司想在本页显著位置展示广告位(每月 6K+ Views 定向流量曝光),或者有其他赞助形式,可将联系方式发送邮件至 zkqiang#126.com (#替换为@)。
112
116
 
113
117
  ## 贡献者
114
118
 
@@ -120,14 +124,6 @@ layout: about
120
124
 
121
125
  如你也想贡献代码,可参照[贡献指南](https://hexo.fluid-dev.com/docs/contribute/)
122
126
 
123
- ## 支持
124
-
125
- 你可以扫描下方微信赞赏码支持我们的开源创作,资金将用于服务器及域名开销以及今后的公共接口服务。
126
-
127
- <img src="https://github.com/fluid-dev/static/blob/master/hexo-theme-fluid/sponsor.png?s=200&v=4" width="200" alt="微信赞赏码">
128
-
129
- 同时我们正在寻找商业赞助商,如果贵司想在本页展示广告位(每月 6K+ Views 定向流量曝光),或者有其他赞助形式,可将联系方式发送邮件至 zkqiang#126.com (#替换为@)。
130
-
131
127
  ## 鸣谢
132
128
 
133
129
  <a title="鸣谢 JetBrains 免费授权开发工具" href="https://www.jetbrains.com/?from=hexo-theme-fluid" target="_blank">
package/_config.yml CHANGED
@@ -18,11 +18,11 @@
18
18
 
19
19
  # 用于浏览器标签的图标
20
20
  # Icon for browser tab
21
- favicon: /img/favicon.png
21
+ favicon: /img/fluid.png
22
22
 
23
23
  # 用于苹果设备的图标
24
24
  # Icon for Apple touch
25
- apple_touch_icon: /img/favicon.png
25
+ apple_touch_icon: /img/fluid.png
26
26
 
27
27
  # 浏览器标签页中的标题分隔符,效果: 文章名 - 站点名
28
28
  # Title separator in browser tab, eg: article - site
@@ -39,6 +39,12 @@ code:
39
39
  # Enable copy code button
40
40
  copy_btn: true
41
41
 
42
+ # 代码语言
43
+ # Code language
44
+ language:
45
+ enable: true
46
+ default: "TEXT"
47
+
42
48
  # 代码高亮
43
49
  # Code highlight
44
50
  highlight:
@@ -57,19 +63,17 @@ code:
57
63
  # 在链接中挑选 style 填入
58
64
  # Select a style in the link
59
65
  # See: https://highlightjs.org/static/demo/
60
- style: "Github Gist"
61
-
62
- # 是否根据 style 改变代码背景色(如果 style 是深色背景别忘了开启此项)
63
- # If true, the code background will change color based on the style (If style has a dark background, don't forget to true)
64
- bg_color: false
66
+ style: "github gist"
67
+ style_dark: "dark"
65
68
 
66
69
  prismjs:
67
70
  # 在下方链接页面右侧的圆形按钮挑选 style 填入,也可以直接填入 css 链接
68
71
  # Select the style button on the right side of the link page, you can also set the CSS link
69
72
  # See: https://prismjs.com/
70
73
  style: "default"
74
+ style_dark: "tomorrow night"
71
75
 
72
- # 设为 true 高亮将本地静态生成(并只支持部分 prismjs 插件),设为 false 高亮将在浏览器通过 js 生成
76
+ # 设为 true 高亮将本地静态生成(但只支持部分 prismjs 插件),设为 false 高亮将在浏览器通过 js 生成
73
77
  # If true, it will be generated locally (but some prismjs plugins are not supported). If false, it will be generated via JS in the browser
74
78
  preprocess: true
75
79
 
@@ -93,15 +97,21 @@ fun_features:
93
97
  # If true, loop animation
94
98
  loop: false
95
99
 
100
+ # 在指定页面开启,不填则在所有页面开启
101
+ # Enable in specified page, all pages by default
102
+ # Options: home | post | tag | category | about | links | page | 404
103
+ scope: []
104
+
96
105
  # 为文章内容中的标题添加锚图标
97
106
  # Add an anchor icon to the title on the post page
98
107
  anchorjs:
99
108
  enable: true
100
109
  element: h1,h2,h3,h4,h5,h6
101
- placement: right
110
+ # Options: left | right
111
+ placement: left
102
112
  # Options: hover | always | touch
103
113
  visible: hover
104
- # Option:§ | # | ❡
114
+ # Options: § | # | ❡
105
115
  icon: ""
106
116
 
107
117
  # 加载进度条
@@ -143,6 +153,11 @@ color:
143
153
  navbar_text_color: "#fff"
144
154
  navbar_text_color_dark: "#d0d0d0"
145
155
 
156
+ # 副标题字体色
157
+ # Color of navigation bar text
158
+ subtitle_color: "#fff"
159
+ subtitle_color_dark: "#d0d0d0"
160
+
146
161
  # 全局字体色
147
162
  # Color of global text
148
163
  text_color: "#3c4858"
@@ -153,6 +168,11 @@ color:
153
168
  sec_text_color: "#718096"
154
169
  sec_text_color_dark: "#a7a9ad"
155
170
 
171
+ # 主面板背景色
172
+ # Color of main board
173
+ board_color: "#fff"
174
+ board_color_dark: "#252d38"
175
+
156
176
  # 文章正文字体色
157
177
  # Color of post text
158
178
  post_text_color: "#2c3e50"
@@ -178,10 +198,28 @@ color:
178
198
  link_hover_bg_color: "#f8f9fa"
179
199
  link_hover_bg_color_dark: "#364151"
180
200
 
181
- # 主面板背景色
182
- # Color of main board
183
- board_color: "#fff"
184
- board_color_dark: "#252d38"
201
+ # 分隔线和表格边线的颜色
202
+ # Color of horizontal rule and table border
203
+ line_color: "#eaecef"
204
+ line_color_dark: "#435266"
205
+
206
+ # 滚动条颜色
207
+ # Color of scrollbar
208
+ scrollbar_color: "#c4c6c9"
209
+ scrollbar_color_dark: "#687582"
210
+ # 滚动条悬浮颜色
211
+ # Color of scrollbar when hovering
212
+ scrollbar_hover_color: "#a6a6a6"
213
+ scrollbar_hover_color_dark: "#9da8b3"
214
+
215
+ # 按钮背景色
216
+ # Color of button
217
+ button_bg_color: "transparent"
218
+ button_bg_color_dark: "transparent"
219
+ # 按钮悬浮背景色
220
+ # Color of button when hovering
221
+ button_hover_bg_color: "#f2f3f5"
222
+ button_hover_bg_color_dark: "#46647e"
185
223
 
186
224
  # 主题字体配置
187
225
  # Font
@@ -199,19 +237,16 @@ custom_js:
199
237
  # The usage is the same as custom_js
200
238
  custom_css:
201
239
 
202
- # 自定义 <head> 节点中的 HTML 内容
203
- # Customize <head> HTML content
204
- custom_head: ''
205
-
206
- # 自定义底部 HTML 内容(位于 footer 上方),注意不要和 `post: custom` 配置冲突
207
- # Customize the HTML content at the bottom (located above the footer), be careful not to conflict with `post: custom`
208
- custom_html: ''
209
-
210
240
  # 网页访问统计
211
241
  # Analysis of website visitors
212
242
  web_analytics: # 网页访问统计
213
243
  enable: false
214
244
 
245
+ # 遵循访客浏览器"请勿追踪"的设置,如果开启则不统计其访问
246
+ # Follow the "Do Not Track" setting of the visitor's browser
247
+ # See: https://www.w3.org/TR/tracking-dnt/
248
+ follow_dnt: true
249
+
215
250
  # 百度统计的 Key,值需要获取下方链接中 `hm.js?` 后边的字符串
216
251
  # Baidu analytics, get the string behind `hm.js?`
217
252
  # See: https://tongji.baidu.com/sc-web/10000033910/home/site/getjs?siteId=13751376
@@ -404,11 +439,6 @@ footer:
404
439
  # Options: busuanzi | leancloud
405
440
  source: "busuanzi"
406
441
 
407
- # 页面显示的文本,{}是数字的占位符(必须包含),下同
408
- # Displayed text, {} is a placeholder for numbers (must be included), the same below
409
- pv_format: "总访问量 {} 次"
410
- uv_format: "总访客数 {} 人"
411
-
412
442
  # 国内大陆服务器的备案信息
413
443
  # For Chinese mainland website policy, other areas keep disable
414
444
  beian:
@@ -531,15 +561,11 @@ post:
531
561
  # Word count
532
562
  wordcount:
533
563
  enable: true
534
- # 显示的文本,{}是数字的占位符(必须包含),下同
535
- # Displayed text, {} is a placeholder for numbers (must be included), the same below
536
- format: "{} 字"
537
564
 
538
565
  # 估计阅读全文需要的时长
539
566
  # Estimated reading time
540
567
  min2read:
541
568
  enable: true
542
- format: "{} 分钟"
543
569
  # 每个字词的长度,建议:中文≈2,英文≈5,中英混合可自行调节
544
570
  # Average word length (chars count in word), ZH ≈ 2, EN ≈ 5
545
571
  awl: 2
@@ -555,28 +581,63 @@ post:
555
581
  # Data Source
556
582
  # Options: busuanzi | leancloud
557
583
  source: "busuanzi"
558
- format: "{} 次"
559
584
 
560
585
  # 在文章开头显示文章更新时间,该时间默认是 md 文件更新时间,可通过 front-matter 中 `updated` 手动指定(和 date 一样格式)
561
586
  # Update date is displayed at the beginning of the post. The default date is the update date of the md file, which can be manually specified by `updated` in front-matter (same format as date)
562
587
  updated:
563
588
  enable: false
564
589
 
565
- # 描述文字
566
- # Descriptive text before date
567
- content: 本文最后更新于:
590
+ # 格式参照 ISO-8601 日期格式化
591
+ # ISO-8601 date format
592
+ # See: http://momentjs.cn/docs/#/parsing/string-format/
593
+ date_format: "LL a"
568
594
 
569
595
  # 是否使用相对时间表示,比如:"3 天前"
570
596
  # If true, it will be a relative time, such as: "3 days ago"
571
597
  relative: false
572
598
 
573
- # 文章右侧目录
574
- # Table of contents (TOC)
599
+ # 提示标签类型
600
+ # Note class
601
+ # Options: default | primary | info | success | warning | danger | light
602
+ note_class: info
603
+
604
+ # 侧边栏展示当前分类下的文章
605
+ # Sidebar of category
606
+ category_bar:
607
+ enable: true
608
+
609
+ # 开启后,只有在文章 Front-matter 里指定 `category_bar: true` 才会展示分类,也可以通过 `category_bar: ["分类A"]` 来指定分类
610
+ # If true, only set `category_bar: true` in Front-matter will enable sidebar of category, also set `category_bar: ["CategoryA"]` to specify categories
611
+ specific: true
612
+
613
+ # 置于板块的左侧或右侧
614
+ # place in the board
615
+ # Options: left | right
616
+ placement: left
617
+
618
+ # 文章的排序字段,前面带减号是倒序,不带减号是正序
619
+ # Sort field for posts, with a minus sign is reverse order
620
+ # Options: date | title | or other field of front-matter
621
+ post_order_by: "title"
622
+
623
+ # 单个分类中折叠展示文章数的最大值,超过限制会显示 More,0 则不限制
624
+ # The maximum number of posts in a single category. If the limit is exceeded, it will be displayed More. If 0 no limit
625
+ post_limit: 0
626
+
627
+ # 侧边栏展示文章目录
628
+ # Table of contents (TOC) in the sidebar
575
629
  toc:
576
630
  enable: true
631
+
632
+ # 置于板块的左侧或右侧
633
+ # place in the board
634
+ # Options: left | right
635
+ placement: right
636
+
577
637
  # 目录会选择这些节点作为标题
578
638
  # TOC will select these nodes as headings
579
639
  headingSelector: "h1,h2,h3,h4,h5,h6"
640
+
580
641
  # 层级的折叠深度,0 是全部折叠,大于 0 后如果存在下级标题则默认展开
581
642
  # Collapse depth. If 0, all headings collapsed. If greater than 0, it will be expanded by default if there are sub headings
582
643
  collapseDepth: 0
@@ -585,18 +646,36 @@ post:
585
646
  # Copyright, will be displayed at the end of each post
586
647
  copyright:
587
648
  enable: true
588
- content: '本博客所有文章除特别声明外,均采用 <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener">CC BY-SA 4.0 协议</a> ,转载请注明出处!'
649
+
650
+ # CreativeCommons license
651
+ # Options: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND
652
+ license: 'BY'
653
+
654
+ # 显示作者
655
+ author:
656
+ enable: true
657
+
658
+ # 显示发布日期
659
+ # Show post date
660
+ post_date:
661
+ enable: true
662
+ format: "LL"
663
+
664
+ # 显示更新日期
665
+ # Show update date
666
+ update_date:
667
+ enable: false
668
+ format: "LL"
589
669
 
590
670
  # 文章底部上一篇下一篇功能
591
671
  # Link to previous/next post
592
672
  prev_next:
593
673
  enable: true
594
674
 
595
- # 文章底部自定义区域(位于 footer 上方),支持 HTML,可插入赞赏码、公众号这类内容内容
596
- # Custom content at the bottom of the post page (located above the footer)
597
- custom:
598
- enable: false
599
- content: '<img src="https://octodex.github.com/images/jetpacktocat.png" class="rounded mx-auto d-block mt-5" style="width:150px; height:150px;">'
675
+ # 文章图片标题
676
+ # Image caption
677
+ image_caption:
678
+ enable: true
600
679
 
601
680
  # 文章图片可点击放大
602
681
  # Zoom feature of images
@@ -648,7 +727,7 @@ post:
648
727
  enable: false
649
728
  # 指定的插件,需要同时设置对应插件的必要参数
650
729
  # The specified plugin needs to set the necessary parameters at the same time
651
- # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis
730
+ # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus
652
731
  type: disqus
653
732
 
654
733
 
@@ -670,7 +749,6 @@ utterances:
670
749
  label: utterances
671
750
  theme: github-light
672
751
  theme_dark: github-dark
673
- crossorigin: anonymous
674
752
 
675
753
  # Disqus
676
754
  # 基于第三方的服务,国内用户直接使用容易被墙,建议配合 Disqusjs
@@ -734,18 +812,13 @@ valine:
734
812
  waline:
735
813
  serverURL: ''
736
814
  path: window.location.pathname
737
- placeholder:
738
815
  meta: ['nick', 'mail', 'link']
739
816
  requiredMeta: ['nick']
740
817
  lang: 'zh-CN'
741
818
  emoji: ['https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo']
742
819
  dark: 'html[data-user-color-scheme="dark"]'
743
- avatar: 'retro'
744
- avatarCDN: 'https://seccdn.libravatar.org/avatar/'
745
- avatarForce: false
746
820
  wordLimit: 0
747
821
  pageSize: 10
748
- highlight: true
749
822
 
750
823
  # 畅言 Changyan
751
824
  # 基于第三方的服务
@@ -791,6 +864,23 @@ cusdis:
791
864
  app_id:
792
865
  lang: zh-cn
793
866
 
867
+ # Giscus
868
+ # 基于 GitHub Discussions,类似于 Utterances
869
+ # Based on GitHub Discussions, similar to Utterances
870
+ # See: https://giscus.app/
871
+ giscus:
872
+ repo:
873
+ repo-id:
874
+ category:
875
+ category-id:
876
+ theme-light: light
877
+ theme-dark: dark
878
+ mapping: pathname
879
+ reactions-enabled: 1
880
+ emit-metadata: 0
881
+ input-position: top
882
+ lang: zh-CN
883
+
794
884
  #---------------------------
795
885
  # 归档页
796
886
  # Archive Page
@@ -799,7 +889,6 @@ archive:
799
889
  banner_img: /img/default.png
800
890
  banner_img_height: 60
801
891
  banner_mask_alpha: 0.3
802
- subtitle:
803
892
 
804
893
 
805
894
  #---------------------------
@@ -811,7 +900,6 @@ category:
811
900
  banner_img: /img/default.png
812
901
  banner_img_height: 60
813
902
  banner_mask_alpha: 0.3
814
- subtitle:
815
903
 
816
904
  # 分类的排序字段,前面带减号是倒序,不带减号是正序
817
905
  # Sort field for categories, with a minus sign is reverse order
@@ -841,7 +929,6 @@ tag:
841
929
  banner_img: /img/default.png
842
930
  banner_img_height: 80
843
931
  banner_mask_alpha: 0.3
844
- subtitle:
845
932
  tagcloud:
846
933
  min_font: 15
847
934
  max_font: 30
@@ -859,7 +946,6 @@ about:
859
946
  banner_img: /img/default.png
860
947
  banner_img_height: 60
861
948
  banner_mask_alpha: 0.3
862
- subtitle:
863
949
  avatar: /img/avatar.png
864
950
  name: "Fluid"
865
951
  intro: "An elegant theme for Hexo"
@@ -893,7 +979,9 @@ page404:
893
979
  banner_img: /img/default.png
894
980
  banner_img_height: 85
895
981
  banner_mask_alpha: 0.3
896
- subtitle: "Page not found"
982
+ # 重定向到首页的延迟(毫秒)
983
+ # Delay in redirecting to home page (milliseconds)
984
+ redirect_delay: 5000
897
985
 
898
986
 
899
987
  #---------------------------
@@ -905,7 +993,6 @@ links:
905
993
  banner_img: /img/default.png
906
994
  banner_img_height: 60
907
995
  banner_mask_alpha: 0.3
908
- subtitle:
909
996
  # 友链的成员项
910
997
  # Member item of page
911
998
  items:
@@ -944,13 +1031,13 @@ links:
944
1031
  enable: false
945
1032
  # 指定的插件,需要同时设置对应插件的必要参数
946
1033
  # The specified plugin needs to set the necessary parameters at the same time
947
- # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis
1034
+ # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus
948
1035
  type: disqus
949
1036
 
950
1037
 
951
1038
  #---------------------------
952
1039
  # 以下是配置 JS CSS 等静态资源的 URL 前缀,可以自定义成 CDN 地址,
953
- # 默认的 jsDelivr CDN 可能在部分地区无法访问,如果需要修改,最好使用与默认配置相同的版本,以避免潜在的问题,
1040
+ # 如果需要修改,最好使用与默认配置相同的版本,以避免潜在的问题,
954
1041
  # ** 如果你不知道如何设置,请不要做任何改动 **
955
1042
  #
956
1043
  # Here is the url prefix to configure the static assets. Set CDN addresses you want to customize.
@@ -965,44 +1052,42 @@ static_prefix:
965
1052
  internal_css: /css
966
1053
  internal_img: /img
967
1054
 
968
- anchor: https://cdn.jsdelivr.net/npm/anchor-js@4/
969
-
970
- github_markdown: https://cdn.jsdelivr.net/npm/github-markdown-css@4/
1055
+ anchor: https://lib.baomitu.com/anchor-js/4.3.1/
971
1056
 
972
- jquery: https://cdn.jsdelivr.net/npm/jquery@3/dist/
1057
+ github_markdown: https://lib.baomitu.com/github-markdown-css/4.0.0/
973
1058
 
974
- bootstrap: https://cdn.jsdelivr.net/npm/bootstrap@4/dist/
1059
+ jquery: https://lib.baomitu.com/jquery/3.6.0/
975
1060
 
976
- highlightjs: https://cdn.jsdelivr.net/npm/highlight.js@10/
1061
+ bootstrap: https://lib.baomitu.com/twitter-bootstrap/4.6.1/
977
1062
 
978
- prismjs: https://cdn.jsdelivr.net/npm/prismjs@1/
1063
+ prismjs: https://lib.baomitu.com/prism/1.27.0/
979
1064
 
980
- tocbot: https://cdn.jsdelivr.net/npm/tocbot@4/dist/
1065
+ tocbot: https://lib.baomitu.com/tocbot/4.18.2/
981
1066
 
982
- typed: https://cdn.jsdelivr.net/npm/typed.js@2/lib/
1067
+ typed: https://lib.baomitu.com/typed.js/2.0.12/
983
1068
 
984
- fancybox: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/
1069
+ fancybox: https://lib.baomitu.com/fancybox/3.5.7/
985
1070
 
986
- nprogress: https://cdn.jsdelivr.net/npm/nprogress@0/
1071
+ nprogress: https://lib.baomitu.com/nprogress/0.2.0/
987
1072
 
988
- mathjax: https://cdn.jsdelivr.net/npm/mathjax@3/es5/
1073
+ mathjax: https://lib.baomitu.com/mathjax/3.2.1/
989
1074
 
990
- katex: https://cdn.jsdelivr.net/npm/katex@0/dist/
1075
+ katex: https://lib.baomitu.com/KaTeX/0.15.6/
991
1076
 
992
1077
  busuanzi: https://busuanzi.ibruce.info/busuanzi/2.3/
993
1078
 
994
- clipboard: https://cdn.jsdelivr.net/npm/clipboard@2/dist/
1079
+ clipboard: https://lib.baomitu.com/clipboard.js/2.0.10/
995
1080
 
996
- mermaid: https://cdn.jsdelivr.net/npm/mermaid@8/dist/
1081
+ mermaid: https://lib.baomitu.com/mermaid/8.14.0/
997
1082
 
998
- valine: https://cdn.jsdelivr.net/npm/valine@1/dist/
1083
+ valine: https://lib.baomitu.com/valine/1.4.18/
999
1084
 
1000
- waline: https://cdn.jsdelivr.net/npm/@waline/client@1/dist/
1085
+ waline: https://lib.baomitu.com/waline/2.5.1/
1001
1086
 
1002
- gitalk: https://cdn.jsdelivr.net/npm/gitalk@1/dist/
1087
+ gitalk: https://lib.baomitu.com/gitalk/1.7.2/
1003
1088
 
1004
- disqusjs: https://cdn.jsdelivr.net/npm/disqusjs@1/dist/
1089
+ disqusjs: https://lib.baomitu.com/disqusjs/1.3.0/
1005
1090
 
1006
- twikoo: https://cdn.jsdelivr.net/npm/twikoo@1/dist/
1091
+ twikoo: https://lib.baomitu.com/twikoo/1.5.11/
1007
1092
 
1008
- hint: https://cdn.jsdelivr.net/npm/hint.css@2/
1093
+ hint: https://lib.baomitu.com/hint.css/2.7.0/
package/languages/de.yml CHANGED
@@ -1,44 +1,69 @@
1
- search:
2
- title: Suchen
3
- keyword: Stichwort
4
- status:
5
- success: v
6
- error: x
7
-
8
- postTotal: Insgesamt %d Artikel.
9
-
10
- paginator:
11
- pre: Vorheriger
12
- next: Nächster
13
-
14
- post:
15
- toc: TOC
16
- pre: Vorheriger
17
- next: Nächster
1
+ name: 'Deutsch'
18
2
 
19
3
  home:
20
- title: Startseite
4
+ menu: 'Startseite'
5
+ title: 'Startseite'
21
6
 
22
7
  archive:
23
- title: Archiv
24
- subtitle: Archiv
25
-
26
- tag:
27
- title: Etiketten
28
- subtitle: Etiketten
8
+ menu: 'Archiv'
9
+ title: 'Archiv'
10
+ subtitle: 'Archiv'
11
+ post_total: 'Insgesamt %d Artikel'
29
12
 
30
13
  category:
31
- title: Kategorie
32
- subtitle: Kategorie
14
+ menu: 'Kategorien'
15
+ title: 'Kategorien'
16
+ subtitle: 'Kategorien'
17
+ post_total: 'Insgesamt %d Artikel'
18
+ more: 'More...'
19
+
20
+ tag:
21
+ menu: 'Schlagwörter'
22
+ title: 'Schlagwörter'
23
+ subtitle: 'Schlagwörter'
24
+ post_total: 'Insgesamt %d Artikel'
33
25
 
34
26
  about:
35
- title: Über mich
36
- subtitle: Über mich
27
+ menu: 'Über'
28
+ title: 'Über'
29
+ subtitle: 'Über'
30
+
31
+ links:
32
+ menu: 'Weblinks'
33
+ title: 'Weblinks'
34
+ subtitle: 'Weblinks'
37
35
 
38
36
  page404:
39
- title: Die Seite wurde nicht gefunden
40
- subtitle: Die Seite wurde nicht gefunden
37
+ menu: 'Die Seite wurde nicht gefunden'
38
+ title: 'Die Seite wurde nicht gefunden'
39
+ subtitle: 'Die Seite wurde nicht gefunden'
41
40
 
42
- links:
43
- title: Weblinks
44
- subtitle: Weblinks
41
+ post:
42
+ toc: 'Inhaltsverzeichnis'
43
+ prev_post: 'Vorheriger'
44
+ next_post: 'Nächster'
45
+ updated: 'Geändert am %s'
46
+ meta:
47
+ wordcount: '%s wörter'
48
+ min2read: '%s minuten'
49
+ views: '{} ansichten'
50
+ copyright:
51
+ author: 'Beitragsautor'
52
+ posted: 'Veröffentlicht am'
53
+ updated: 'Geändert am'
54
+ licensed: 'Urheberrechtshinweis'
55
+ CC: 'CC - Creative Commons license'
56
+ BY: 'BY - Attribution'
57
+ SA: 'SA - Share-alike'
58
+ NC: 'NC - Non-commercial'
59
+ ND: 'ND - No derivative works'
60
+
61
+ footer:
62
+ pv: 'Alle Aufrufe: {}'
63
+ uv: 'Alle Besucher: {}'
64
+
65
+ search:
66
+ title: 'Suchen'
67
+ keyword: 'Stichwort'
68
+
69
+ noscript_warning: 'Blog funktioniert am besten mit aktiviertem JavaScript'