hexo-theme-solitude 1.6.0 → 1.6.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 (57) hide show
  1. package/_config.yml +20 -36
  2. package/languages/en.yml +45 -63
  3. package/languages/zh-CN.yml +32 -55
  4. package/languages/zh-TW.yml +32 -55
  5. package/layout/404.pug +1 -1
  6. package/layout/includes/console.pug +5 -5
  7. package/layout/includes/footer.pug +6 -6
  8. package/layout/includes/head/config.pug +15 -9
  9. package/layout/includes/head/opengraph.pug +2 -2
  10. package/layout/includes/head/pwa.pug +6 -6
  11. package/layout/includes/head.pug +1 -1
  12. package/layout/includes/inject/body.pug +0 -4
  13. package/layout/includes/inject/head.pug +1 -1
  14. package/layout/includes/keyboard.pug +1 -1
  15. package/layout/includes/nav.pug +1 -1
  16. package/layout/includes/sidebar.pug +19 -3
  17. package/layout/includes/widgets/home/categoryBar.pug +2 -2
  18. package/layout/includes/widgets/home/postList.pug +4 -4
  19. package/layout/includes/widgets/home/topGroup.pug +2 -2
  20. package/layout/includes/widgets/nav/group.pug +2 -2
  21. package/layout/includes/widgets/nav/right.pug +1 -1
  22. package/layout/includes/widgets/page/about/award.pug +8 -9
  23. package/layout/includes/widgets/page/about/hobbies.pug +1 -1
  24. package/layout/includes/widgets/page/about/other.pug +1 -1
  25. package/layout/includes/widgets/page/banner.pug +1 -1
  26. package/layout/includes/widgets/page/links/banner.pug +5 -4
  27. package/layout/includes/widgets/page/moments/angle.pug +1 -1
  28. package/layout/includes/widgets/post/award.pug +10 -15
  29. package/layout/includes/widgets/post/copyright.pug +2 -2
  30. package/layout/includes/widgets/post/postMeta.pug +10 -10
  31. package/layout/includes/widgets/randomlink.pug +3 -2
  32. package/layout/includes/widgets/third-party/comments/twikoo.pug +1 -0
  33. package/layout/includes/widgets/third-party/comments/waline.pug +1 -0
  34. package/package.json +1 -1
  35. package/scripts/event/cdn.js +2 -7
  36. package/scripts/event/merge_config.js +10 -2
  37. package/source/css/_comments/index.styl +14 -1
  38. package/source/css/_comments/twikoo.styl +3 -0
  39. package/source/css/_highlight/prismjs/line-number.styl +1 -1
  40. package/source/css/_layout/article-sort.styl +1 -1
  41. package/source/css/_layout/aside.styl +3 -3
  42. package/source/css/_layout/console.styl +7 -6
  43. package/source/css/_layout/footer.styl +1 -0
  44. package/source/css/_layout/header.styl +2 -0
  45. package/source/css/_layout/sidebar.styl +30 -20
  46. package/source/css/_page/_home/home-top.styl +1 -1
  47. package/source/css/_page/_home/recent-post.styl +2 -2
  48. package/source/css/_page/links.styl +5 -5
  49. package/source/css/_post/content.styl +13 -0
  50. package/source/css/_post/tools.styl +3 -9
  51. package/source/img/flower.gif +0 -0
  52. package/source/js/{comment/twikoo_commentBarrage.js → commentBarrage/twikoo.js} +0 -6
  53. package/source/js/{comment/waline_commentBarrage.js → commentBarrage/waline.js} +0 -2
  54. package/source/js/main.js +73 -72
  55. package/source/js/utils.js +1 -1
  56. package/layout/includes/widgets/rightside/index.pug +0 -87
  57. package/source/js/rightside.js +0 -221
package/_config.yml CHANGED
@@ -199,15 +199,15 @@ aside:
199
199
  # 个人信息卡片顶部按钮的切换文字
