hexo-theme-solitude 1.1.0 → 1.2.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 (304) hide show
  1. package/LICENSE +674 -19
  2. package/README.md +56 -19
  3. package/README_EN.md +98 -0
  4. package/_config.yml +274 -224
  5. package/languages/en-US.yml +1 -0
  6. package/languages/zh-CN.yml +8 -8
  7. package/layout/404.pug +24 -0
  8. package/layout/archive.pug +11 -0
  9. package/layout/category.pug +16 -0
  10. package/layout/includes/console.pug +42 -0
  11. package/layout/includes/footer.pug +71 -0
  12. package/layout/includes/head/config.pug +79 -0
  13. package/layout/includes/head/pwa.pug +59 -0
  14. package/layout/includes/head.pug +29 -0
  15. package/layout/includes/header.pug +4 -0
  16. package/layout/includes/inject/body.pug +68 -0
  17. package/layout/{partial/compoment/inject/head.ejs → includes/inject/head.pug} +60 -37
  18. package/layout/includes/layout.pug +35 -0
  19. package/layout/{partial/loading.ejs → includes/loading.pug} +19 -17
  20. package/layout/includes/mixins/articleSort.pug +14 -0
  21. package/layout/includes/mixins/pagination.pug +8 -0
  22. package/layout/includes/nav.pug +22 -0
  23. package/layout/includes/page/about.pug +10 -0
  24. package/layout/includes/page/categories.pug +8 -0
  25. package/layout/includes/page/default.pug +2 -0
  26. package/layout/includes/page/echarts.pug +7 -0
  27. package/layout/includes/page/equipment.pug +3 -0
  28. package/layout/includes/page/links.pug +35 -0
  29. package/layout/includes/page/moments.pug +5 -0
  30. package/layout/includes/page/rss.pug +22 -0
  31. package/layout/includes/page/says.pug +20 -0
  32. package/layout/includes/page/tags.pug +8 -0
  33. package/layout/includes/page/tlink.pug +9 -0
  34. package/layout/includes/recent-posts.pug +9 -0
  35. package/layout/includes/sidebar.pug +17 -0
  36. package/layout/includes/widgets/aside/aside.pug +18 -0
  37. package/layout/includes/widgets/aside/asideAllInfo.pug +8 -0
  38. package/layout/includes/widgets/aside/asideArchive.pug +9 -0
  39. package/layout/includes/widgets/aside/asideFlipCard.pug +5 -0
  40. package/layout/includes/widgets/aside/asideHistory.pug +8 -0
  41. package/layout/includes/widgets/aside/asideInfoCard.pug +22 -0
  42. package/layout/includes/widgets/aside/asideNewestPost.pug +16 -0
  43. package/layout/includes/widgets/aside/asidePower.pug +19 -0
  44. package/layout/includes/widgets/aside/asideSwitch.pug +26 -0
  45. package/layout/includes/widgets/aside/asideTag.pug +11 -0
  46. package/layout/includes/widgets/aside/asideToc.pug +5 -0
  47. package/layout/includes/widgets/aside/asideWebInfo.pug +40 -0
  48. package/layout/includes/widgets/aside/asideWelcome.pug +12 -0
  49. package/layout/includes/widgets/home/banner.pug +16 -0
  50. package/layout/includes/widgets/home/bbTimeList.pug +8 -0
  51. package/layout/includes/widgets/home/categoryBar.pug +10 -0
  52. package/layout/includes/widgets/home/categoryGroup.pug +9 -0
  53. package/layout/includes/widgets/home/hometop.pug +9 -0
  54. package/layout/includes/widgets/home/postList.pug +26 -0
  55. package/layout/includes/widgets/home/rencentPost.pug +26 -0
  56. package/layout/includes/widgets/home/topGroup.pug +27 -0
  57. package/layout/includes/widgets/nav/left.pug +10 -0
  58. package/layout/includes/widgets/nav/menu.pug +16 -0
  59. package/layout/includes/widgets/nav/right.pug +23 -0
  60. package/layout/includes/widgets/page/about/authorinfo.pug +12 -0
  61. package/layout/includes/widgets/page/about/award.pug +34 -0
  62. package/layout/includes/widgets/page/about/contentinfo.pug +38 -0
  63. package/layout/includes/widgets/page/about/hobbies.pug +33 -0
  64. package/layout/includes/widgets/page/about/motto.pug +19 -0
  65. package/layout/includes/widgets/page/about/other.pug +61 -0
  66. package/layout/includes/widgets/page/about/personalities.pug +16 -0
  67. package/layout/includes/widgets/page/about/skillsinfo.pug +41 -0
  68. package/layout/includes/widgets/page/banner.pug +14 -0
  69. package/layout/includes/widgets/page/equipment/content.pug +23 -0
  70. package/layout/includes/widgets/page/links/banner.pug +30 -0
  71. package/layout/includes/widgets/page/links/linksCard.pug +18 -0
  72. package/layout/includes/widgets/page/links/linksItem.pug +14 -0
  73. package/layout/includes/widgets/page/moments/angle.pug +24 -0
  74. package/layout/includes/widgets/page/moments/index.pug +18 -0
  75. package/layout/includes/widgets/page/says/saysBottom.pug +11 -0
  76. package/layout/includes/widgets/page/says/saysContent.pug +6 -0
  77. package/layout/includes/widgets/page/says/saysFunction.pug +10 -0
  78. package/layout/includes/widgets/page/says/saysMeta.pug +7 -0
  79. package/layout/includes/widgets/post/award.pug +48 -0
  80. package/layout/includes/widgets/post/copyright.pug +27 -0
  81. package/layout/includes/widgets/post/postMeta.pug +55 -0
  82. package/layout/includes/widgets/post/postNav.pug +25 -0
  83. package/layout/includes/widgets/post/wave.pug +9 -0
  84. package/layout/includes/widgets/randomlink.pug +32 -0
  85. package/layout/includes/widgets/rightside/index.pug +74 -0
  86. package/layout/includes/widgets/third-party/comments/comment.pug +14 -0
  87. package/layout/includes/widgets/third-party/comments/gitalk.pug +0 -0
  88. package/layout/{partial/compoment/third-party/comments/twikoo.ejs → includes/widgets/third-party/comments/twikoo.pug} +8 -9
  89. package/layout/includes/widgets/third-party/comments/valine.pug +0 -0
  90. package/layout/includes/widgets/third-party/music.pug +3 -0
  91. package/layout/includes/widgets/third-party/pjax.pug +30 -0
  92. package/layout/includes/widgets/third-party/search/algolia-search.pug +16 -0
  93. package/layout/includes/widgets/third-party/search/index.pug +7 -0
  94. package/layout/includes/widgets/third-party/search/local-search.pug +15 -0
  95. package/layout/index.pug +20 -0
  96. package/layout/page.pug +32 -0
  97. package/layout/post.pug +43 -0
  98. package/layout/tag.pug +19 -0
  99. package/package.json +3 -3
  100. package/scripts/event/page.js +20 -2
  101. package/scripts/filter/checkThemeConfig.js +0 -1
  102. package/scripts/filter/randomPosts.js +0 -1
  103. package/scripts/helper/{charts.js → echarts.js} +21 -11
  104. package/scripts/helper/related_post.js +10 -3
  105. package/scripts/helper/stylus.js +23 -0
  106. package/scripts/tags/bvideo.js +1 -36
  107. package/scripts/tags/fold.js +2 -3
  108. package/scripts/tags/note.js +6 -2
  109. package/scripts/tags/tabs.js +1 -1
  110. package/source/css/_comment/index.styl +121 -0
  111. package/source/css/_comment/twikoo.styl +515 -0
  112. package/source/css/_extra/console.styl +354 -0
  113. package/source/css/_extra/rightmenu.styl +83 -0
  114. package/source/css/_global/animation.css +756 -0
  115. package/source/css/_global/function.styl +83 -0
  116. package/source/css/_global/index.styl +120 -0
  117. package/source/css/_global/var.styl +1 -0
  118. package/source/css/_layout/articleSort.styl +199 -0
  119. package/source/css/_layout/base.styl +392 -0
  120. package/source/css/_layout/footer.styl +359 -0
  121. package/source/css/_layout/header.styl +1331 -0
  122. package/source/css/_layout/index.styl +293 -0
  123. package/source/css/_layout/sidebar.styl +226 -0
  124. package/source/css/_mode/index.styl +52 -0
  125. package/source/css/_page/about.styl +944 -0
  126. package/source/css/_page/category.styl +141 -0
  127. package/source/css/_page/equipment.styl +108 -0
  128. package/source/css/_page/error.styl +161 -0
  129. package/source/css/_page/home.styl +58 -0
  130. package/source/css/_page/homeTop.styl +1035 -0
  131. package/source/css/_page/index.styl +22 -0
  132. package/source/css/_page/link.styl +433 -0
  133. package/source/css/_page/moment.styl +186 -0
  134. package/source/css/_page/rss.styl +87 -0
  135. package/source/css/_page/says.styl +353 -0
  136. package/source/css/_page/tag.styl +56 -0
  137. package/source/css/_post/commentBarrage.styl +149 -0
  138. package/source/css/_post/externalTags.styl +694 -0
  139. package/source/css/_post/highlight.styl +96 -0
  140. package/source/css/_post/index.styl +935 -0
  141. package/source/css/_post/pagination.styl +467 -0
  142. package/source/css/_post/postContent.styl +957 -0
  143. package/source/css/_post/relatedPost.styl +160 -0
  144. package/source/css/_post/reward.styl +217 -0
  145. package/source/css/_search/algolia-search.styl +206 -0
  146. package/source/css/_search/local-search.styl +112 -0
  147. package/source/css/_widgets/aside/allinfo.styl +134 -0
  148. package/source/css/_widgets/aside/flip.styl +68 -0
  149. package/source/css/_widgets/aside/history.styl +35 -0
  150. package/source/css/_widgets/aside/index.styl +156 -0
  151. package/source/css/_widgets/aside/info.styl +263 -0
  152. package/source/css/_widgets/aside/newPost.styl +55 -0
  153. package/source/css/_widgets/aside/power.styl +90 -0
  154. package/source/css/_widgets/aside/toc.styl +85 -0
  155. package/source/css/_widgets/aside/welcome.styl +14 -0
  156. package/source/css/_widgets/index.styl +3 -0
  157. package/source/css/index.styl +40 -0
  158. package/source/img/default.png +0 -0
  159. package/source/img/logo-horizontal_version.png +0 -0
  160. package/source/img/pwa/16.png +0 -0
  161. package/source/img/pwa/180.png +0 -0
  162. package/source/img/pwa/192.png +0 -0
  163. package/source/img/pwa/32.png +0 -0
  164. package/source/img/pwa/512.png +0 -0
  165. package/source/img/pwa/logo.png +0 -0
  166. package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
  167. package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
  168. package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
  169. package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
  170. package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
  171. package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
  172. package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
  173. package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
  174. package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
  175. package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
  176. package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
  177. package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
  178. package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
  179. package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
  180. package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
  181. package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
  182. package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
  183. package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
  184. package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
  185. package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
  186. package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
  187. package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
  188. package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
  189. package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
  190. package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
  191. package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
  192. package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
  193. package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
  194. package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
  195. package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
  196. package/source/img/solitude-show.jpg +0 -0
  197. package/source/js/commentBarrage.js +8 -5
  198. package/source/js/extend/console/comment.js +60 -63
  199. package/source/js/extend/covercolor/local.js +105 -95
  200. package/source/js/extend/search/algolia-search.js +104 -111
  201. package/source/js/extend/search/local-search.js +7 -7
  202. package/source/js/main.js +673 -520
  203. package/source/js/utils.js +131 -137
  204. package/source/lib/chuckle-post-ai.js +1 -1
  205. package/layout/404.ejs +0 -34
  206. package/layout/archive.ejs +0 -10
  207. package/layout/category.ejs +0 -18
  208. package/layout/index.ejs +0 -20
  209. package/layout/layout.ejs +0 -30
  210. package/layout/page/about.ejs +0 -13
  211. package/layout/page/categories.ejs +0 -12
  212. package/layout/page/circle.ejs +0 -5
  213. package/layout/page/echarts.ejs +0 -14
  214. package/layout/page/equipment.ejs +0 -2
  215. package/layout/page/links.ejs +0 -46
  216. package/layout/page/page.ejs +0 -3
  217. package/layout/page/rss.ejs +0 -37
  218. package/layout/page/says.ejs +0 -17
  219. package/layout/page/tags.ejs +0 -12
  220. package/layout/page/tlink.ejs +0 -11
  221. package/layout/page.ejs +0 -45
  222. package/layout/partial/body.ejs +0 -7
  223. package/layout/partial/compoment/about/authorinfo.ejs +0 -18
  224. package/layout/partial/compoment/about/award.ejs +0 -59
  225. package/layout/partial/compoment/about/contentinfo.ejs +0 -33
  226. package/layout/partial/compoment/about/hobbies.ejs +0 -53
  227. package/layout/partial/compoment/about/motto.ejs +0 -17
  228. package/layout/partial/compoment/about/other.ejs +0 -76
  229. package/layout/partial/compoment/about/personalities.ejs +0 -11
  230. package/layout/partial/compoment/about/skillsinfo.ejs +0 -62
  231. package/layout/partial/compoment/aside/aside.ejs +0 -28
  232. package/layout/partial/compoment/aside/asideAllInfo.ejs +0 -6
  233. package/layout/partial/compoment/aside/asideArchive.ejs +0 -11
  234. package/layout/partial/compoment/aside/asideFlipCard.ejs +0 -72
  235. package/layout/partial/compoment/aside/asideHistory.ejs +0 -49
  236. package/layout/partial/compoment/aside/asideInfoCard.ejs +0 -39
  237. package/layout/partial/compoment/aside/asideNewestPost.ejs +0 -31
  238. package/layout/partial/compoment/aside/asidePower.ejs +0 -31
  239. package/layout/partial/compoment/aside/asideSwitch.ejs +0 -41
  240. package/layout/partial/compoment/aside/asideTag.ejs +0 -5
  241. package/layout/partial/compoment/aside/asideToc.ejs +0 -11
  242. package/layout/partial/compoment/aside/asideWebInfo.ejs +0 -60
  243. package/layout/partial/compoment/aside/asideWelcome.ejs +0 -33
  244. package/layout/partial/compoment/circle/angle.ejs +0 -26
  245. package/layout/partial/compoment/circle/banner.ejs +0 -11
  246. package/layout/partial/compoment/circle/content.ejs +0 -19
  247. package/layout/partial/compoment/dorakika/rightmenu.ejs +0 -100
  248. package/layout/partial/compoment/equipment/list.ejs +0 -37
  249. package/layout/partial/compoment/home/homeCategoryBar.ejs +0 -11
  250. package/layout/partial/compoment/home/postList.ejs +0 -37
  251. package/layout/partial/compoment/hometop/bbTimeList.ejs +0 -15
  252. package/layout/partial/compoment/hometop/categoryGroup.ejs +0 -19
  253. package/layout/partial/compoment/hometop/groupTag.ejs +0 -30
  254. package/layout/partial/compoment/hometop/topGroup.ejs +0 -41
  255. package/layout/partial/compoment/inject/body.ejs +0 -72
  256. package/layout/partial/compoment/links/angle.ejs +0 -26
  257. package/layout/partial/compoment/links/banner.ejs +0 -42
  258. package/layout/partial/compoment/links/linksCard.ejs +0 -27
  259. package/layout/partial/compoment/links/linksItem.ejs +0 -21
  260. package/layout/partial/compoment/mixins/articleSort.ejs +0 -26
  261. package/layout/partial/compoment/mixins/pagination.ejs +0 -11
  262. package/layout/partial/compoment/nav/left.ejs +0 -22
  263. package/layout/partial/compoment/nav/menu.ejs +0 -25
  264. package/layout/partial/compoment/nav/right.ejs +0 -42
  265. package/layout/partial/compoment/post/award.ejs +0 -52
  266. package/layout/partial/compoment/post/copyright.ejs +0 -37
  267. package/layout/partial/compoment/post/postMeta.ejs +0 -83
  268. package/layout/partial/compoment/post/postNav.ejs +0 -41
  269. package/layout/partial/compoment/post/wave.ejs +0 -14
  270. package/layout/partial/compoment/says/banner.ejs +0 -10
  271. package/layout/partial/compoment/says/saysBottom.ejs +0 -18
  272. package/layout/partial/compoment/says/saysContent.ejs +0 -10
  273. package/layout/partial/compoment/says/saysFunction.ejs +0 -15
  274. package/layout/partial/compoment/third-party/comments/comment.ejs +0 -12
  275. package/layout/partial/compoment/third-party/comments/twikoo_k.ejs +0 -29
  276. package/layout/partial/compoment/third-party/music.ejs +0 -5
  277. package/layout/partial/compoment/third-party/pjax.ejs +0 -31
  278. package/layout/partial/compoment/third-party/search/algolia-search.ejs +0 -20
  279. package/layout/partial/compoment/third-party/search/index.ejs +0 -10
  280. package/layout/partial/compoment/third-party/search/local-search.ejs +0 -22
  281. package/layout/partial/compoment/tlink/banner.ejs +0 -10
  282. package/layout/partial/console.ejs +0 -68
  283. package/layout/partial/footer.ejs +0 -104
  284. package/layout/partial/head.ejs +0 -37
  285. package/layout/partial/header.ejs +0 -6
  286. package/layout/partial/hometop.ejs +0 -15
  287. package/layout/partial/nav.ejs +0 -34
  288. package/layout/partial/pwa.ejs +0 -40
  289. package/layout/partial/sidebar.ejs +0 -31
  290. package/layout/post.ejs +0 -52
  291. package/layout/tag.ejs +0 -19
  292. package/scripts/filter/katex.js +0 -25
  293. package/scripts/helper/randomLinks.js +0 -16
  294. package/scripts/helper/themeJsExport.js +0 -79
  295. package/scripts/tags/expand.js +0 -4
  296. package/scripts/tags/hide.js +0 -70
  297. package/source/css/commentBarrage.css +0 -174
  298. package/source/css/custom.css +0 -901
  299. package/source/css/main.css +0 -16420
  300. package/source/css/search/algolia-search.css +0 -141
  301. package/source/css/search/local-search.css +0 -138
  302. package/source/css/var.css +0 -189
  303. package/source/js/extend/covercolor/web.js +0 -137
  304. /package/source/js/{rightmenu.js → rightside.js} +0 -0
