hexo-theme-solitude 1.7.7 → 1.7.8

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.
package/_config.yml CHANGED
@@ -510,8 +510,7 @@ music:
510
510
  # 音乐胶囊
511
511
  # capsule music
512
512
  capsule:
513
- enable:
514
- false
513
+ enable: false
515
514
  # 歌单id / playlist id
516
515
  id: 8407304077
517
516
  # 播放列表的服务商。netease:网易云 / tencent:腾讯 / kugou:酷狗 / xiami:小米 / baidu:百度
@@ -44,7 +44,7 @@ div
44
44
  script(src=url_for(theme.cdn.medium_zoom))
45
45
  if theme.fancybox
46
46
  script(src=url_for(theme.cdn.fancyapps_ui))
47
- if theme.says.home_mini
47
+ if (theme.says.home_mini && theme.says.enable) || theme.banner
48
48
  script(src=url_for(theme.cdn.swiper_js))
49
49
 
50
50
  if theme.post_ai.enable
@@ -90,13 +90,9 @@ div
90
90
  if theme.loading.pace
91
91
  script(src=url_for(theme.cdn.pace_js))
92
92
 
93
- if theme.search.enable
94
- case theme.search.type
95
- when 'algolia'
96
- script(src=url_for(theme.cdn.instantsearch))
97
- script(src=url_for(theme.cdn.algolia_search))
98
- when 'local'
99
- script(src=url_for(theme.cdn.lunr_js))
93
+ if theme.search.enable && theme.search.type === "algolia"
94
+ script(src=url_for(theme.cdn.instantsearch))
95
+ script(src=url_for(theme.cdn.algolia_search))
100
96
 
101
97
  if theme.extends.body
102
98
  each item in theme.extends.body
@@ -106,10 +102,10 @@ div#js-pjax
106
102
  if theme.mermaid
107
103
  script.
108
104
  mermaid.run();
109
- if is_home() && theme.says.home_mini
105
+ if is_home() && (theme.says.home_mini && theme.says.enable)
110
106
  script.
111
107
  sco.initbbtalk();
112
- if is_home() && theme.banner && site.posts.data.filter(item => item.recommend === true).slice(0,6) || false
108
+ if is_home() && theme.banner && site.posts.data.filter(item => item.recommend === true).slice(0, 6) || false
113
109
  script.
114
110
  banner_swiper()
115
111
  if page.type === 'says' && theme.says.enable
@@ -8,7 +8,7 @@ if theme.capsule.enable || theme.music.enable
8
8
  link(rel="stylesheet", href=url_for(theme.cdn.aplayer_css))
9
9
 
10
10
  // swiper
11
- if theme.says.home_mini
11
+ if (theme.says.home_mini && theme.says.enable) || theme.banner
12
12
  link(rel="stylesheet", href=url_for(theme.cdn.swiper_css))
13
13
 
14
14
  if theme.lightbox && theme.fancybox
@@ -111,7 +111,7 @@ script.
111
111
  )(window)
112
112
 
113
113
  console.log(
114
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.7.7",
114
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.7.8",
115
115
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
116
116
  "padding: 5px 10px;color:white;background:#3e9f50;",
117
117
  "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
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
4
+ if theme.hometop.enable || (theme.says.home_mini && theme.says.enable)
5
5
  #home_top
6
- if theme.says.home_mini
6
+ if theme.says.home_mini && theme.says.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,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the efu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
package/plugins.yml CHANGED
@@ -66,10 +66,6 @@ pace_js:
66
66
  other_name: pace
67
67
  file: pace.min.js
68
68
  version: 1.2.4
69
- lunr_js:
70
- name: lunr.js
71
- file: lunr.min.js
72
- version: 2.3.9
73
69
  swiper_css:
74
70
  name: Swiper
75
71
  file: swiper-bundle.min.css
@@ -28,13 +28,16 @@ div#swiper_container
28
28
 
29
29
  .swiper-button-prev, .swiper-button-next
30
30
  transition all .3s
31
+ border-radius 5px
31
32
  color var(--efu-main) !important
33
+ background var(--efu-maskbg)
34
+ opacity .5
32
35
 
33
36
  &:hover
37
+ opacity 1
34
38
  transition all .3s
35
- border-radius 5px
36
- color var(--efu-card-bg) !important
37
- background var(--efu-maskbg)
39
+ color var(--efu-white) !important
40
+ background var(--efu-main)
38
41
 
39
42
  .swiper-button-next::after, .swiper-button-prev::after
40
43
  font-size 1.5rem
@@ -322,10 +322,6 @@
322
322
  flex-wrap wrap
323
323
  height 120px
324
324
 
325
- .tags-group-icon-pair
326
- margin-left 1rem
327
- user-select none
328
-
329
325
  .banners-link-btn
330
326
  display flex
331
327
  flex-direction row
@@ -14,8 +14,4 @@ if hexo-config('hometop.enable')
14
14
  if hexo-config('banner')
15
15
  @import "banner.styl"
16
16
 
17
- @import "category-bar.styl"
18
-
19
- @import "recent-post.styl"
20
-
21
- @import "pagination.styl"
17
+ @import "category-bar.styl"
@@ -81,7 +81,7 @@ div#banners
81
81
  line-height 4rem
82
82
  font-weight 700
83
83
 
84
- .tags-group-all
84
+ /.tags-group-all
85
85
  display flex
86
86
 
87
87
  &.nowrapMove
@@ -1,5 +1,5 @@
1
1
  window.onload = () => {
2
- let idx, store = [];
2
+ let store = [];
3
3
  const $searchMask = document.getElementById("search-mask");
4
4
  const $searchDialog = document.querySelector("#local-search .search-dialog");
5
5
  window.openSearch = () => {
@@ -41,7 +41,7 @@ window.onload = () => {
41
41
 
42
42
  searchClickFn();
43
43
 
44
- function initLunr() {
44
+ function init() {
45
45
  fetch(GLOBAL_CONFIG.localsearch.path)
46
46
  .then(response => response.text())
47
47
  .then(data => {
@@ -59,16 +59,6 @@ window.onload = () => {
59
59
  'content': content
60
60
  });
61
61
  }
62
-
63
- idx = lunr(function () {
64
- this.ref('link');
65
- this.field('title', {boost: 10});
66
- this.field('content');
67
-
68
- store.forEach(function (doc) {
69
- this.add(doc);
70
- }, this);
71
- });
72
62
  })
73
63
  .catch(err => console.error("Error loading search data:", err));
74
64
  }
@@ -169,7 +159,7 @@ window.onload = () => {
169
159
  }
170
160
  paginationContainer.appendChild(paginationList);
171
161
  }
172
- initLunr();
162
+ init();
173
163
  initUI();
174
164
  window.addEventListener('DOMContentLoaded', (event) => {
175
165
  initUI();