200
200
  # Switching text of the button at the top of the personal information card
201
201
  sayhello2:
202
- - 🤖️ 数码科技爱好者
203
- - 🔍 分享与热心帮助
204
- - 🏠 智能家居小能手
205
- - 🔨 设计开发一条龙
206
- - 🤝 专修交互与设计
207
- - 🏃 脚踏实地行动派
208
- - 🧱 团队小组发动机
209
- - 💢 壮汉人狠话不多
210
- - 🎮 电竞游戏爱好者
202
+ # - 🤖️ 数码科技爱好者
203
+ # - 🔍 分享与热心帮助
204
+ # - 🏠 智能家居小能手
205
+ # - 🔨 设计开发一条龙
206
+ # - 🤝 专修交互与设计
207
+ # - 🏃 脚踏实地行动派
208
+ # - 🧱 团队小组发动机
209
+ # - 💢 壮汉人狠话不多
210
+ # - 🎮 电竞游戏爱好者
211
211
  # 个人信息卡片底部的小图标,按照例子填写
212
212
  information:
213
213
  # Github: https://github.com/efuo || st-github-line # 名称:链接 || 图标 / Name: link || icon
@@ -342,15 +342,13 @@ post:
342
342
  # reward
343
343
  award:
344
344
  enable: false
345
- # 微信收款码
346
- # WeChat payment code
347
- wechat: https://7.isyangs.cn/34/65f2e5814db1a-34.png
348
- # 支付宝收款码
349
- # Alipay payment code
350
- alipay: https://7.isyangs.cn/34/65f2e5a6d2ef5-34.png
351
- # 打赏统计页面链接
352
- # Reward statistics page link
353
- url: /about
345
+ appreciators: /about # 赞赏记录 / Appreciative records
346
+ title: 感谢您的赞赏。
347
+ desc: 因为有你们的支持,我才体会到写文章的价值。
348
+ list:
349
+ # - name: 支付宝
350
+ # qcode: https://7.isyangs.cn/34/65f2e5a6d2ef5-34.png
351
+ # color: var(--efu-blue)
354
352
  # 版权中订阅按钮跳转链接,填写地址后开启
355
353
  # Subscription button jump link in copyright
356
354
  rss: # /atom.xml
@@ -621,19 +619,10 @@ mediumZoom: false
621
619
  # https://mermaid.js.org/
622
620
  mermaid: false
623
621
 
624
- # 简繁转换
625
- # Simplified and Traditional Chinese conversion
626
- translate:
627
- enable: false
628
- # the language of website (1 - Traditional Chinese/ 2 - Simplified Chinese)
629
- defaultEncoding: 2
630
- # Time delay
631
- translateDelay: 0
632
-
633
622
  # Open Graph
634
623
  # https://ogp.me/
635
624
  # https://developers.facebook.com/docs/sharing/webmasters/
636
- opengraph:
625
+ OpenGraph:
637
626
  enable: false
638
627
  options:
639
628
  # twitter_card:
@@ -674,11 +663,6 @@ search:
674
663
  preload: false
675
664
  CDN:
676
665
 
677
- # rightside(右键菜单)
678
- # right menu
679
- rightside:
680
- enable: false
681
-
682
666
  # 文章摘要AI
683
667
  # post abstract AI
684
668
  post_ai:
@@ -692,7 +676,7 @@ post_ai:
692
676
  key:
693
677
  # 自介
694
678
  # talk
695
- talk: 我是 Efu 开发的摘要生成助理EfuGPT,EfuGPT在静态部署时进行摘要的撰写,并且在访客访问时通过EfuCorrection转译后的文本摘要实现工具。我在这里只负责已经生成的摘要显示,你无法与我直接沟通,但我可以回答一些预设的问题。
679
+ talk: # 我是 Efu 开发的摘要生成助理EfuGPT,EfuGPT在静态部署时进行摘要的撰写,并且在访客访问时通过EfuCorrection转译后的文本摘要实现工具。我在这里只负责已经生成的摘要显示,你无法与我直接沟通,但我可以回答一些预设的问题。
696
680
  # 随机文章按钮
