hexo-theme-solitude 1.4.4 → 1.4.5

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.
@@ -50,7 +50,6 @@ div
50
50
  if theme.says.home_mini
51
51
  script(src=url_for(theme.cdn.swiper_js))
52
52
 
53
- // post-ai)
54
53
  if theme.post_ai.enable
55
54
  script(src=url_for(theme.cdn.sco_ai_js))
56
55
 
@@ -72,11 +71,9 @@ div
72
71
  }
73
72
  script(src=url_for(theme.cdn.cover_api))
74
73
 
75
- // waterfall
76
74
  if theme.says.enable
77
75
  script(src=url_for(theme.cdn.waterfall))
78
76
 
79
- // comment
80
77
  if theme.comment.enable
81
78
  case theme.comment.type
82
79
  when 'twikoo'
@@ -92,15 +89,12 @@ div
92
89
  when 'waline'
93
90
  script(src=url_for(theme.cdn.waline_commentBarrage))
94
91
 
95
- // music
96
92
  if theme.music.enable
97
93
  script(src=url_for(theme.cdn.music_js))
98
94
 
99
- // pace 胶囊加载条(Capsule loading bar)
100
95
  if theme.loading.pace
101
96
  script(src=url_for(theme.cdn.pace_js))
102
97
 
103
- // search
104
98
  if theme.search.enable
105
99
  case theme.search.type
106
100
  when 'algolia'
@@ -109,7 +103,6 @@ div
109
103
  when 'local'
110
104
  script(src=url_for(theme.cdn.lunr_js))
111
105
 
112
- // inject custom body
113
106
  if theme.extends.body
114
107
  each item in theme.extends.body
115
108
  != item
@@ -118,6 +111,9 @@ div#js-pjax
118
111
  if page.type === 'album' && theme.album.enable
119
112
  script.
120
113
  initGallery()
114
+ if is_home() && theme.says.home_mini
115
+ script.
116
+ sco.initbbtalk()
121
117
  if page.type === 'says' && theme.says.enable
122
118
  script.
123
119
  window.addEventListener('resize', utils.throttle(function () {
@@ -10,7 +10,4 @@ each item, i in site.data.essay.essay_list.slice(0, 10)
10
10
  if item.bilibili
11
11
  i.scoicon.sco-bilibili-line
12
12
  if item.link
13
- i.scoicon.sco-links
14
- script.
15
- document.addEventListener('DOMContentLoaded', sco.initbbtalk)
16
- document.addEventListener('pjax:complete', sco.initbbtalk)
13
+ i.scoicon.sco-links
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the DuoSco team",
5
5
  "main": "package.json",
6
6
  "scripts": {