hexo-theme-solitude 3.0.0 → 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 (46) 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 +19 -18
  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 +4 -4
  14. package/layout/includes/inject/head.pug +2 -2
  15. package/layout/includes/page/brevity.pug +7 -7
  16. package/layout/includes/widgets/aside/asideInfoCard.pug +18 -86
  17. package/layout/includes/widgets/home/banner.pug +0 -1
  18. package/layout/includes/widgets/home/bbTimeList.pug +4 -4
  19. package/layout/includes/widgets/page/about/contentinfo.pug +1 -1
  20. package/layout/includes/widgets/page/recentcomment/waline.pug +0 -1
  21. package/layout/index.pug +2 -2
  22. package/package.json +10 -10
  23. package/scripts/event/merge_config.js +4 -6
  24. package/scripts/filter/checkThemeConfig.js +3 -3
  25. package/scripts/helper/stylus.js +1 -1
  26. package/source/css/{_layout → _components}/capsule.styl +47 -48
  27. package/source/css/_components/expire.styl +12 -0
  28. package/source/css/_components/index.styl +17 -0
  29. package/source/css/_components/keyboard.styl +59 -0
  30. package/source/css/_components/pace.styl +39 -0
  31. package/source/css/_components/rightside.styl +63 -0
  32. package/source/css/_components/universe.styl +17 -0
  33. package/source/css/_layout/aside.styl +162 -460
  34. package/source/css/_layout/footer.styl +6 -9
  35. package/source/css/_page/_about/contentinfo.styl +1 -1
  36. package/source/css/_page/_home/home.styl +1 -1
  37. package/source/css/_page/{says.styl → brevity.styl} +54 -53
  38. package/source/css/_page/index.styl +2 -2
  39. package/source/css/index.styl +4 -1
  40. package/source/css/var.styl +2 -0
  41. package/source/js/main.js +7 -7
  42. package/source/css/_layout/expire.styl +0 -13
  43. package/source/css/_layout/keyboard.styl +0 -60
  44. package/source/css/_layout/pace.styl +0 -40
  45. package/source/css/_layout/rightside.styl +0 -58
  46. package/source/css/_layout/universe.styl +0 -18
@@ -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
@@ -132,28 +132,19 @@ aside:
132
132
  # --------------------------- start ---------------------------
133
133
  # Information card
134
134
  # 信息卡
135
- card:
136
- style: 0 # 0: default 1: style 1 2: style 2
135
+ my_card:
137
136
  author:
138
137
  img: /img/avatar.avif # url
139
138
  sticker: # url, 24x24 size
140
- url: /about/ # link / 点击头像跳转链接
141
- background: # https://s3.qjqq.cn/47/663af296b85f4.webp!color # Background image(Invalid if style is 0)
142
- # Content(Invalid if style is 0)
143
- # 内容(Style 0 无效)
139
+ # 内容 / Content
144
140
  content: # 这是我的博客 / This is my Blog
145
- content2: # 一个热爱生活的人 / A person who loves life
146
- # Style 2 is invalid
147
- # Style 2 无效
148
- sayhello:
141
+ state:
149
142
  morning: ✨ 早上好,新的一天开始了
150
143
  noon: 🍲 午餐时间
151
144
  afternoon: 🌞 下午好
152
145
  night: 早点休息
153
146
  goodnight: 晚安 😴
154
- # Style 2 is invalid, Triggered when sayhello is clicked.
155
- # Style 2 无效, 点击 sayhello 时触发
156
- sayhello2:
147
+ witty_words:
157
148
  # - 你可以的
158
149
  # - 你一定可以的
159
150
  # - 祝你好运,陌生人
@@ -551,7 +542,7 @@ rightside:
551
542
  # Footer
552
543
  # 页脚
553
544
  footer:
554
- # 信息社交图标
545
+ # 社交图标
555
546
  information:
556
547
  author: false # img url / false
557
548
  left:
@@ -560,6 +551,7 @@ footer:
560
551
  right:
561
552
  # Bilibili: https://space.bilibili.com/1329819902 || fab fa-bilibili
562
553
  # Douyin: https://v.douyin.com/iJsLc8jt/ || fab fa-tiktok
554
+ # 友情链接
563
555
  group:
564
556
  # 导航:
565
557
  # Archives: /archives/
@@ -572,8 +564,6 @@ footer:
572
564
 
573
565
  # 随机友链
574
566
  randomlink: false # 随机友链
575
- # 许可证
576
- license: # https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans # 许可证
577
567
 
578
568
  # 备案
579
569
  beian:
@@ -590,6 +580,16 @@ footer:
590
580
  url: https://github.com/everfu/hexo-theme-solitude
591
581
  # - name: RSS