697
681
  # Random post button
698
682
  randomPost: false
@@ -701,7 +685,7 @@ post_ai:
701
685
  report: https://efu.me/
702
686
  # 底部提示
703
687
  # Bottom tip
704
- tips: 此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结
688
+ tips: # 此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结
705
689
 
706
690
  # latex 公式支持
707
691
  # latex formula support
@@ -737,7 +721,7 @@ comment:
737
721
  # waline 配置信息
738
722
  # waline settings
739
723
  waline: # https://waline.js.org/
740
- envId: # url: https://waline.wzsco.top
724
+ envId: # url: https://waline.wzsco.top
741
725
  pageview: true # 是否开启页面访问量统计 / Whether to enable page access statistics
742
726
  option: # waline配置项 / waline configuration item
743
727
 
package/languages/en.yml CHANGED
@@ -1,3 +1,5 @@
1
+ more: More
2
+
1
3
  theme:
2
4
  dark: dark
3
5
  light: light
@@ -6,15 +8,21 @@ copy:
6
8
  success: Copied
7
9
  error: Copied failed
8
10
 
11
+ copy_copyright:
12
+ author: Author
13
+ link: Link
14
+ source: Source
15
+ info: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
16
+
9
17
  lately:
10
- second: second
11
- minute: minute
12
- hour: hour
13
- day: day
14
- month: month
15
- year: year
16
- ago: ago
17
- error: NaN
18
+ second: ' second'
19
+ minute: ' minute'
20
+ hour: ' hour'
21
+ day: ' day'
22
+ month: ' month'
23
+ year: ' year'
24
+ ago: ' ago'
25
+ error: ' NaN'
18
26
 
19
27
  chs:
20
28
  chs_tw: Traditional Chinese
@@ -29,28 +37,23 @@ page:
29
37
  404: Page not found
30
38
 
31
39
  home:
32
- categoryBar:
33
- home: Home
34
- more: More
35
- recent-post:
36
- sticky: Sticky
37
- new: New
38
- read: Unread
39
- top-group:
40
- recommend: Favor
41
- recommendmore: More
40
+ home: Home
41
+ sticky: Sticky
42
+ new: New
43
+ read: Unread
44
+ recommendmore: More
42
45
 
43
46
  post:
44
- meta_reprint: Reprint or translation
45
- meta_original: Original
46
- meta_cc: This article is a ${cc} article, pay attention to the copyright.
47
- meta_posted: Posted on
48
- meta_updated: Last updated on
49
- meta_wordcount: Word count
50
- meta_minread: Reading time
51
- meta_ip: The author's IP belongs to
52
- meta_pv: PV
53
- meta_comment: Comments
47
+ reprint: Reprint
48
+ original: Original
49
+ copyright: This article is a ${cc} article, pay attention to the copyright.
50
+ posted: Posted on
51
+ updated: Last updated on
52
+ wordcount: Word count
53
+ minread: Reading time
54
+ ip: The author's IP belongs to
55
+ pv: PV
56
+ comment: Comments
54
57
 
55
58
  nav:
56
59
  site_name_title: Back to home
@@ -61,13 +64,9 @@ nav:
61
64
  console: Console
62
65
 
63
66
  award:
64
- wechat: Wechat
65
- alipay: Alipay
66
- about:
67
- tip: Thanks
68
- tip1: Tipping
69
- tip2: Thank you for giving me the strength to move forward.
70
- title: List of appreciation
67
+ thanks: Thanks
68
+ tipping: Tipping
69
+ title: List of appreciation
71
70
 
72
71
 
73
72
  search:
@@ -103,8 +102,7 @@ console:
103
102
  archive_unit: Posts
104
103
 
105
104
  sidebar:
106
- title1: Features
107
- title2: Tags
105
+ function: Function
108
106
  darkmode: Display mode
