hexo-theme-solitude 2.1.16 → 3.0.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 (61) hide show
  1. package/.github/workflows/npm-publish.yml +1 -1
  2. package/.github/workflows/release.yml +29 -0
  3. package/LICENSE +10 -18
  4. package/README.md +3 -1
  5. package/README_en-US.md +3 -1
  6. package/README_zh-Hant.md +3 -1
  7. package/_config.yml +28 -24
  8. package/languages/en.yml +0 -0
  9. package/languages/zh-CN.yml +0 -0
  10. package/languages/zh-TW.yml +0 -0
  11. package/layout/includes/footer.pug +10 -7
  12. package/layout/includes/head/config.pug +9 -9
  13. package/layout/includes/inject/body.pug +5 -5
  14. package/layout/includes/inject/head.pug +2 -2
  15. package/layout/includes/page/{says.pug → brevity.pug} +7 -7
  16. package/layout/includes/page/kit.pug +3 -0
  17. package/layout/includes/page/links.pug +5 -3
  18. package/layout/includes/widgets/aside/asideInfoCard.pug +18 -86
  19. package/layout/includes/widgets/home/banner.pug +8 -2
  20. package/layout/includes/widgets/home/bbTimeList.pug +4 -4
  21. package/layout/includes/widgets/page/about/contentinfo.pug +1 -1
  22. package/layout/includes/widgets/page/{equipment → kit}/content.pug +3 -2
  23. package/layout/includes/widgets/page/recentcomment/waline.pug +0 -1
  24. package/layout/index.pug +2 -2
  25. package/layout/page.pug +4 -6
  26. package/package.json +10 -10
  27. package/plugins.yml +1 -1
  28. package/scripts/event/cdn.js +45 -115
  29. package/scripts/event/merge_config.js +5 -7
  30. package/scripts/filter/checkThemeConfig.js +3 -3
  31. package/scripts/helper/stylus.js +1 -3
  32. package/source/css/_comments/twikoo.styl +1 -1
  33. package/source/css/{_layout → _components}/capsule.styl +47 -48
  34. package/source/css/_components/expire.styl +12 -0
  35. package/source/css/_components/index.styl +17 -0
  36. package/source/css/_components/keyboard.styl +59 -0
  37. package/source/css/_components/pace.styl +39 -0
  38. package/source/css/_components/rightside.styl +63 -0
  39. package/source/css/_components/universe.styl +17 -0
  40. package/source/css/_layout/aside.styl +162 -460
  41. package/source/css/_layout/footer.styl +7 -10
  42. package/source/css/_page/_about/contentinfo.styl +2 -2
  43. package/source/css/_page/_home/home.styl +1 -1
  44. package/source/css/_page/{says.styl → brevity.styl} +54 -53
  45. package/source/css/_page/error.styl +1 -1
  46. package/source/css/_page/index.styl +5 -8
  47. package/source/css/index.styl +4 -1
  48. package/source/css/var.styl +2 -0
  49. package/source/js/main.js +21 -7
  50. package/source/js/third_party/waterfall.min.js +1 -1
  51. package/.github/workflows/code-review-bot.yml +0 -28
  52. package/.github/workflows/issue_close_question.yml +0 -25
  53. package/layout/includes/page/equipment.pug +0 -2
  54. package/layout/includes/page/tlink.pug +0 -13
  55. package/scripts/tags/article.js +0 -56
  56. package/source/css/_layout/expire.styl +0 -13
  57. package/source/css/_layout/keyboard.styl +0 -60
  58. package/source/css/_layout/pace.styl +0 -40
  59. package/source/css/_layout/rightside.styl +0 -58
  60. package/source/css/_layout/universe.styl +0 -18
  61. package/source/css/_page/_gallery/index.styl +0 -38
@@ -17,4 +17,4 @@ jobs:
17
17
  registry-url: 'https://registry.npmjs.org'
18
18
  - run: npm publish
19
19
  env:
20
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,29 @@
1
+ # .github/workflows/release.yml
2
+
3
+ name: Release
4
+
5
+ permissions:
6
+ contents: write
7
+
8
+ on:
9
+ push:
10
+ tags:
11
+ - 'v*'
12
+
13
+ jobs:
14
+ release:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0
20
+
21
+ - name: Set node
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ registry-url: https://registry.npmjs.org/
25
+ node-version: lts/*
26
+
27
+ - run: npx changelogithub # or changelogithub@0.12 if ensure the stable result
28
+ env:
29
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
package/LICENSE CHANGED
@@ -1,21 +1,13 @@
1
- # MIT License
1
+ Copyright 2025 everly(@everfu)
2
2
 
3
- Copyright (c) 2024 everfu
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
4
6
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
7
+ http://www.apache.org/licenses/LICENSE-2.0
11
8
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md CHANGED
@@ -60,6 +60,8 @@
60
60
 
61
61
  ## 版权
62
62
 
63
+ > 二次创作请保留主题版权信息
64
+
63
65
  [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
64
66
 
65
- [MIT](./LICENSE) License © 2023-至今 [伍十七](https://github.com/everfu)
67
+ [Apache-2.0](./LICENSE) License © 2025-至今 [伍十七](https://github.com/everfu)
package/README_en-US.md CHANGED
@@ -60,6 +60,8 @@ Visit [Documentation](https://solitude.js.org/zh/) for more information.
60
60
 
61
61
  ## License
62
62
 
63
+ > Please retain the theme copyright information
64
+
63
65
  [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
64
66
 
65
- [MIT](./LICENSE) License © 2023-present [everfu](https://github.com/everfu)
67
+ [Apache-2.0](./LICENSE) License © 2025-present [everfu](https://github.com/everfu)
package/README_zh-Hant.md CHANGED
@@ -60,6 +60,8 @@
60
60
 
61
61
  ## 版權
62
62
 
63
+ > 二次創作請保留主題版權信息
64
+
63
65
  [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
64
66
 
65
- [MIT](./LICENSE) License © 2023-至今 [伍十七](https://github.com/everfu)
67
+ [Apache-2.0](./LICENSE) License © 2025-至今 [伍十七](https://github.com/everfu)
package/_config.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  # ---------------------------
2
2
  # Hexo Theme Solitude
3
- # Author: Ever Fu
3
+ # Author: 伍十七(@everfu)
4
4
  # Github: https://github.com/everfu/hexo-theme-solitude
5
5
  #
6
6
  # Guide: https://solitude.js.org
7
7
  # You can get more detailed help from the guide
8
- # 指南:https://solitude.js.org
8
+ # 指南:https://solitude.js.org/zh
9
9
  # 你可以从指南中获取更详细的帮助
10
10
  #
11
11
  # sponsor: https://ko-fi.com/everfu
@@ -21,7 +21,7 @@ site:
21
21
  name:
22
22
  class: text # text / i_class / img
23
23
  custom: Solitude # Solitude / fas fa-ghost / /img/pwa/favicon.ico
24
- icon: /img/pwa/favicon.ico # Site icon / 网站图标
24
+ icon: /img/pwa/favicon.png # Site icon / 网站图标
25
25
  # --------------------------- end ---------------------------
26
26
 
27
27
  # --------------------------- start ---------------------------
@@ -69,8 +69,11 @@ nav:
69
69
  hometop:
70
70
  enable: false
71
71
  banner:
72
- title: # 宁静致远 <br> 热爱生活 # 标题
73
- url: Hexo Theme Solitude # 小字
72
+ title: 分享技术<br >与科技生活 # 大字
73
+ desc: 一个热爱生活的人 # 小字
74
+ # - 我只是一个普通的程序员
75
+ # - 但我有一个不平凡的梦想
76
+ # - 我希望能够改变世界
74
77
  icon:
75
78
  # HTML: # name
76
79
  # img: https://i.postimg.cc/vBWVnY8q/html.png # url
@@ -129,28 +132,19 @@ aside:
129
132
  # --------------------------- start ---------------------------
130
133
  # Information card
131
134
  # 信息卡
132
- card:
133
- style: 0 # 0: default 1: style 1 2: style 2
135
+ my_card:
134
136
  author:
135
137
  img: /img/avatar.avif # url
136
138
  sticker: # url, 24x24 size
137
- url: /about/ # link / 点击头像跳转链接
138
- background: # https://s3.qjqq.cn/47/663af296b85f4.webp!color # Background image(Invalid if style is 0)
139
- # Content(Invalid if style is 0)
140
- # 内容(Style 0 无效)
139
+ # 内容 / Content
141
140
  content: # 这是我的博客 / This is my Blog
142
- content2: # 一个热爱生活的人 / A person who loves life
143
- # Style 2 is invalid
144
- # Style 2 无效
145
- sayhello:
141
+ state:
146
142
  morning: ✨ 早上好,新的一天开始了
147
143
  noon: 🍲 午餐时间
148
144
  afternoon: 🌞 下午好
149
145
  night: 早点休息
150
146
  goodnight: 晚安 😴
151
- # Style 2 is invalid, Triggered when sayhello is clicked.
152
- # Style 2 无效, 点击 sayhello 时触发
153
- sayhello2:
147
+ witty_words:
154
148
  # - 你可以的
155
149
  # - 你一定可以的
156
150
  # - 祝你好运,陌生人
@@ -380,7 +374,7 @@ font:
380
374
  code-font-size: 16px
381
375
  # Global font
382
376
  # 全局字体
383
- font-family: "PingFang SC, Hiragino Sans GB, Microsoft YaHei"
377
+ font-family: "PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif"
384
378
  # Code font
385
379
  # 代码字体
386
380
  code-font-family: '"monospace", monospace'
@@ -548,7 +542,7 @@ rightside:
548
542
  # Footer
549
543
  # 页脚
550
544
  footer:
551
- # 信息社交图标
545
+ # 社交图标
552
546
  information:
553
547
  author: false # img url / false
554
548
  left:
@@ -557,6 +551,7 @@ footer:
557
551
  right:
558
552
  # Bilibili: https://space.bilibili.com/1329819902 || fab fa-bilibili
559
553
  # Douyin: https://v.douyin.com/iJsLc8jt/ || fab fa-tiktok
554
+ # 友情链接
560
555
  group:
561
556
  # 导航:
562
557
  # Archives: /archives/
@@ -569,8 +564,6 @@ footer:
569
564
 
570
565
  # 随机友链
571
566
  randomlink: false # 随机友链
572
- # 许可证
573
- license: # https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans # 许可证
574
567
 
575
568
  # 备案
576
569
  beian:
@@ -587,6 +580,16 @@ footer:
587
580
  url: https://github.com/everfu/hexo-theme-solitude
588
581
  # - name: RSS
589
582
  # url: /atom.xml
583
+ # - name: License
584
+ # url: https://github.com/everfu/hexo-theme-solitude/blob/main/LICENSE
585
+ # icon:
586
+ # - fas fa-copyright
587
+ # - fab fa-creative-commons-by
588
+ # - fab fa-creative-commons-nc
589
+ # - fab fa-creative-commons-nd
590
+ # - name: boringbay
591
+ # url: https://boringbay.com/
592
+ # img: https://boringbay.com/api/badge/www.efu.me
590
593
  # --------------------------- end ---------------------------
591
594
 
592
595
  # --------------------------- start ---------------------------
@@ -916,11 +919,12 @@ envelope:
916
919
  # --------------------------- end ---------------------------
917
920
 
918
921
  # --------------------------- start ---------------------------
919
- # Says Page
922
+ # Brevity Page
920
923
  # 即可短文
921
- says:
924
+ brevity:
922
925
  enable: false
923
926
  home_mini: false
927
+ music: false
924
928
  page: /essay/
925
929
  style: 1
926
930
  strip: 30
package/languages/en.yml CHANGED
File without changes
File without changes
File without changes
@@ -70,12 +70,15 @@ div#footer-bar
70
70
 
71
71
  div.footer-bar-right
72
72
  each item in theme.footer.links
73
- a.footer-bar-link(href=url_for(item.url), alt=item.name)!= item.name
74
- if theme.footer.license
75
- a.footer-bar-link.cc(href=url_for(theme.footer.license))
76
- i.solitude.fa-solid.fa-copyright
77
- i.solitude.fa-brands.fa-creative-commons-by
78
- i.solitude.fa-brands.fa-creative-commons-nc
79
- i.solitude.fa-brands.fa-creative-commons-nd
73
+ if item.icon
74
+ a.footer-bar-link(href=url_for(item.url), alt=item.name)
75
+ each icon in item.icon
76
+ i.solitude(class=icon)
77
+ else if item.img
78
+ a.footer-bar-link(href=url_for(item.url), alt=item.name)
79
+ img(src=url_for(item.img), alt=item.name)
80
+ else
81
+ a.footer-bar-link(href=url_for(item.url), alt=item.name)!= item.name
82
+
80
83
  if theme.comment.use && theme.comment.commentBarrage
81
84
  div.comment-barrage.needEndHide
@@ -22,7 +22,7 @@
22
22
  }
23
23
  }
24
24
 
25
- const sayhello2 = theme.aside?.card?.sayhello2?.map(item => `"${item}"`) || [];
25
+ const witty_words = theme.aside?.my_card?.witty_words?.map(item => `"${item}"`) || [];
26
26
  const [hello_prefix, hello_back] = [_p('aside.hello'), _p('aside.back')];
27
27
 
28
28
  let comment = false
@@ -173,15 +173,15 @@ script.
173
173
  randomlink: !{theme.footer.randomlink},
174
174
  lang: !{JSON.stringify(lang)},
175
175
  aside: {
176
- sayhello: {
177
- morning: "!{theme.aside.card.sayhello.morning}",
178
- noon: "!{theme.aside.card.sayhello.noon}",
179
- afternoon: "!{theme.aside.card.sayhello.afternoon}",
180
- night: "!{theme.aside.card.sayhello.night}",
181
- goodnight: "!{theme.aside.card.sayhello.goodnight}",
176
+ state: {
177
+ morning: "!{theme.aside.my_card.state.morning}",
178
+ noon: "!{theme.aside.my_card.state.noon}",
179
+ afternoon: "!{theme.aside.my_card.state.afternoon}",
180
+ night: "!{theme.aside.my_card.state.night}",
181
+ goodnight: "!{theme.aside.my_card.state.goodnight}",
182
182
  },
183
- sayhello2: [!{sayhello2}],
184
- sayhello3: {
183
+ witty_words: [!{witty_words}],
184
+ witty_comment: {
185
185
  prefix: '!{hello_prefix}',
186
186
  back: '!{hello_back}',
187
187
  },
@@ -25,7 +25,7 @@ div
25
25
  if theme.chart
26
26
  script(src=url_for(theme.cdn.chart_js))
27
27
 
28
- if theme.typeit
28
+ if theme.typeit || typeof theme.hometop.banner.desc === 'object'
29
29
  script(src=url_for(theme.cdn.typeit_js))
30
30
 
31
31
  if theme.display_mode.universe
@@ -50,13 +50,13 @@ div
50
50
  script(src=url_for(theme.cdn.medium_zoom))
51
51
  if theme.fancybox
52
52
  script(src=url_for(theme.cdn.fancyapps_ui))
53
- if (theme.says.home_mini && theme.says.enable) || theme.carousel
53
+ if (theme.brevity.home_mini && theme.brevity.enable) || theme.carousel
54
54
  script(src=url_for(theme.cdn.swiper_js))
55
55
 
56
56
  if theme.post_ai.enable
57
57
  script(src=url_for(theme.cdn.post_ai))
58
58
 
59
- if theme.capsule.enable || theme.music.enable || theme.says.enable
59
+ if theme.capsule.enable || theme.music.enable || theme.brevity.enable && theme.brevity.music
60
60
  script.
61
61
  var meting_api = '!{theme.meting_api}';
62
62
  script(src=url_for(theme.cdn.aplayer_js))
@@ -96,10 +96,10 @@ div
96
96
  != item
97
97
 
98
98
  .js-pjax
99
- if is_home() && theme.says.enable && theme.says.home_mini
99
+ if is_home() && theme.brevity.enable && theme.brevity.home_mini
100
100
  script.
101
101
  sco.initbbtalk()
102
- if page.type === 'says' && theme.says.enable
102
+ if page.type === 'brevity' && theme.brevity.enable
103
103
  script.
104
104
  GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
105
105
  sco.changeTimeFormat(document.querySelectorAll('.bber-info-time time'))
@@ -5,11 +5,11 @@ link(rel="canonical" href=urlNoIndex())
5
5
  link(rel="stylesheet", href=url_for(theme.cdn.fontawesome))
6
6
 
7
7
  // aplayer
8
- if theme.capsule.enable || theme.music.enable || theme.says.enable
8
+ if theme.capsule.enable || theme.music.enable || theme.brevity.enable && theme.brevity.music
9
9
  link(rel="stylesheet", href=url_for(theme.cdn.aplayer_css))
10
10
 
11
11
  // swiper
12
- if (theme.says.home_mini && theme.says.enable) || theme.carousel
12
+ if (theme.brevity.home_mini && theme.brevity.enable) || theme.carousel
13
13
  link(rel="stylesheet", href=url_for(theme.cdn.swiper_css))
14
14
 
15
15
  // fancybox ui
@@ -1,13 +1,13 @@
1
1
  include ../widgets/page/banner
2
- if theme.says.enable
2
+ if theme.brevity.enable
3
3
  #bber
4
4
  section.timeline.page-1
5
5
  ul.list.waterfall
6
- each item in site.data.essay.essay_list.slice(0, theme.says.strip)
6
+ each item in site.data.brevity.slice(0, theme.brevity.strip)
7
7
  li.item
8
- if theme.says.style === 2
8
+ if theme.brevity.style === 2
9
9
  .meta
10
- img.avatar(src=theme.aside.card.author.img)
10
+ img.avatar(src=theme.aside.my_card.author.img)
11
11
  .info
12
12
  span.bber_nick= config.author
13
13
  time.datetime.bber_date(datetime=moment(item.date).format())
@@ -33,7 +33,7 @@ if theme.says.enable
33
33
  if item.video.bilibili
34
34
  iframe(src='//player.bilibili.com/player.html?autoplay=0&bvid=' + item.video.bilibili scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true")
35
35
 
36
- if theme.says.style === 1
36
+ if theme.brevity.style === 1
37
37
  hr
38
38
  .bber-bottom
39
39
  .bber-info
@@ -52,7 +52,7 @@ if theme.says.enable
52
52
  a.bber-reply(onclick=`sco.toTalk('${item.content}')`)
53
53
  i.solitude.fa-solid.fa-comment
54
54
  #bber-tips
55
- if theme.says.strip === -1
55
+ if theme.brevity.strip === -1
56
56
  = _p('essay.tip0')
57
57
  else
58
- = _p('essay.tip1').replace('#{count}', theme.says.strip)
58
+ = _p('essay.tip1').replace('#{count}', theme.brevity.strip)
@@ -0,0 +1,3 @@
1
+ if page.banner
2
+ include ../widgets/page/banner
3
+ include ../widgets/page/kit/content
@@ -1,7 +1,9 @@
1
- .flink#banners
2
- include ../widgets/page/links/banner
1
+ - var $data = page.data
2
+ if page.banner
3
+ .flink#banners
4
+ include ../widgets/page/links/banner
3
5
  .flink.article-container
4
- each data in site.data.links.links
6
+ each data in site.data[$data].links
5
7
  h2= data.class_name + " (" + data.link_list.length + ")"
6
8
  .flink-desc= data.descr
7
9
  case data.type
@@ -1,89 +1,21 @@
1
- - const {style ,url} = theme.aside.card
2
1
  .card-widget.card-info
3
2
  .card-content
4
- case style
5
- when 0
6
- .card-info-avatar.is-center
7
- .author-info__top-group
8
- .author-info__sayhi#author-info__sayhi(onclick="sco.changeSayHelloText()")= _p('sayhello.morning')
9
- .avatar-img-group
10
- img.avatar-img(alt=_p('aside.avatar'), src=theme.aside.card.author.img)
11
- if theme.aside.card.author.sticker
12
- .avatar-sticker
13
- img.avatar-sticker-img(src=theme.aside.card.author.sticker, alt=_p('aside.sticker'))
14
- .author-info__description_group
15
- .author-info__description!= theme.aside.card.content
16
- .author-info__description2!= theme.aside.card.content2
17
- .author-info__bottom-group
18
- a.author-info__bottom-group-left(href=url_for(theme.aside.card.url))
19
- .author-info__name= config.author
20
- .author-info__desc!= config.subtitle
21
- .card-info-social-icons.is-center
22
- each value, label in theme.aside.card.information || {}
23
- - var array = value.split('||')
24
- a.social-icon(href=url_for(trim(array[0])), title=label)
25
- i.solitude(class=array[1])
26
- when 1
27
- .card-info-bg-top
28
- .is-center
29
- .author-info__top-group
30
- .author-info__sayhi#author-info__sayhi(onclick="sco.changeSayHelloText()")= _p('sayhello.morning')
31
- a.card-info-avatar(href=url_for(theme.aside.card.url) title=_p('aside.avatar'))
32
- .avatar-img
33
- img(src=theme.aside.card.author.img alt=_p('aside.avatar'))
34
- if theme.aside.card.author.sticker
35
- .avatar-sticker
36
- img.avatar-sticker-img(src=theme.aside.card.author.sticker, alt=_p('aside.sticker'))
37
- .card-info__desc_group
38
- .author-info__name= config.author
39
- .author-info__desc!= config.subtitle
40
-
41
- .card-info__data.is-center
42
- if site.posts.length !== 0
43
- a(href=url_for('/archives/') title=_p('aside.card.posts') + site.posts.length)
44
- .length-num= site.posts.length
45
- .headline= _p('page.archives')
46
- if site.tags.length !== 0 || theme.page.tags
47
- a(href=url_for('/tags/') title=_p('aside.card.tags') + site.tags.length)
48
- .length-num= site.tags.length
49
- .headline= _p('page.tag')
50
- if site.categories.length !== 0 || theme.page.categories
51
- a(href=url_for('/categories/') title=_p('aside.card.categories') + site.categories.length)
52
- .length-num= site.categories.length
53
- .headline= _p('page.category')
54
-
55
- .card-info-social-icons.is-center
56
- each value, label in theme.aside.card.information || {}
57
- - var array = value.split('||')
58
- a.social-icon(href=url_for(trim(array[0])), title=label)
59
- i.solitude(class=array[1])
60
- when 2
61
- .card-info-bg-top
62
- .author-info-social
63
- .social-icons
64
- each value, label in theme.aside.card.information || {}
65
- - var array = value.split('||')
66
- a.social-icon(href=url_for(trim(array[0])), title=label)
67
- i.solitude(class=array[1])
68
- span.more-info(onclick="document.querySelector('.social-icons').classList.toggle('show')")
69
- i.solitude.fa-solid.fa-ellipsis-vertical
70
- a.card-info-avatar(href=url_for(theme.aside.card.url) title=_p('aside.avatar'))
71
- .avatar-img
72
- img(src=theme.aside.card.author.img alt=_p('aside.avatar'))
73
- if theme.aside.card.author.sticker
74
- .avatar-sticker
75
- img.avatar-sticker-img(src=theme.aside.card.author.sticker, alt=_p('aside.sticker'))
3
+ .card-info-avatar.is-center
4
+ .author-info__top-group
5
+ .author-info__sayhi#author-info__sayhi(onclick="sco.changeWittyWord()")
6
+ .avatar-img-group
7
+ img.avatar-img(alt=_p('aside.avatar'), src=theme.aside.my_card.author.img)
8
+ if theme.aside.my_card.author.sticker
9
+ .avatar-sticker
10
+ img.avatar-sticker-img(src=theme.aside.my_card.author.sticker, alt=_p('aside.sticker'))
11
+ .author-info__description_group
12
+ .author-info__description!= theme.aside.my_card.content
13
+ .author-info__bottom-group
14
+ span.author-info__bottom-group-left
76
15
  .author-info__name= config.author
77
- .card-info__data.is-center
78
- a(href=url_for('/archives/') title=_p('aside.card.posts') + site.posts.length)
79
- .length-num= site.posts.length
80
- .headline= _p('page.archives')
81
- a(href=url_for('/tags/') title=_p('aside.card.tags') + site.tags.length)
82
- .length-num= site.tags.length
83
- .headline= _p('page.tag')
84
- a(href=url_for('/categories/') title=_p('aside.card.categories') + site.categories.length)
85
- .length-num= site.categories.length
86
- .headline= _p('page.category')
87
- .card-info__desc_group
88
- .author-info__description!= theme.aside.card.content
89
- .author-info__description2!= theme.aside.card.content2
16
+ .author-info__desc!= config.subtitle
17
+ .card-info-social-icons.is-center
18
+ each value, label in theme.aside.my_card.information || {}
19
+ - var array = value.split('||')
20
+ a.social-icon(href=url_for(trim(array[0])), title=label)
21
+ i.solitude(class=array[1])
@@ -1,8 +1,14 @@
1
- - const { title, url, icon} = theme.hometop.banner
1
+ - const { title, desc, icon} = theme.hometop.banner
2
2
 
3
3
  div.banners-title
4
4
  div.banners-title-big!= title
5
- div.banners-title-small= url
5
+ if typeof(desc) === 'object'
6
+ div.banners-title-small
7
+ script.
8
+ var home_subtitle = !{JSON.stringify(desc || [])};
9
+ else
10
+ div.banners-title-small= desc
11
+
6
12
  - var group = theme.hometop.group
7
13
  if group
8
14
  div.banners-links
@@ -1,8 +1,8 @@
1
1
  .bbTimeList.container#bbTimeList(class=is_home_first_page() ? '' : 'more-page')
2
- i.bber-logo.solitude.fa-solid.fa-newspaper(onclick=`pjax.loadUrl('${url_for(theme.says.page)}')`)
3
- .swiper-container.swiper-no-swiping.swiper-container-initialized.swiper-container-vertical.swiper-container-pointer-events#bbtalk(tabindex="-1" onclick=`pjax.loadUrl('${url_for(theme.says.page)}')`)
2
+ i.bber-logo.solitude.fa-solid.fa-newspaper(onclick=`pjax.loadUrl('${url_for(theme.brevity.page)}')`)
3
+ .swiper-container.swiper-no-swiping.swiper-container-initialized.swiper-container-vertical.swiper-container-pointer-events#bbtalk(tabindex="-1" onclick=`pjax.loadUrl('${url_for(theme.brevity.page)}')`)
4
4
  .swiper-wrapper#bber-talk
5
- each item, i in site.data.essay.essay_list.slice(0, 10)
5
+ each item, i in site.data.brevity.slice(0, 10)
6
6
  .li-style.swiper-slide
7
7
  | #{item.content}
8
8
  if item.image
@@ -13,4 +13,4 @@
13
13
  i.solitude.fa-solid.fa-video
14
14
  else if item.link
15
15
  i.solitude.fa-solid.fa-link
16
- i.bber-gotobb.solitude.fa-solid.fa-circle-chevron-right(title=_p('home.bbtime.text') onclick=`pjax.loadUrl('${url_for(theme.says.page)}')`)
16
+ i.bber-gotobb.solitude.fa-solid.fa-circle-chevron-right(title=_p('home.bbtime.text') onclick=`pjax.loadUrl('${url_for(theme.brevity.page)}')`)
@@ -2,7 +2,7 @@
2
2
 
3
3
  if contentinfo
4
4
  .author-content
5
- .author-content-item.myInfoAndSayHello
5
+ .author-content-item.myInfoAndWittyWord
6
6
  .title1= contentinfo.sup
7
7
  .title2
8
8
  span.inline-word= contentinfo.name
@@ -1,6 +1,7 @@
1
+ - var $data = page.data
1
2
  #equipment
2
- if site.data.equipment
3
- each i in site.data.equipment
3
+ if $data
4
+ each i in site.data[$data]
4
5
  .equipment-item
5
6
  h2.equipment-item-title= i.class_name
6
7
  .equipment-item-description= i.description
@@ -10,7 +10,6 @@ script(pjax).
10
10
  let ls = []
11
11
  await fetch('!{theme.waline.envId}/api/comment?type=recent&count=!{limit}', {method: 'GET'}).then(async res => res.json())
12
12
  .then(async data => {
13
- console.log(data)
14
13
  for (const i of data.data) {
15
14
  let title = ''
16
15
  if (i.url) {
package/layout/index.pug CHANGED
@@ -1,9 +1,9 @@
1
1
  extends includes/layout
2
2
 
3
3
  block content
4
- if theme.hometop.enable || (theme.says.home_mini && theme.says.enable)
4
+ if theme.hometop.enable || (theme.brevity.home_mini && theme.brevity.enable)
5
5
  #home_top
6
- if theme.says.home_mini && theme.says.enable
6
+ if theme.brevity.home_mini && theme.brevity.enable
7
7
  include ./includes/widgets/home/bbTimeList
8
8
  if theme.hometop.enable && is_home_first_page()
9
9
  include ./includes/widgets/home/hometop
package/layout/page.pug CHANGED
@@ -10,14 +10,12 @@ block content
10
10
  include includes/page/tags
11
11
  when 'links'
12
12
  include includes/page/links
13
- when 'tlink'
14
- include includes/page/tlink
15
13
  when 'about'
16
14
  include includes/page/about
17
- when 'says'
18
- include includes/page/says
19
- when 'equipment'
20
- include includes/page/equipment
15
+ when 'brevity'
16
+ include includes/page/brevity
17
+ when 'kit'
18
+ include includes/page/kit
21
19
  when 'music'
22
20
  include includes/page/music
23
21
  when 'message'