hexo-theme-solitude 1.7.9 → 1.7.10

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
@@ -811,30 +811,35 @@ google_adsense:
811
811
  right_menu:
812
812
  enable: false
813
813
  commentBarrage: false # 是否显示热评开关 / Whether to display the hot comment switch.
814
- translate: # 翻译功能(仅支持简繁)/ Translation function (Simplified and Traditional Chinese only)
814
+ # 翻译功能(仅支持简繁)
815
+ # Translation function (Simplified and Traditional Chinese only)
816
+ translate:
815
817
  enable: false
816
818
  defaultEncoding: 2 # 1: 默认繁体 2: 默认简体
817
- translateDelay: 0 # 翻译迟疑时间
818
- # 自定义菜单项列表 / Customize the list of menu items.
819
+ translateDelay: 0 # 首次加载翻译迟疑时间
820
+ # 自定义菜单项列表
821
+ # Customize the list of menu items.
819
822
  custom_list:
820
823
  # - name: 随机短文
821
- # url:
822
824
  # click: toRandomPost()
823
825
  # id: menu-randomPost
824
826
  # class:
825
827
  # icon: st-signal-tower-fill
826
828
  # - name: 全部分类
827
- # url: /categories/
828
- # click:
829
+ # click: pjax.loadUrl('/categories/') # 外链用 window.open,pjax 无法请求跨域内容
829
830
  # id:
830
831
  # class:
831
832
  # icon: st-checkbox-multiple-blank-fill
832
833
  # - name: 全部标签
833
- # url: /tags/
834
- # click:
834
+ # click: pjax.loadUrl('/tags/')
835
835
  # id:
836
836
  # class:
837
837
  # icon: st-price-tag-fill
838
+ # - name: 赞助主题
839
+ # click: window.open('https://afdian.net/a/efu0u0/', '_blank')
840
+ # id:
841
+ # class:
842
+ # icon: st-afdian-line
838
843
 
839
844
  # CDN
840
845
  # Don't modify the following settings unless you know how they work
@@ -13,6 +13,8 @@ mixin katex
13
13
  div
14
14
  script(src=url_for(theme.cdn.main))
15
15
  script(src=url_for(theme.cdn.utils))
16
+ script(src=url_for(theme.cdn.waterfall))
17
+ script(src=url_for(theme.cdn.pjax))
16
18
 
17
19
  if theme.comment.enable && theme.comment.type === 'valine'
18
20
  // md5
@@ -35,7 +37,6 @@ div
35
37
  else if page.katex
36
38
  +katex
37
39
 
38
- script(src=url_for(theme.cdn.pjax))
39
40
  if theme.lazyload.enable
40
41
  script(src=url_for(theme.cdn.lazyload))
41
42
  script(src=url_for(theme.cdn.snackbar))
@@ -68,9 +69,6 @@ div
68
69
  }
69
70
  script(src=url_for(theme.cdn.cover_api))
70
71
 
71
- if theme.says.enable
72
- script(src=url_for(theme.cdn.waterfall))
73
-
74
72
  if theme.comment.enable
75
73
  case theme.comment.type
76
74
  when 'twikoo'
@@ -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.9",
114
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.7.10",
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;"
@@ -52,7 +52,7 @@ div#rightMenu
52
52
  span= _p('right_menu.music.copyMusicName')
53
53
  div.rightMenu-group.rightMenu-line.rightMenuOther
54
54
  each item,index in custom_list
55
- a.rightMenu-item(id=item.id class=item.class href=item.href onclick=item.click)
55
+ div.rightMenu-item(id=item.id class=item.class onclick=item.click+'||rm.hideRightMenu()')
56
56
  i.solitude(class=item.icon)
57
57
  span= item.name
58
58
  div.rightMenu-group.rightMenu-line.rightMenuOther
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.7.9",
3
+ "version": "1.7.10",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the efu.",
5
5
  "main": "package.json",
6
6
  "scripts": {