109
107
 
110
108
  footer:
@@ -122,30 +120,14 @@ cookies:
122
120
  music:
123
121
  hit: Paused
124
122
 
125
- rightmenu:
126
- copytext: Copy the selected
127
- pastetext: Paste the text
128
- commenttext: Quote to comment
129
- newwindow: A new window opens
130
- copylink: Copy the link address
131
- copyimg: Copy this image
132
- downloadimg: Download this image
133
- search: Search on the site
134
- music:
135
- toggle: Play music
136
- back: Switch to the previous track
137
- forward: Switch to the next track
138
- playlist: See all songs
139
- copyMusicName: Reproduction Song Name
140
- randomPost: Feel free to wander around
141
- categories: Article classification
142
- tags: Article tags
143
- copyaddress: Copy the address
144
- commentBarrage: Turn off trending reviews
145
- dark: Dark
146
- light: Light
147
- chs_to_cht: Traditional
148
- cht_to_chs: Simplified
149
-
150
123
  404:
151
- button: Back to home
124
+ button: Back to home
125
+
126
+ link:
127
+ banner:
128
+ toComment: Application link
129
+ random: Random Visit
130
+ random: You are about to ⌈ ${name} ⌋ , security unknown.
131
+
132
+ keyboard:
133
+ title: Blog shortcuts
@@ -1,3 +1,5 @@
1
+ more: 更多
2
+
1
3
  # Language: 简体中文
2
4
  theme:
3
5
  dark: 已切换至深色模式
@@ -38,37 +40,29 @@ nav:
38
40
  console: 中控台
39
41
 
40
42
  home:
41
- categoryBar:
42
- home: 首页
43
- more: 更多
44
- recent-post:
45
- sticky: 置顶
46
- new: 最新
47
- read: 未读
48
- top-group:
49
- recommend: 荐
50
- recommendmore: 更多推荐
43
+ home: 首页
44
+ sticky: 置顶
45
+ new: 最新
46
+ read: 未读
47
+ recommend:
48
+ recommendmore: 更多推荐
51
49
 
52
50
  post:
53
- meta_reprint: 转载或翻译
54
- meta_original: 原创
55
- meta_cc: 该文章为${cc}文章,注意版权协议
56
- meta_posted: 发布于
57
- meta_updated: 最后更新于
58
- meta_wordcount: 文章字数
59
- meta_minread: 阅读耗时
60
- meta_ip: 作者IP归属地为
61
- meta_pv: 文章热度
62
- meta_comment: 评论数
51
+ reprint: 转载或翻译
52
+ original: 原创
53
+ cc: 该文章为${cc}文章,注意版权协议
54
+ posted: 发布于
55
+ updated: 最后更新于
56
+ wordcount: 文章字数
57
+ minread: 阅读耗时
58
+ ip: 作者IP归属地为
59
+ pv: 文章热度
60
+ comment: 评论数
63
61
 
64
62
  award:
65
- wechat: 微信
66
- alipay: 支付宝
67
- about:
68
- tip: 致谢
69
- tip1: 赞赏作者
70
- tip2: 感谢你赐予我前进的力量
71
- title: 赞赏名单
63
+ thanks: 致谢
64
+ tipping: 赞赏作者
65
+ title: 赞赏名单
72
66
 
73
67
  search:
74
68
  empty: 找不到你查询的内容:${query}
@@ -103,8 +97,7 @@ console:
103
97
  archive_unit: 篇
104
98
 
105
99
  sidebar:
106
- title1: 功能
107
- title2: 标签
100
+ function: 功能
108
101
  darkmode: 显示模式
109
102
 
110
103
  footer:
@@ -122,30 +115,14 @@ cookies:
122
115
  music:
123
116
  hit: 音乐已暂停
124
117
 