592
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
593
593
  # --------------------------- end ---------------------------
594
594
 
595
595
  # --------------------------- start ---------------------------
@@ -919,11 +919,12 @@ envelope:
919
919
  # --------------------------- end ---------------------------
920
920
 
921
921
  # --------------------------- start ---------------------------
922
- # Says Page
922
+ # Brevity Page
923
923
  # 即可短文
924
- says:
924
+ brevity:
925
925
  enable: false
926
926
  home_mini: false
927
+ music: false
927
928
  page: /essay/
928
929
  style: 1
929
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
  },
@@ -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)
@@ -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])
@@ -2,7 +2,6 @@
2
2
 
3
3
  div.banners-title
4
4
  div.banners-title-big!= title
5
- - console.log(typeof(desc))
6
5
  if typeof(desc) === 'object'
7
6
  div.banners-title-small
8
7
  script.
@@ -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
@@ -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/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
6
  "keywords": [
10
7
  "hexo",
11
8
  "theme",
12
9
  "solitude",
13
10
  "Card UI Design",
14
- "everfu",
15
- "伍十七",
11
+ "@everfu",
12
+ "everly",
16
13
  "hexo-theme-solitude"
17
14
  ],
18
15
  "repository": {
@@ -25,9 +22,12 @@
25
22
  },
26
23
  "bugs": {
27
24
  "url": "https://github.com/everfu/hexo-theme-solitude/issues",
28
- "email": "o@everfu.org"
25
+ "email": "o@efu.me"
29
26
  },
30
27
  "homepage": "https://solitude.js.org",
31
- "author": "Hexo-Theme-Solitude<o@everfu.org>",
32
- "license": "MIT"
33
- }
28
+ "author": "Hexo-Theme-Solitude<o@efu.me>",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "test": "echo \"Error: no test specified\" && exit 1"
32
+ }
33
+ }
@@ -37,23 +37,20 @@ hexo.extend.filter.register('before_generate', () => {
37
37
  post: { noSticky: 'about', Sticky: 'allInfo' },
38
38
  page: { noSticky: 'about', Sticky: 'allInfo' },
39
39
  card: {
40
- style: 0,
41
40
  author: {
42
41
  img: '/img/logo.png',
43
42
  sticker: '/img/happy-sticker.avif',
44
43
  },
45
44
  url: '/about/',
46
- background: null,
47
45
  content1: 'Solitude',
48
- content2: 'A simple theme for Hexo',
49
- sayhello: {
46
+ state: {
50
47
  morning: 'Good Morning',
51
48
  noon: 'Good Noon',
52
49
  afternoon: 'Good Afternoon',
53
50
  night: 'Good Night',
54
51
  goodnight: 'Good Night',
55
52
  },
56
- sayhello2: ['Welcome to Solitude', 'A simple theme for Hexo', 'Enjoy your time', 'Have a nice day', 'Good luck'],
53
+ witty_words: [],
57
54
  information: null,
58
55
  },
59
56
  flip: {
@@ -171,8 +168,9 @@ hexo.extend.filter.register('before_generate', () => {
171
168
  text: '404 Not Found',
172
169
  recommendList: true
173
170
  },
174
- says: {
171
+ brevity: {
175
172
  enable: false,
173
+ music: false,
176
174
  home_mini: false,
177
175
  style: 1,
178
176
  strip: 30
@@ -4,9 +4,9 @@ hexo.extend.filter.register('before_post_render', () => {
4
4
  const data = hexo.locals.get('data');
5
5
  const logger = hexo.log;
6
6
  const theme = hexo.theme.config;
7
- if (theme.says.enable && !data.essay) {
8
- logger.error('\n 启用即刻短文的情况下,请新建 essay.yaml。');
9
- logger.error('\n If says is enabled, essay data must be supplied! \n Please create essay.yaml.');
7
+ if (theme.brevity.enable && !data.brevity) {
8
+ logger.error('\n 启用即刻短文的情况下,请新建 brevity.yaml。');
9
+ logger.error('\n If brevity is enabled, brevity data must be supplied! \n Please create brevity.yaml.');
10
10
  process.exit(-1);
11
11
  }
12
12
  if (theme.footer.randomlink && !data.links){
@@ -2,7 +2,7 @@ hexo.extend.filter.register('stylus:renderer', function (style) {
2
2
  const {config, theme} = this;
3
3
  const data = hexo.locals.get('data');
4
4
 
5
- style.define('$about', data && data.about ? Object.keys(data.about) : false);
5
+ style.define('$about', data && data.about ? Object.keys(data.about) : {});
6
6
 
7
7
  // highlight
8
8
  const {syntax_highlighter: syntaxHighlighter, highlight, prismjs} = hexo.config