@@ -1,16 +0,0 @@
1
- hexo.extend.helper.register('randomLinks', function(){
2
- const links = []
3
- const data = this.site.data.links.links
4
- if(!data)return
5
- data.forEach(x => {
6
- if(x.type === "item"){
7
- x.link_list.forEach(y => {
8
- links.push({
9
- name: y.name,
10
- link: y.link
11
- })
12
- })
13
- }
14
- });
15
- return `<script>const links=${JSON.stringify(links)};function travelling(){const link=links[utils.randomNum(links.length)];utils.snackbarShow('您即将前往 ⌈ '+link.name+' ⌋ , 安全性未知',false,3000);setTimeout(()=>{window.open(link.link,"_blank")},3000)};function randomLinksList(){let data='';let linksCopy = [...links];let count = Math.min(3, linksCopy.length);for (let i = 0; i < count; i++) {let index = utils.randomNum(linksCopy.length);const link = linksCopy[index];data += '<a class="footer-item" href="' + link.link + '" target="_blank" rel="noopener nofollow">' + link.name + '</a>';linksCopy.splice(index, 1);}document.getElementById('friend-links-in-footer').innerHTML = data + '<a class="footer-item" href="/links/">更多</a>';};</script>`
16
- })
@@ -1,79 +0,0 @@
1
- hexo.extend.helper.register('export_config', function () {
2
- const {config, theme} = this, lang = hexo.theme.i18n.get(config.language || 'zh-CN')
3
- let exportGlobalConfig = {
4
- root: config.root,
5
- runtime: theme.aside.siteinfo.runtimeenable ? theme.aside.siteinfo.runtime : false,
6
- lazyload: {
7
- enable: theme.lazyload.enable,
8
- error: theme.lazyload.errorimg
9
- },
10
- hightlight: {
11
- enable: theme.hightlight.enable,
12
- limit: theme.hightlight.hightlimit
13
- },
14
- lightbox: theme.lightbox,
15
- randomlinks: theme.footer.randomlink,
16
- lang: {
17
- theme: {
18
- dark: lang['theme.dark'],
19
- light: lang['theme.light'],
20
- },
21
- copy: {
22
- success: lang['copy.success'],
23
- error: lang['copy.error'],
24
- },
25
- backtop: lang['nav.backtop'],
26
- time: {
27
- recent: lang['time.recent'],
28
- yesterday: lang['time.yesterday'],
29
- berforeyesterday: lang['time.berforeyesterday'],
30
- daybefore: lang['time.daybefore'],
31
- runtime: lang['time.runtime'],
32
- },
33
- sayhello: {
34
- morning: lang['sayhello.morning'],
35
- noon: lang['sayhello.noon'],
36
- afternoon: lang['sayhello.afternoon'],
37
- night: lang['sayhello.night'],
38
- goodnight: lang['sayhello.goodnight'],
39
- iam: lang['sayhello.iam'],
40
- },
41
- search: {
42
- empty: lang['search.empty'],
43
- hit: lang['search.hit'],
44
- placeholder: lang['search.placeholder'],
45
- }
46
- },
47
- covercolor: theme.post.covercolor.enable,
48
- comment: {
49
- enable: theme.comment.enable,
50
- twikooUrl: theme.comment.twikoo.envId,
51
- twikooAccessToken: theme.comment.twikoo.accessToken
52
- },
53
- }
54
-
55
- // 搜索数据
56
- if (theme.thirdparty.search.local_search.enable) exportGlobalConfig = Object.assign(exportGlobalConfig, {
57
- localsearch: {
58
- preload: theme.thirdparty.search.local_search.preload,
59
- path: theme.thirdparty.search.local_search.path || '/search.xml'
60
- }
61
- })
62
- if (theme.thirdparty.search.algolia_search.enable) exportGlobalConfig = Object.assign(exportGlobalConfig, {
63
- algolia: {
64
- appId: config.algolia.appId,
65
- apiKey: config.algolia.apiKey,
66
- indexName: config.algolia.indexName
67
- }
68
- })
69
-
70
- const exportPageConfig = {
71
- is_home: this.is_home(),
72
- is_post: this.is_post(),
73
- is_page: this.is_page(),
74
- page: this.is_page() && (this.page.type || 'default'),
75
- toc: this.page.toc,
76
- comment: this.page.comment,
77
- }
78
- return `<script>var GLOBALCONFIG = ${JSON.stringify(exportGlobalConfig)};</script><script id="site-config">var PAGECONFIG = ${JSON.stringify(exportPageConfig)};</script>`;
79
- })
@@ -1,4 +0,0 @@
1
- hexo.extend.tag.register('expand', function(summary, content){
2
- return '<details><summary>' + summary + '</summary>' + hexo.render.renderSync({ text: content, engine: 'markdown' }) +
3
- '</details>';
4
- }, {ends: true});
@@ -1,70 +0,0 @@
1
- /**
2
- * Solitude
3
- * @example
4
- * hideInline
5
- * {% hideInline content,display,bg,color %}
6
- * content不能包含當引號,可用 &apos;
7
- * hideBlock
8
- * {% hideBlock display,bg,color %}
9
- * content
10
- * {% endhideBlock %}
11
- * hideToggle
12
- * {% hideToggle display,bg,color %}
13
- * content
14
- * {% endhideToggle %}
15
- */
16
-
17
- 'use strict'
18
-
19
- function hideInline (args) {
20
- args = args.join(' ').split(',')
21
- const content = args[0]
22
- const display = args[1] || 'Click'
23
- const bg = args[2] || false
24
- const color = args[3] || false
25
- let group = 'style="'
26
-
27
- if (bg) group += `background-color: ${bg};`
28
- if (color) group += `color: ${color}`
29
- group += '"'
30
-
31
- return `<span class="hide-inline"><button type="button" class="hide-button" ${group}>${display}
32
- </button><span class="hide-content">${content}</span></span>`
33
- }
34
-
35
- function hideBlock (args, content) {
36
- args = args.join(' ').split(',')
37
- const display = args[0] || 'Click'
38
- const bg = args[1] || false
39
- const color = args[2] || false
40
- let group = 'style="'
41
-
42
- if (bg) group += `background-color: ${bg};`
43
- if (color) group += `color: ${color}`
44
- group += '"'
45
-
46
- return `<div class="hide-block"><button type="button" class="hide-button" ${group}>${display}
47
- </button><div class="hide-content">${hexo.render.renderSync({ text: content, engine: 'markdown' })}</div></div>`
48
- }
49
-
50
- function hideToggle (args, content) {
51
- args = args.join(' ').split(',')
52
- const display = args[0]
53
- const bg = args[1] || false
54
- const color = args[2] || false
55
- let group = 'style="'
56
- let border = ''
57
-
58
- if (bg) {
59
- border = `style="border: 1px solid ${bg}"`
60
- group += `background-color: ${bg};`
61
- }
62
- if (color) group += `color: ${color}`
63
- group += '"'
64
-
65
- return `<details class="toggle" ${border}><summary class="toggle-button" ${group}>${display}</summary><div class="toggle-content">${hexo.render.renderSync({ text: content, engine: 'markdown' })}</div></details>`
66
- }
67
-
68
- hexo.extend.tag.register('hideInline', hideInline)
69
- hexo.extend.tag.register('hideBlock', hideBlock, { ends: true })
70
- hexo.extend.tag.register('hideToggle', hideToggle, { ends: true })
@@ -1,174 +0,0 @@
1
- .comment-barrage {
2
- position: fixed;
3
- bottom: 0px;
4
- right: 20px;
5
- padding: 0px 0px 20px 10px;
6
- display: flex;
7
- flex-direction: column;
8
- justify-content: end;
9
- align-items: flex-end;
10
- z-index: 999;
11
- transition: all 0.3s ease 0s;
12
- user-select: none;
13
- }
14
-
15
- @media screen and (max-width: 768px) {
16
- .comment-barrage {
17
- display: none !important;
18
- }
19
- }
20
-
21
- .comment-barrage-item {
22
- min-width: 300px;
23
- max-width: 300px;
24
- width: fit-content;
25
- min-height: 80px;
26
- max-height: 150px;
27
- margin: 4px;
28
- padding: 8px 14px;
29
- background: var(--sco-maskbgdeep);
30
- border-radius: 8px;
31
- color: var(--sco-fontcolor);
32
- animation: 0.6s cubic-bezier(0.42, 0, 0.3, 1.11) 0s 1 normal none running barrageIn;
33
- transition: all 0.3s ease 0s;
34
- display: flex;
35
- flex-direction: column;
36
- border: var(--style-border);
37
- backdrop-filter: saturate(180%) blur(20px);
38
- position: fixed;
39
- box-shadow: var(--sco-shadow-border);
40
- overflow: hidden;
41
- }
42
-
43
- .comment-barrage-item:hover {
44
- border: var(--style-border-hover);
45
- box-shadow: var(--sco-shadow-main);
46
- }
47
-
48
- .comment-barrage-item.out {
49
- opacity: 0;
50
- animation: 0.6s cubic-bezier(0.42, 0, 0.3, 1.11) 0s 1 normal none running barrageOut;
51
- }
52
-
53
- .comment-barrage-item.hovered {
54
- opacity: 0;
55
- }
56
-
57
- .comment-barrage-item .comment-barrage-close {
58
- color: var(--sco-secondtext);
59
- cursor: pointer;
60
- line-height: 1;
61
- margin: 4px;
62
- }
63
-
64
- .comment-barrage-item .comment-barrage-close:hover {
65
- color: var(--sco-main);
66
- }
67
-
68
- .comment-barrage-item .comment-barrage-close .heofont {
69
- color: var(--sco-fontcolor);
70
- font-size: 18px !important;
71
- }
72
-
73
- .comment-barrage-item pre {
74
- display: none;
75
- }
76
-
77
- .comment-barrage-item li {
78
- display: none;
79
- }
80
-
81
- .comment-barrage-item p img:not(.tk-owo-emotion) {
82
- display: none;
83
- }
84
-
85
- .comment-barrage-item p img.tk-owo-emotion {
86
- width: 16px;
87
- padding: 0px;
88
- margin: 0px;
89
- transform: translateY(2px);
90
- }
91
-
92
- .comment-barrage-item blockquote {
93
- display: none;
94
- }
95
-
96
- .comment-barrage-item br {
97
- display: none;
98
- }
99
-
100
- .comment-barrage-item .barrageHead {
101
- height: 30px;
102
- padding: 0px 0px 6px;
103
- line-height: 30px;
104
- font-size: 12px;
105
- border-bottom: var(--style-border);
106
- display: flex;
107
- justify-content: space-between;
108
- align-items: center;
109
- font-weight: 700;
110
- }
111
-
112
- .comment-barrage-item .barrageHead .barrageTitle {
113
- color: var(--sco-card-bg);
114
- margin-right: 8px;
115
- background: var(--sco-fontcolor);
116
- line-height: 1;
117
- padding: 4px;
118
- border-radius: 4px;
119
- white-space: nowrap;
120
- }
121
-
122
- .comment-barrage-item .barrageHead .barrageTitle:hover {
123
- background: var(--sco-main);
124
- color: var(--sco-white);
125
- }
126
-
127
- .comment-barrage-item .barrageAvatar {
128
- width: 16px;
129
- height: 16px;
130
- margin: 0px 8px 0px auto;
131
- border-radius: 50%;
132
- background: var(--sco-secondbg);
133
- }
134
-
135
- .comment-barrage-item .barrageContent {
136
- height: calc(100% - 30px);
137
- overflow: hidden;
138
- width: fit-content;
139
- max-height: 48px;
140
- font-size: 14px !important;
141
- font-weight: 400 !important;
142
- }
143
-
144
- .comment-barrage-item .barrageContent a {
145
- pointer-events: none;
146
- font-size: 14px !important;
147
- }
148
-
149
- .comment-barrage-item .barrageContent::-webkit-scrollbar {
150
- height: 0px;
151
- width: 4px;
152
- }
153
-
154
- .comment-barrage-item .barrageContent::-webkit-scrollbar-button {
155
- display: none;
156
- }
157
-
158
- .comment-barrage-item p {
159
- margin: 8px 0px;
160
- line-height: 1.3;
161
- overflow: hidden;
162
- text-overflow: ellipsis;
163
- -webkit-line-clamp: 2;
164
- display: -webkit-box;
165
- -webkit-box-orient: vertical;
166
- font-size: 14px;
167
- max-width: 270px;
168
- }
169
-
170
- .comment-barrage-item .barrageContent h1, .comment-barrage-item .barrageContent h2, .comment-barrage-item .barrageContent h3, .comment-barrage-item .barrageContent h4 {
171
- font-size: 14px !important;
172
- font-weight: 400 !important;
173
- margin: 8px 0px !important;
174
- }