125
- rightmenu:
126
- copytext: 复制选中文本
127
- pastetext: 粘贴文本
128
- commenttext: 引用到评论
129
- newwindow: 新窗口打开
130
- copylink: 复制链接地址
131
- copyimg: 复制此图片
132
- downloadimg: 下载此图片
133
- search: 站内搜索
134
- music:
135
- toggle: 播放音乐
136
- back: 切换到上一首
137
- forward: 切换到下一首
138
- playlist: 查看所有歌曲
139
- copyMusicName: 复制歌名
140
- randomPost: 随便逛逛
141
- categories: 文章分类
142
- tags: 文章标签
143
- copyaddress: 复制地址
144
- commentBarrage: 关闭热评
145
- dark: 深色模式
146
- light: 浅色模式
147
- chs_to_cht: 轉為繁體
148
- cht_to_chs: 转为简体
149
-
150
118
  404:
151
- button: 返回首页
119
+ button: 返回首页
120
+
121
+ link:
122
+ banner:
123
+ toComment: 申请友链
124
+ random: 随机访问
125
+ random: 您即将前往 ⌈ ${name} ⌋ , 安全性未知
126
+
127
+ keyboard:
128
+ title: 博客快捷键
@@ -1,3 +1,5 @@
1
+ more: 更多
2
+
1
3
  # Language: 繁體中文 (台灣)
2
4
  theme:
3
5
  dark: 已切換至深色模式
@@ -38,37 +40,29 @@ nav:
38
40
  console: 中控台
39
41
 
40
42
  home:
41
- categoryBar:
42
- home: 首頁
43
- more: 更多
44
- recent-post:
45
- sticky: 置頂
46
- new: 最新
47
- read: 未讀
48
- top-group:
49
- recommend: 荐
50
- recommendmore: 更多推薦
43
+ home: 首頁
44
+ sticky: 置頂
45
+ new: 最新
46
+ read: 未讀
47
+ recommend:
48
+ recommendmore: 更多推薦
51
49
 
52
50
  post:
53
- meta_reprint: 轉載或翻譯
54
- meta_original: 原創
55
- meta_cc: 該文章為${cc}文章,注意版權協議
56
- meta_posted: 發布於
57
- meta_updated: 最後更新於
58
- meta_wordcount: 文章字數
59
- meta_minread: 閱讀耗時
60
- meta_ip: 作者IP歸屬地為
61
- meta_pv: 文章熱度
62
- meta_comment: 評論數
51
+ reprint: 轉載或翻譯
52
+ original: 原創
53
+ cc: 該文章為${cc}文章,注意版權協議
54
+ posted: 發布於
55
+ updated: 最後更新於
56
+ wordcount: 文章字數
57
+ minread: 閱讀耗時
58
+ ip: 作者IP歸屬地為
59
+ pv: 文章熱度
60
+ comment: 評論數
63
61
 
64
62
  award:
65
- wechat: 微信
66
- alipay: 支付寶
67
- about:
68
- tip: 致謝
69
- tip1: 贊助作者
70
- tip2: 感謝你賜予我前進的力量
71
- title: 贊助作者
63
+ thanks: 致謝
64
+ tipping: 贊助作者
65
+ title: 讚賞名單
72
66
 
73
67
  search:
74
68
  empty: 找不到你查詢的內容:${query}
@@ -103,8 +97,7 @@ console:
103
97
  archive_unit: 篇
104
98
 
105
99
  sidebar:
106
- title1: 功能
107
- title2: 標籤
100
+ function: 功能
108
101
  darkmode: 顯示模式
109
102
 
110
103
  footer:
@@ -122,30 +115,14 @@ cookies:
122
115
  music:
123
116
  hit: 音樂已暫停
124
117
 
