hexo-theme-solitude 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +56 -0
  3. package/_config.yml +432 -0
  4. package/languages/en-US.yml +39 -0
  5. package/languages/zh-CN.yml +39 -0
  6. package/layout/404.ejs +34 -0
  7. package/layout/archive.ejs +10 -0
  8. package/layout/category.ejs +18 -0
  9. package/layout/index.ejs +20 -0
  10. package/layout/layout.ejs +35 -0
  11. package/layout/page/about.ejs +13 -0
  12. package/layout/page/categories.ejs +12 -0
  13. package/layout/page/circle.ejs +5 -0
  14. package/layout/page/echarts.ejs +14 -0
  15. package/layout/page/equipment.ejs +2 -0
  16. package/layout/page/links.ejs +57 -0
  17. package/layout/page/page.ejs +3 -0
  18. package/layout/page/rss.ejs +37 -0
  19. package/layout/page/says.ejs +16 -0
  20. package/layout/page/tags.ejs +12 -0
  21. package/layout/page/tlink.ejs +11 -0
  22. package/layout/page.ejs +45 -0
  23. package/layout/partial/body.ejs +8 -0
  24. package/layout/partial/compoment/about/authorinfo.ejs +18 -0
  25. package/layout/partial/compoment/about/award.ejs +57 -0
  26. package/layout/partial/compoment/about/contentinfo.ejs +33 -0
  27. package/layout/partial/compoment/about/hobbies.ejs +44 -0
  28. package/layout/partial/compoment/about/motto.ejs +17 -0
  29. package/layout/partial/compoment/about/other.ejs +68 -0
  30. package/layout/partial/compoment/about/personalities.ejs +11 -0
  31. package/layout/partial/compoment/about/skillsinfo.ejs +62 -0
  32. package/layout/partial/compoment/aside/aside.ejs +28 -0
  33. package/layout/partial/compoment/aside/asideAllInfo.ejs +6 -0
  34. package/layout/partial/compoment/aside/asideArchive.ejs +11 -0
  35. package/layout/partial/compoment/aside/asideFlipCard.ejs +8 -0
  36. package/layout/partial/compoment/aside/asideInfoCard.ejs +39 -0
  37. package/layout/partial/compoment/aside/asideNewestPost.ejs +31 -0
  38. package/layout/partial/compoment/aside/asidePower.ejs +31 -0
  39. package/layout/partial/compoment/aside/asideSwitch.ejs +35 -0
  40. package/layout/partial/compoment/aside/asideTag.ejs +5 -0
  41. package/layout/partial/compoment/aside/asideToc.ejs +11 -0
  42. package/layout/partial/compoment/aside/asideWebInfo.ejs +60 -0
  43. package/layout/partial/compoment/circle/angle.ejs +26 -0
  44. package/layout/partial/compoment/circle/banner.ejs +11 -0
  45. package/layout/partial/compoment/circle/content.ejs +22 -0
  46. package/layout/partial/compoment/dorakika/rightmenu.ejs +115 -0
  47. package/layout/partial/compoment/equipment/list.ejs +37 -0
  48. package/layout/partial/compoment/home/homeCategoryBar.ejs +11 -0
  49. package/layout/partial/compoment/home/postList.ejs +37 -0
  50. package/layout/partial/compoment/hometop/bbTimeList.ejs +15 -0
  51. package/layout/partial/compoment/hometop/categoryGroup.ejs +19 -0
  52. package/layout/partial/compoment/hometop/groupTag.ejs +30 -0
  53. package/layout/partial/compoment/hometop/topGroup.ejs +48 -0
  54. package/layout/partial/compoment/inject/body.ejs +57 -0
  55. package/layout/partial/compoment/inject/head.ejs +19 -0
  56. package/layout/partial/compoment/links/banner.ejs +42 -0
  57. package/layout/partial/compoment/links/linksCard.ejs +27 -0
  58. package/layout/partial/compoment/links/linksItem.ejs +21 -0
  59. package/layout/partial/compoment/mixins/articleSort.ejs +26 -0
  60. package/layout/partial/compoment/mixins/pagination.ejs +11 -0
  61. package/layout/partial/compoment/nav/left.ejs +22 -0
  62. package/layout/partial/compoment/nav/menu.ejs +25 -0
  63. package/layout/partial/compoment/nav/right.ejs +42 -0
  64. package/layout/partial/compoment/post/award.ejs +52 -0
  65. package/layout/partial/compoment/post/copyright.ejs +37 -0
  66. package/layout/partial/compoment/post/postMeta.ejs +83 -0
  67. package/layout/partial/compoment/post/postNav.ejs +41 -0
  68. package/layout/partial/compoment/post/wave.ejs +14 -0
  69. package/layout/partial/compoment/says/banner.ejs +10 -0
  70. package/layout/partial/compoment/says/saysBottom.ejs +18 -0
  71. package/layout/partial/compoment/says/saysContent.ejs +11 -0
  72. package/layout/partial/compoment/third-party/comments/comment.ejs +12 -0
  73. package/layout/partial/compoment/third-party/comments/twikoo.ejs +29 -0
  74. package/layout/partial/compoment/third-party/comments/twikoo_k.ejs +29 -0
  75. package/layout/partial/compoment/third-party/music.ejs +5 -0
  76. package/layout/partial/compoment/third-party/pjax.ejs +31 -0
  77. package/layout/partial/compoment/third-party/search/algolia-search.ejs +20 -0
  78. package/layout/partial/compoment/third-party/search/index.ejs +10 -0
  79. package/layout/partial/compoment/third-party/search/local-search.ejs +22 -0
  80. package/layout/partial/compoment/tlink/banner.ejs +10 -0
  81. package/layout/partial/console.ejs +62 -0
  82. package/layout/partial/footer.ejs +107 -0
  83. package/layout/partial/head.ejs +37 -0
  84. package/layout/partial/header.ejs +6 -0
  85. package/layout/partial/hometop.ejs +15 -0
  86. package/layout/partial/loading.ejs +86 -0
  87. package/layout/partial/nav.ejs +34 -0
  88. package/layout/partial/pwa.ejs +40 -0
  89. package/layout/partial/sidebar.ejs +31 -0
  90. package/layout/post.ejs +36 -0
  91. package/layout/tag.ejs +19 -0
  92. package/package.json +24 -0
  93. package/scripts/event/init.js +22 -0
  94. package/scripts/event/page.js +40 -0
  95. package/scripts/event/welcome.js +15 -0
  96. package/scripts/filter/checkThemeConfig.js +18 -0
  97. package/scripts/filter/default.js +23 -0
  98. package/scripts/filter/katex.js +25 -0
  99. package/scripts/filter/lazyload.js +11 -0
  100. package/scripts/filter/randomPosts.js +9 -0
  101. package/scripts/helper/charts.js +397 -0
  102. package/scripts/helper/getArchiveLength.js +18 -0
  103. package/scripts/helper/randomLinks.js +16 -0
  104. package/scripts/helper/related_post.js +91 -0
  105. package/scripts/helper/themeJsExport.js +77 -0
  106. package/scripts/tags/bvideo.js +42 -0
  107. package/scripts/tags/expand.js +4 -0
  108. package/scripts/tags/fold.js +19 -0
  109. package/scripts/tags/link.js +17 -0
  110. package/scripts/tags/note.js +3 -0
  111. package/scripts/tags/tabs.js +61 -0
  112. package/scripts/tags/timeline.js +35 -0
  113. package/source/css/commentBarrage.css +174 -0
  114. package/source/css/custom.css +901 -0
  115. package/source/css/main.css +16471 -0
  116. package/source/css/search/algolia-search.css +141 -0
  117. package/source/css/search/local-search.css +138 -0
  118. package/source/css/var.css +186 -0
  119. package/source/img/default.png +0 -0
  120. package/source/img/loading.gif +0 -0
  121. package/source/img/power.png +0 -0
  122. package/source/img/pwa/180.png +0 -0
  123. package/source/img/pwa/192.png +0 -0
  124. package/source/img/pwa/512.png +0 -0
  125. package/source/img/pwa/logo.png +0 -0
  126. package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
  127. package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
  128. package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
  129. package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
  130. package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
  131. package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
  132. package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
  133. package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
  134. package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
  135. package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
  136. package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
  137. package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
  138. package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
  139. package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
  140. package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
  141. package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
  142. package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
  143. package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
  144. package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
  145. package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
  146. package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
  147. package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
  148. package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
  149. package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
  150. package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
  151. package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
  152. package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
  153. package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
  154. package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
  155. package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
  156. package/source/img/theme/avatar.png +0 -0
  157. package/source/js/circle.js +1828 -0
  158. package/source/js/commentBarrage.js +148 -0
  159. package/source/js/extend/console/comment.js +99 -0
  160. package/source/js/extend/covercolor/local.js +150 -0
  161. package/source/js/extend/covercolor/web.js +137 -0
  162. package/source/js/extend/search/algolia-search.js +136 -0
  163. package/source/js/extend/search/local-search.js +160 -0
  164. package/source/js/main.js +705 -0
  165. package/source/js/post_ai.js +517 -0
  166. package/source/js/utils.js +153 -0
  167. package/source/lib/bundle.js +27 -0
  168. package/source/lib/friends_post.js +98 -0
  169. package/source/lib/lazyload.js +1 -0
  170. package/source/lib/snackbar.js +16 -0
  171. package/source/lib/snackbar.min.css +1 -0
  172. package/source/lib/view-image.js +13 -0
  173. package/source/lib/waterfall.min.js +1 -0
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ MIT License
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ ![](https://github.com/DuoSco/Hexo-theme-solitude/assets/74389842/78b527e5-7d8e-456d-b190-859acd9ffdec)
2
+
3
+ 原项目地址:[Acrylic-Next](https://github.com/hexo-theme-Acrylic/Hexo-Theme-Acrylic-Next)
4
+
5
+ 主题预览: 👋[王卓Sco](https://solitude.wzsco.top/)
6
+
7
+ 文档: [📖文档](https://docs.wzsco.top/)
8
+
9
+ 主题交流群:![](https://bu.dusays.com/2023/10/31/6540af9083739.jpg)
10
+
11
+ ## 💻 安裝
12
+
13
+ ### Git 安裝
14
+
15
+ 在博客根目录里安装稳定版【推荐】
16
+
17
+ ```powershell
18
+ git clone -b main https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
19
+ ```
20
+
21
+ ## ⚙ 应用主题
22
+
23
+ 修改hexo配置文件`_config.yml`,把主题改为`solitude`
24
+
25
+ ```
26
+ theme: solitude
27
+ ```
28
+
29
+ ## 更好的配置
30
+ - macos/linux
31
+ 在博客根目录运行
32
+ ```bash
33
+ cp -rf ./themes/solitude/_config.yml ./_config.solitude.yml
34
+ ```
35
+ - windows
36
+ 复制```/themes/solitude/_config.yml```此文件到hexo根目录,并重命名为```_config.solitude.yml```
37
+
38
+ ## ✨ 贡献者
39
+ > 欢迎你对本主题做出贡献
40
+
41
+ [贡献指南](https://opensource.guide/zh-hans/how-to-contribute/#%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E8%B4%A1%E7%8C%AE)
42
+
43
+ ### 原主题参与开发
44
+ [@rootlex](https://github.com/rootlexme)
45
+ [@timigomen](https://github.com/timigomen)
46
+ [@Glannons](https://github.com/Glannons)
47
+ [@Adil](https://github.com/adil-zhang)
48
+ ### 新主题参与开发
49
+ [@王卓Sco](https://github.com/wleelw)
50
+ ### 主题设计
51
+ [@张洪Heo](https://github.com/zhheo)
52
+ ### 域名提供
53
+ [@王卓Sco](https://github.com/wleelw)
54
+
55
+ ## 仓库统计
56
+ ![仓库统计](https://repobeats.axiom.co/api/embed/75ec216f1d0b289e1b6a92f585342f3eeeeb0fdd.svg "Repobeats analytics image")
package/_config.yml ADDED
@@ -0,0 +1,432 @@
1
+ # 站点设置
2
+ site:
3
+ name: # 左上角显示内容
4
+ class: text #i_class/text/img
5
+ custom: Solitude #自定义内容 例如:scoicon sco-logo / 王卓Sco / https://p.sondy.top/logo.png
6
+ siteIcon: https://bu.dusays.com/2023/10/31/6540daf117d20.png # 网页icon
7
+ icon: https://bu.dusays.com/2023/10/31/6540daf117d20.png # 页脚的icon、加载动画默认的icon
8
+ icp: 湘ICP备2023015327号 # ICP 例如:湘ICP备2023015327号
9
+
10
+
11
+ # 导航栏
12
+ nav:
13
+ #导航栏左侧
14
+ left:
15
+ enable: true
16
+ menu:
17
+ 项目:
18
+ Solitude:
19
+ icon: https://bu.dusays.com/2023/10/31/6540daf117d20.png
20
+ url: https://github.com/DuoSco/Hexo-Theme-solitude
21
+ # 导航栏内容
22
+ menu:
23
+ 文库:
24
+ url: false
25
+ child:
26
+ 文章列表:
27
+ url: /archives/
28
+ icon: ri-archive-fill
29
+ 全部分类:
30
+ url: /categories/
31
+ icon: ri-send-backward
32
+ 全部标签:
33
+ url: /tags/
34
+ icon: ri-price-tag-3-fill
35
+ 友链:
36
+ url: false
37
+ child:
38
+ 鱼塘:
39
+ url: /moments/
40
+ icon: ri-bubble-chart-fill
41
+ 友情链接:
42
+ url: /links/
43
+ icon: ri-links-line
44
+ 宝藏博主:
45
+ url: javascript:travelling()
46
+ icon: ri-gift-fill
47
+ 我的:
48
+ url: false
49
+ child:
50
+ 装备:
51
+ url: /equipment/
52
+ icon: ri-macbook-fill
53
+ 工具箱:
54
+ url: /tlink/
55
+ icon: ri-tools-fill
56
+ 关于:
57
+ url: false
58
+ child:
59
+ 关于本站:
60
+ url: /about/
61
+ icon: ri-user-smile-fill
62
+
63
+
64
+ # 导航栏右侧快捷菜单 (true,false)
65
+ right: # @todo 允许用户自定义
66
+ travellings: true #开往
67
+ random: true #
68
+ console: true #控制台
69
+
70
+ # 自定义icon
71
+ icon:
72
+ customicon: https://cdn3.codesign.qq.com/icons/7pOrz0WXB5ZWJPX/latest/iconfont.css
73
+
74
+ # 首页顶部样式
75
+ hometop:
76
+ bbtime: false # 即刻顶部是否开启
77
+ banner:
78
+ enable: true # 是否打开顶部banner
79
+ title: 宁静致远<br>热爱生活 # 左上角显示文字
80
+ url: WWW.SONDY.TOP # title下方小字
81
+ # 轮播icon
82
+ icon:
83
+ HTML:
84
+ img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/HTML.png
85
+ color: '#e9572b'
86
+ JS:
87
+ img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/JS.png
88
+ color: '#f7cb4f'
89
+ Kotlin:
90
+ img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/kotlin-logo.svg
91
+ color: '#ffffff'
92
+ Docker:
93
+ img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/docker.png
94
+ color: '#57b6e6'
95
+ Flutter:
96
+ img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/flutter.png
97
+ color: '#ffffff'
98
+ WebPack:
99
+ img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/webpack.png
100
+ color: '#2e3a41'
101
+ Git:
102
+ img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/git.png
103
+ color: '#df5b40'
104
+ VS:
105
+ img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/vs-logo.svg
106
+ color: '#ffffff'
107
+
108
+ # 顶部三大分类
109
+ categoryGroup:
110
+ G1:
111
+ name: 必看精选
112
+ icon: ri-git-repository-fill
113
+ url: /tags/精选/
114
+ G2:
115
+ name: 热门文章
116
+ icon: ri-fire-fill
117
+ url: /categories/热门/
118
+ G3:
119
+ name: 实用教程
120
+ icon: ri-code-box-fill
121
+ url: /tags/教程/
122
+
123
+ # 右侧置顶列表(在文章的front matter中添加“recommend: true”)
124
+ recommendList:
125
+ sup: 置顶 # 左上角显示文字
126
+ title: 缘木求鱼 # 左下角大字
127
+ url: /about/ # 点击跳转链接
128
+ img: /img/default.png # 显示背景
129
+ color: '#ff0000' # 背景颜色
130
+
131
+ # 侧边栏
132
+ aside:
133
+ # 值:about(关于我)、power(爱发电)、newestPost(最新文章)、allInfo(网站信息)、flip(公众号二维码)
134
+ home: # 在主页显示的侧边栏信息
135
+ noSticky: "about"
136
+ Sticky: "allInfo"
137
+ post: # 在文章页显示的侧边栏信息
138
+ noSticky: "about"
139
+ Sticky: "newestPost"
140
+ page: # 在页面中显示的侧边栏信息
141
+ noSticky: "about"
142
+ Sticky: "newestPost,allInfo"
143
+ # 爱发电
144
+ power:
145
+ link: https://afdian.net/a/wleelw0u0
146
+ post: true
147
+ page: false
148
+ # 侧边栏个人信息卡片
149
+ card:
150
+ author:
151
+ img: https://bu.dusays.com/2023/10/31/6540daf117d20.png # 头像
152
+ js: https://cdn3.codesign.qq.com/icons/XgRxnjPG4VZLmqr/latest/iconfont.js # 自定义图标js(用于显示带颜色的状态表情)
153
+ state: "#sco-smile" # 状态表情(使用symbol)
154
+ content: 分享自己对编程的<b>热爱</b>,对美好生活的<b>向往</b>,对知识海洋<b>探索历程</b>。 # 文案1
155
+ content2: 相信你可以在这里找到对你有用的知识和教程。 # 文案2
156
+ # 个人信息卡片底部的小图标,按照例子填写
157
+ information:
158
+ Github:
159
+ icon: ri-github-fill
160
+ url: https://github.com/DuoSco/Hexo-Theme-slitude
161
+ Bilibili:
162
+ icon: ri-bilibili-fill
163
+ url: https://space.bilibili.com/1329819902
164
+ # 跳转按钮
165
+ button:
166
+ text: 了解更多
167
+ url: /about/
168
+ # 公众号二维码
169
+ flip: # 填url
170
+ face: # 正面
171
+ backface: # 鼠标悬停翻转图片
172
+ # 页面目录
173
+ toc:
174
+ post: true # 在文章页显示
175
+ page: false # 在任意页显示
176
+
177
+
178
+ # 建站信息
179
+ siteinfo:
180
+ postcount: true # 文章数
181
+ wordcount: false # 总字数
182
+ pv: false # 访问量
183
+ uv: false # 访客数
184
+ updatetime: false # 最后更新日期
185
+ runtimeenable: true # 建站时间
186
+ runtime: '2023-04-20 00:00:00' # 格式:yyyy-MM-dd hh-mm-ss
187
+
188
+ # Footer Settings
189
+ # --------------------------------------
190
+ footer:
191
+ # 底部上方一排图标
192
+ information:
193
+ left: # 左侧显示图标
194
+ # Github:
195
+ # icon: ri-github-fill
196
+ # url: https://github.com/wleelw
197
+ # Mail:
198
+ # icon: ri-mail-fill
199
+ # url: mailto:wleelw@sondy.top
200
+ right: # 右侧显示图标
201
+ # Bilibili:
202
+ # icon: ri-bilibili-fill
203
+ # url: https://space.bilibili.com/1329819902
204
+ # 抖音:
205
+ # icon: ri-tiktok-line
206
+ # url: https://v.douyin.com/iJsLc8jt/
207
+ # 底部导航栏
208
+ group: # 从左至右
209
+ # 导航:
210
+ # 归档: /archives/
211
+ # 分类: /categories/
212
+ # 标签: /tags/
213
+ # 服务:
214
+ # 阿里云: https://aliyun.com/
215
+ # 51la统计: https://v6.51.la/
216
+ # 百度统计: https://tongji.baidu.com/
217
+ # 支持:
218
+ # 打赏记录: /about/
219
+ # 协议:
220
+ # Cookies: /cookies/
221
+ # 用户协议: /privacy/
222
+ # 版权协议: /copyright/
223
+
224
+ # 底部随机友链
225
+ randomlink: false
226
+ # rss
227
+ rss:
228
+ enable: true
229
+ wechatOA: # 微信公众号链接
230
+ emailOA: # 邮箱链接
231
+ rss: # rss订阅链接
232
+ # 版权
233
+ license:
234
+ url: /copyright/
235
+
236
+ # 页面页默认设置
237
+ page:
238
+ error: true #
239
+ tags: true # 标签
240
+ categories: true # 分类
241
+ default: # 默认值
242
+ cover: /img/default.png # 默认图片
243
+
244
+ # 文章页默认设置
245
+ post:
246
+ default:
247
+ cover: /img/default.png
248
+ locate: 衡阳
249
+ copyright: 原创
250
+ # 顶部文章简介
251
+ meta:
252
+ date: true # 发布日期
253
+ updated: true # 更新日期
254
+ locate: true # 位置
255
+ wordcount: true # 字数
256
+ readtime: true # 访问
257
+ pv: true # 浏览量
258
+ comment: true # 评论数
259
+ # 打赏
260
+ award:
261
+ enable: false # 开启后文章底部显示打赏按钮
262
+ wechat: https://p.sondy.top/blog/img/20230913203219.png!cover # 微信收款码
263
+ alipay: https://p.sondy.top/blog/img/20230916173807.png!cover # 支付宝收款码
264
+ url: /about # 打赏统计页面链接
265
+ # 文章颜色获取
266
+ covercolor: #文章cover取色
267
+ enable: true
268
+ local: true
269
+
270
+ # 关于界面
271
+ about: true
272
+
273
+ # 404 页面
274
+ errorpage:
275
+ img: https://npm.elemecdn.com/wzheo-absolute@1.0.3/image/source/404.png
276
+ text: =awa= 页面走丢了
277
+ recommendList: true # 显示随机文章
278
+
279
+ # 懒加载
280
+ lazyload:
281
+ enable: true
282
+ placeholder: /img/loading.gif # 加载中显示图片
283
+ errorimg: /img/error_load.png # 加载失败显示图片
284
+
285
+ # 图片灯箱
286
+ lightbox: true
287
+
288
+ #代码高亮增强
289
+ hightlight:
290
+ enable: true
291
+ hightlimit: 200
292
+
293
+ # 加载动画
294
+ loading:
295
+ fullpage: true
296
+ pace: true
297
+
298
+ # 第三方设置
299
+ thirdparty:
300
+ wordcount: true # 字数统计
301
+ busuanzi:
302
+ enable: true
303
+ usecomment: true #当评论系统开启时文章页面使用评论系统的统计数据
304
+ search: # 搜索
305
+ algolia_search:
306
+ enable: false
307
+ # hits:
308
+ # per_page: 6
309
+ local_search:
310
+ enable: false
311
+ preload: false
312
+ CDN:
313
+
314
+ aplayer: # 播放器
315
+ enable: true
316
+ server: tencent # netease, tencent, kugou, xiami, baidu
317
+ id: 8651639768 # 歌单ID
318
+ api: "https://api.injahow.cn/meting/?server=:server&type=:type&id=:id&auth=:auth&r=:r" #自定义api
319
+ #中控台拓展
320
+ consolePlus: true
321
+
322
+ # 评论
323
+ comment:
324
+ enable: false
325
+ twikoo:
326
+ envId: https://twikoo.sondy.top
327
+ path: window.location.pathname
328
+ lang: 'zh-CN'
329
+
330
+ ai: # 文章页面AI
331
+ enable: false
332
+
333
+ # 朋友圈配置
334
+ circle:
335
+ api: https://circle.sondy.top/ # api 地址
336
+ error_img: /img/theme/avatar.png # 头像加载失败显示错误图片
337
+ sort_rule: created # 排序规则
338
+ expire_days: 1 # 文章缓存天数
339
+ page_init_number: 12 # 默认加载文章数,默认10
340
+ page_turning_number: 12 # 加载更多文章数,默认10
341
+ angle: # 钓鱼
342
+ enable: false
343
+ appjs: '/js/circle.js' # 主题appjs
344
+ bundlejs: '/lib/bundle.js' # 主题bundejs
345
+
346
+ # 文章统计
347
+ echarts:
348
+ js: https://cdn.bootcdn.net/ajax/libs/echarts/5.4.2/echarts.min.js
349
+
350
+ # 插入代码到头部 </head> 之前 和 底部 </body> 之前
351
+ # 插入额外代码 如:统计,广告等
352
+ extends:
353
+ head: # 在head中插入
354
+ body: # 在body中插入
355
+
356
+ # 文章底部推荐文章
357
+ related_post:
358
+ enable: true
359
+ limit: 2 # 推荐文章数量
360
+ date_type: created # 根据创建日期(created)或是更新日期(updated)
361
+
362
+ # 站点验证
363
+ verify:
364
+ # 百度
365
+ baidu:
366
+
367
+ # PWA
368
+ # https://github.com/JLHwung/hexo-offline
369
+ pwa:
370
+ enable: false
371
+ startup_image_enable: false
372
+ manifest: /manifest.json
373
+ theme_color: '#ffffff'
374
+ mask_icon: /img/pwa/180.png
375
+ apple_touch_icon: /img/pwa/180.png
376
+ bookmark_icon: /img/pwa/180.png
377
+ favicon_32_32: /img/pwa/32.png
378
+ favicon_16_16: /img/pwa/16.png
379
+ favicon_2048_2732: /img/pwa/siteicon/splash-2048x2732.png
380
+ favicon_2732_2048: /img/pwa/siteicon/splash-2732x2048.png
381
+ favicon_1668_2388: /img/pwa/siteicon/splash-1668x2388.png
382
+ favicon_2388_1668: /img/pwa/siteicon/splash-2388x1668.png
383
+ favicon_1536_2048: /img/pwa/siteicon/splash-1536x2048.png
384
+ favicon_2048_1536: /img/pwa/siteicon/splash-2048x1536.png
385
+ favicon_1668_2224: /img/pwa/siteicon/splash-1668x2224.png
386
+ favicon_2224_1668: /img/pwa/siteicon/splash-2224x1668.png
387
+ favicon_1620_2160: /img/pwa/siteicon/splash-1620x2160.png
388
+ favicon_2160_1620: /img/pwa/siteicon/splash-2160x1620.png
389
+ favicon_1290_2796: /img/pwa/siteicon/splash-1290x2796.png
390
+ favicon_2796_1290: /img/pwa/siteicon/splash-2796x1290.png
391
+ favicon_1179_2556: /img/pwa/siteicon/splash-1179x2556.png
392
+ favicon_2556_1179: /img/pwa/siteicon/splash-2556x1179.png
393
+ favicon_1248_2778: /img/pwa/siteicon/splash-1248x2778.png
394
+ favicon_2778_1248: /img/pwa/siteicon/splash-2778x1248.png
395
+ favicon_1170_2532: /img/pwa/siteicon/splash-1170x2532.png
396
+ favicon_2532_1170: /img/pwa/siteicon/splash-2532x1170.png
397
+ favicon_1125_2436: /img/pwa/siteicon/splash-1125x2436.png
398
+ favicon_2436_1125: /img/pwa/siteicon/splash-2436x1125.png
399
+ favicon_1242_2688: /img/pwa/siteicon/splash-1242x2688.png
400
+ favicon_2688_1242: /img/pwa/siteicon/splash-2688x1242.png
401
+ favicon_828_1792: /img/pwa/siteicon/splash-828x1792.png
402
+ favicon_1792_828: /img/pwa/siteicon/splash-1792x828.png
403
+ favicon_1242_2208: /img/pwa/siteicon/splash-1242x2208.png
404
+ favicon_2208_1242: /img/pwa/siteicon/splash-2208x1242.png
405
+ favicon_750_1334: /img/pwa/siteicon/splash-750x1334.png
406
+ favicon_1334_750: /img/pwa/siteicon/splash-1334x750.png
407
+ favicon_640_1136: /img/pwa/siteicon/splash-640x1136.png
408
+ favicon_1136_640: /img/pwa/siteicon/splash-1136x640.png
409
+
410
+ # 非必要勿动
411
+ cdn:
412
+ head:
413
+ remixicon: https://cdn.bootcdn.net/ajax/libs/remixicon/3.5.0/remixicon.css
414
+ instantsearch: https://cdn.bootcdn.net/ajax/libs/instantsearch.js/4.9.1/instantsearch.production.min.js
415
+ twikoojs: https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.16/twikoo.all.min.js
416
+ algolia: https://cdn.bootcdn.net/ajax/libs/algoliasearch/4.9.3/algoliasearch-lite.umd.min.js
417
+ pacejs: https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js
418
+ snackbarcss: /lib/snackbar.min.css
419
+ body:
420
+ swiperjs: https://cdn.bootcdn.net/ajax/libs/Swiper/9.2.4/swiper-bundle.min.js
421
+ busuanzijs: https://cdn.bootcdn.net/ajax/libs/busuanzi/2.3.0/bsz.pure.mini.min.js
422
+ swipercss: https://cdn.bootcdn.net/ajax/libs/Swiper/9.2.4/swiper-bundle.min.css
423
+ pjaxjs: https://cdn.bootcdn.net/ajax/libs/pjax/0.2.8/pjax.min.js
424
+ viewimagejs: /lib/view-image.js
425
+ waterfalljs: /lib/waterfall.min.js
426
+ lazyloadjs: /lib/lazyload.js
427
+ snackbarjs: /lib/snackbar.js
428
+ aplayercss: https://cdn.bootcdn.net/ajax/libs/aplayer/1.9.1/APlayer.min.css
429
+ aplayerjs: https://cdn.bootcdn.net/ajax/libs/aplayer/1.9.1/APlayer.min.js
430
+ metingjs: https://cdn.bootcdn.net/ajax/libs/meting/2.0.1/Meting.min.js
431
+ katexcss: https://cdn.bootcdn.net/ajax/libs/KaTeX/0.16.6/katex.min.css
432
+ katexjs: https://cdn.bootcdn.net/ajax/libs/KaTeX/0.16.6/katex.min.js
@@ -0,0 +1,39 @@
1
+ theme:
2
+ dark: Switched to dark mode
3
+ light: Switched to light mode
4
+
5
+ copy:
6
+ success: Copied successfully
7
+ error: Copied failed
8
+
9
+ time:
10
+ recent: Recent
11
+ yesterday: Yesterday
12
+ berforeyesterday: TDBY
13
+ daybefore: Days ago
14
+ runtime: days
15
+
16
+ sayhello:
17
+ morning: Good morning
18
+ noon: Good noon
19
+ afternoon: Good afternoon
20
+ night: Good evening
21
+ goodnight: Good night
22
+ iam: '! I am'
23
+
24
+ page:
25
+ tag: Tags
26
+ category: Categories
27
+ archives: Archives
28
+
29
+ nav:
30
+ backtop: Back to top
31
+ travellings: Traveling - Friends Link
32
+ search: Search
33
+ randompost: Random post
34
+ console: Console
35
+
36
+ search:
37
+ empty: No results found
38
+ hit: Found ${query} results for you
39
+ placeholder: Enter keywords to quickly search
@@ -0,0 +1,39 @@
1
+ theme:
2
+ dark: 已切换至深色模式
3
+ light: 已切换至浅色模式
4
+
5
+ copy:
6
+ success: 复制成功
7
+ error: 复制失败
8
+
9
+ time:
10
+ recent: 最近
11
+ yesterday: 昨天
12
+ berforeyesterday: 前天
13
+ daybefore: 天前
14
+ runtime: 天
15
+
16
+ sayhello:
17
+ morning: 早上好
18
+ noon: 中午好
19
+ afternoon: 下午好
20
+ night: 晚上好
21
+ goodnight: 晚安
22
+ iam: '! 我是'
23
+
24
+ page:
25
+ tag: 标签
26
+ category: 分类
27
+ archives: 文章
28
+
29
+ nav:
30
+ backtop: 返回顶部
31
+ travellings: 开往-友链接力
32
+ search: 搜索
33
+ randompost: 随机一篇文章
34
+ console: 中控台
35
+
36
+ search:
37
+ empty: 搜索结果为空
38
+ hit: 已为您找到 ${query} 条结果
39
+ placeholder: 输入关键词快速查找
package/layout/404.ejs ADDED
@@ -0,0 +1,34 @@
1
+ <div id="error-wrap">
2
+ <div class="error-content">
3
+ <div class="error-img" style="background-image: url('<%= theme.errorpage.img %>')"></div>
4
+ <div class="error-info">
5
+ <h1 class="error_title">404</h1>
6
+ <div class="error_subtitle">
7
+ <%= theme.errorpage.text %>
8
+ </div>
9
+ <a class="button--animated" href="/">
10
+ <i class="ri-external-link-fill"></i>
11
+ 回到主页
12
+ </a>
13
+ </div>
14
+ </div>
15
+ </div>
16
+ <% if(theme.errorpage.recommendList){ %>
17
+ <div class="aside-list">
18
+ <div class="aside-list-group">
19
+ <% for (const [index, post] of site.posts.sort('-date').data.entries()){ %>
20
+ <% if(index >= 5)break; %>
21
+ <div class="aside-list-item">
22
+ <a class="thumbnail" href="<%= url_for(post.path) %>" title="<%= post.title %>">
23
+ <img src="<%= post.cover %>" alt="<%= post.title %>">
24
+ </a>
25
+ <div class="content">
26
+ <a class="title" href="<%= url_for(post.path) %>" title="<%= post.title %>">
27
+ <%= post.title %>
28
+ </a>
29
+ </div>
30
+ </div>
31
+ <% } %>
32
+ </div>
33
+ </div>
34
+ <% } %>
@@ -0,0 +1,10 @@
1
+ <main class="layout" id="content-inner">
2
+ <div id="archive">
3
+ <div class="article-sort-title"><%= __('page.archives') %><sup><%= page.posts.length %></sup></div>
4
+ <div class="article-sort">
5
+ <%- partial('partial/compoment/mixins/articleSort') %>
6
+ </div>
7
+ <%- partial('partial/compoment/mixins/pagination') %>
8
+ </div>
9
+ <%- partial('partial/compoment/aside/aside') %>
10
+ </main>
@@ -0,0 +1,18 @@
1
+ <main class="layout" id="content-inner">
2
+ <div id="category">
3
+ <div class="category-in-bar">
4
+ <div class="category-in-bar-tips">分类</div>
5
+ <div id="category-bar">
6
+ <div class="category-bar-items" id="category-bar-items">
7
+ <%- partial('partial/compoment/home/homeCategoryBar', {select:page.category}) %>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ <div class="article-sort-title"><%= page.category %></div>
12
+ <div class="article-sort">
13
+ <%- partial('partial/compoment/mixins/articleSort') %>
14
+ </div>
15
+ <%- partial('partial/compoment/mixins/pagination') %>
16
+ </div>
17
+ <%- partial('partial/compoment/aside/aside') %>
18
+ </main>
@@ -0,0 +1,20 @@
1
+ <div id="home_top">
2
+ <% if(theme.hometop.bbtime){ %>
3
+ <%- partial('partial/compoment/hometop/bbTimeList') %>
4
+ <% } %>
5
+ <% if(theme.hometop.banner.enable){ %>
6
+ <%- partial('partial/hometop') %>
7
+ <% } %>
8
+ </div>
9
+ <main class="layout" id="content-inner">
10
+ <div class="recent-posts" id="recent-posts">
11
+ <div id="category-bar">
12
+ <%- partial('partial/compoment/home/homeCategoryBar', {select:false}) %>
13
+ </div>
14
+ <% for (const item of page.posts.sort('-date').data){ %>
15
+ <%- partial('partial/compoment/home/postList', {post: item}) %>
16
+ <% } %>
17
+ <%- partial('partial/compoment/mixins/pagination') %>
18
+ </div>
19
+ <%- partial('partial/compoment/aside/aside') %>
20
+ </main>