125
- rightmenu:
126
- copytext: 複製選中文本
127
- pastetext: 粘貼文本
128
- commenttext: 引用到評論
129
- newwindow: 新窗口打開
130
- copylink: 複製連結位址
131
- copyimg: 複製此圖片
132
- downloadimg: 下載此圖片
133
- search: 站內搜索
134
- music:
135
- toggle: 播放音樂
136
- back: 切換到上一首
137
- forward: 切換到下一首
138
- playlist: 查看所有歌曲
139
- copyMusicName: 複製歌名
140
- randomPost: 随便逛逛
141
- categories: 文章分類
142
- tags: 文章標籤
143
- copyaddress: 複製位址
144
- commentBarrage: 關閉熱評
145
- dark: 深色模式
146
- light: 淺色模式
147
- chs_to_cht: 轉為繁體
148
- cht_to_chs: 转为简体
149
-
150
118
  404:
151
- button: 返回首頁
119
+ button: 返回首頁
120
+
121
+ link:
122
+ banner:
123
+ toComment: 申請友鏈
124
+ random: 隨機訪問
125
+ random: 您即將前往 ⌈ ${name} ⌋ , 安全性未知
126
+
127
+ keyboard:
128
+ title: 博客快捷鍵
package/layout/404.pug CHANGED
@@ -7,7 +7,7 @@ block content
7
7
  .error-info
8
8
  h1.error_title 404
9
9
  .error_subtitle= theme.errorpage.text
10
- a.button--animated(href="/")
10
+ a.button--animated(href=url_for("/"))
11
11
  i.solitude.st-external-link
12
12
  =_p('404.button')
13
13
 
@@ -25,21 +25,21 @@ div#console
25
25
 
26
26
  div.button-group
27
27
  div.console-btn-item
28
- a.darkmode_switchbutton(onclick="sco.switchDarkMode()", title=_p('console.switch_darkmode'), href="javascript:void(0);")
28
+ span.darkmode_switchbutton(onclick="sco.switchDarkMode()", title=_p('console.switch_darkmode'))
29
29
  i.solitude.st-moon-clear-fill
30
30
  div.console-btn-item#consoleHideAside
31
- a.asideSwitch(onclick="sco.switchHideAside()", title=_p('console.switch_hideAside'), href="javascript:void(0);")
31
+ span.asideSwitch(onclick="sco.switchHideAside()", title=_p('console.switch_hideAside'))
32
32
  i.solitude.st-side-bar-fill
33
33
  if theme.keyboard.enable
34
34
  div.console-btn-item#consoleKeyboard(onclick="sco.switchKeyboard()")
35
- a.keyboardSwitch(title=_p('console.switch_keyboard'), href="javascript:void(0);")
35
+ span.keyboardSwitch(title=_p('console.switch_keyboard'))
36
36
  i.solitude.st-keyboard-box-fill
37
37
  if theme.capsule.enable
38
38
  div.console-btn-item#consoleMusic(onclick="sco.musicToggle()")
39
- a.music-switch(title=_p('console.switch_music'), href="javascript:void(0);")
39
+ span.music-switch(title=_p('console.switch_music'))
40
40
  i.solitude.st-disc-fill
41
41
  if theme.comment.enable && theme.comment.commentBarrage
42
42
  div.console-btn-item.on#consoleCommentBarrage(onclick="sco.switchCommentBarrage()")
43
- a.commentBarrage
43
+ span.commentBarrage
44
44
  i.solitude.st-chat-fill
45
45
  div.console-mask(onclick="sco.hideConsole()")
@@ -7,7 +7,7 @@ div#st-footer-bar
7
7
  else if theme.site.name.class === 'text'
8
8
  span.solitude= theme.site.name.custom
9
9
  div.footer-bar-description= __('footer.description').replace(/\$\{title}/, config.title + " - " + config.subtitle)
10
- a.footer-bar-link(href="/")= __('footer.learnmore')
10
+ a.footer-bar-link(href=url_for('/'))= __('footer.learnmore')
11
11
  div#footer_deal
12
12
  - var leftInfo = theme.footer && theme.footer.information && theme.footer.information.left || {}
13
13
  - var rightInfo = theme.footer && theme.footer.information && theme.footer.information.right || {}
@@ -38,7 +38,7 @@ div#st-footer
38
38
  div.footer-group
39
39
  div.footer-title-group
40
40
  h3.footer-title= _p('footer.randomlink')
41
- a.random-friends-btn(href="javascript:randomLinksList();")
41
+ button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
42
42
  i.solitude.st-refresh-line
43
43
  div.footer-links#friend-links-in-footer
44
44
  div#footer-bar
@@ -46,14 +46,14 @@ div#footer-bar
46
46
  div.footer-bar-left
47
47
  if moment(theme.aside.siteinfo.runtime).year() === new Date().getFullYear()
48
48
  div.copyright © #{moment(theme.aside.siteinfo.runtime).year()} By 
49
- a.footer-bar-link(href="/")= config.author
49
+ a.footer-bar-link(href=url_for("/"))= config.author
50
50
  else
51
51
  div.copyright © #{moment(theme.aside.siteinfo.runtime).year()} - #{new Date().getFullYear()} By 
52
- a.footer-bar-link(href="/")= config.author
52
+ a.footer-bar-link(href=url_for("/"))= config.author
53
53
  div.footer-bar-right
54
54
  each item in theme.footer.links
55
55
  a.footer-bar-link(href=url_for(item.url), title=item.name)= item.name
56
- a.footer-bar-link.cc(href=theme.footer.license)
56
+ a.footer-bar-link.cc(href=url_for(theme.footer.license), aria-label = 'copyright')
57
57
  i.solitude.st-copyright-line
58
58
  i.solitude.st-creative-commons-by-line
59
59
  i.solitude.st-creative-commons-nc-line
@@ -63,7 +63,7 @@ if theme.footer.privacy
63
63
  div.cookies-window-title= __('cookies.title')
64
64
  div.cookies-window-content
65
65
  span.cookies-tip= __('cookies.tip')
66
- a.cookies-link(href=theme.footer.privacy, title=_p('cookies.privacy'))
66
+ a.cookies-link(href=url_for(theme.footer.privacy), title=_p('cookies.privacy'))
67
67
  i.solitude.st-right-btn-fill
68
68
  if theme.comment.enable && theme.comment.commentBarrage
69
69
  div.comment-barrage.needEndHide
@@ -30,6 +30,19 @@
30
30
  });
31
31
  }
32
32
 
33
+ let copyright = 'undefined';
34
+ if (theme.copy.enable && theme.copy.copyright.enable) {
35
+ copyright = JSON.stringify({
36
+ limitCount: theme.copy.copyright.limit_count,
37
+ languages: {
38
+ author: _p("copy_copyright.author") + ': ' + config.author,
39
+ link: _p("copy_copyright.link") + ': ',
40
+ source: _p("copy_copyright.source") + ': ' + config.title,
41
+ info: _p("copy_copyright.info")
42
+ }
43
+ })
44
+ }
45
+
33
46
  const commentInfoStart = theme.comment.randomInfoStart.map(item => `"${item}"`) || [];
34
47
  const commentInfoEnd = theme.comment.randomInfoEnd.map(item => `"${item}"`) || [];
35
48
  const sayhello2 = theme.aside.card.sayhello2.map(item => `"${item}"`) || [];
@@ -110,17 +123,10 @@ script.
110
123
  }
111
124
  },
112
125
  lightbox: '!{ theme.mediumZoom ? "mediumZoom" : (theme.fancybox ? "fancybox" : "null")}',
113
- rightside: {
114
- enable: !{theme.rightside.enable}
115
- },
116
126
  ai: {
117
127
  enable: !{theme.post_ai.enable},
118
128
  key: '!{theme.post_ai.key}',
119
- talk: '!{theme.post_ai.talk}',
129
+ talk: "!{theme.post_ai.talk}",
120
130
  randomPost: !{theme.post_ai.randomPost},
121
- },
122
- music: {
123
- enable: !{theme.music.enable},
124
- },
125
- translate: !{translate},
131
+ }
126
132
  };
@@ -1,10 +1,10 @@
1
- if theme.opengraph.enable
1
+ if theme.OpenGraph.enable
2
2
  -
3
3
  const coverVal = page.cover || theme.site.siteIcon
4
4
  let ogOption = {
5
5
  type: is_post() ? 'article' : 'website',
6
6
  image: coverVal ? full_url_for(coverVal) : '',
7
- ...theme.opengraph.options
7
+ ...theme.OpenGraph.options
8
8
  }
9
9
  -
10
10
  != open_graph(ogOption)
@@ -4,16 +4,16 @@ if theme.pwa.enable
4
4
  if theme.pwa.theme_color
5
5
  meta(name="msapplication-TileColor" content=theme.pwa.theme_color)
6
6
  if theme.pwa.mask_icon
7
- link(rel="mask-icon", href=theme.pwa.mask_icon, color=theme.pwa.theme_color)
7
+ link(rel="mask-icon", href=url_for(theme.pwa.mask_icon), color=theme.pwa.theme_color)
8
8
  if theme.pwa.apple_touch_icon
9
9
  link(rel="apple-touch-icon" sizes="180x180" href=url_for(theme.pwa.apple_touch_icon))
10
10
  if theme.pwa.favicon_16_16
11
- link(rel="icon", type="image/png", sizes="16x16", href=theme.pwa.favicon_16_16)
11
+ link(rel="icon", type="image/png", sizes="16x16", href=url_for(theme.pwa.favicon_16_16))
12
12
  if theme.pwa.favicon_32_32
13
- link(rel="icon", type="image/png", sizes="32x32", href=theme.pwa.favicon_32_32)
13
+ link(rel="icon", type="image/png", sizes="32x32", href=url_for(theme.pwa.favicon_32_32))
14
14
  if theme.pwa.bookmark_icon
15
- link(rel="bookmark", href=theme.pwa.bookmark_icon)
15
+ link(rel="bookmark", href=url_for(theme.pwa.bookmark_icon))
16
16
  else
17
17
  meta(name="apple-mobile-web-app-capable", content=config.title)
18
- link(rel="bookmark", href=theme.site.siteIcon)
19
- link(rel="apple-touch-icon", href=theme.site.siteIcon, sizes="180x180")
18
+ link(rel="bookmark", href=url_for(theme.site.siteIcon))
19
+ link(rel="apple-touch-icon", href=url_for(theme.site.siteIcon), sizes="180x180")
@@ -17,7 +17,7 @@ meta(name="viewport" content="width=device-width, initial-scale=1")
17
17
 
18
18
  title= title + subtitle
19
19
  noscript= _p('head.noscript')
20
- link(rel="icon", href=theme.site.siteIcon)
20
+ link(rel="icon", href=url_for(theme.site.siteIcon))
21
21
 
22
22
  // index.css
23
23
  link(rel="stylesheet", href=url_for(theme.cdn.main_css))
@@ -20,10 +20,6 @@ div
20
20
  if theme.mermaid
21
21
  script(src=url_for(theme.cdn.mermaid_js))
22
22
 
23
- if theme.rightside.enable
24
- include ../widgets/rightside/index
25
- script(src=url_for(theme.cdn.rightside_js))
26
-
27
23
  if theme.display_mode.universe
28
24
  script(src=url_for(theme.cdn.universe_js))
29
25
  script.
@@ -77,7 +77,7 @@ script.
77
77
  )(window)
78
78
 
79
79
  console.log(
80
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.6.0",
80
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.6.1",
81
81
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
82
82
  "padding: 5px 10px;color:white;background:#3e9f50;",
83
83
  "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
@@ -1,6 +1,6 @@
1
1
  - const list = theme.keyboard.list || []
2
2
  #keyboard-tips
3
- .keyboardTitle= '博客快捷键'
3
+ .keyboardTitle=_p('keyboard.title')
4
4
  .keyboardList
5
5
  each item in list
6
6
  .keyboardItem