hexo-theme-solitude 1.5.11 → 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.
- package/.github/logo.svg +44 -10
- package/README.md +22 -2
- package/README_zh-cn.md +22 -2
- package/README_zh-tw.md +22 -2
- package/_config.yml +107 -107
- package/languages/en.yml +45 -63
- package/languages/zh-CN.yml +32 -55
- package/languages/zh-TW.yml +32 -55
- package/layout/404.pug +1 -1
- package/layout/includes/console.pug +5 -5
- package/layout/includes/footer.pug +7 -7
- package/layout/includes/head/config.pug +15 -9
- package/layout/includes/head/opengraph.pug +2 -2
- package/layout/includes/head/pwa.pug +6 -6
- package/layout/includes/head.pug +1 -1
- package/layout/includes/inject/body.pug +0 -4
- package/layout/includes/inject/head.pug +1 -2
- package/layout/includes/keyboard.pug +1 -1
- package/layout/includes/loading.pug +1 -1
- package/layout/includes/nav.pug +1 -1
- package/layout/includes/sidebar.pug +19 -3
- package/layout/includes/widgets/home/banner.pug +1 -1
- package/layout/includes/widgets/home/categoryBar.pug +2 -2
- package/layout/includes/widgets/home/categoryGroup.pug +0 -1
- package/layout/includes/widgets/home/postList.pug +74 -29
- package/layout/includes/widgets/home/topGroup.pug +2 -2
- package/layout/includes/widgets/nav/group.pug +2 -2
- package/layout/includes/widgets/nav/right.pug +1 -1
- package/layout/includes/widgets/page/about/award.pug +8 -9
- package/layout/includes/widgets/page/about/hobbies.pug +1 -1
- package/layout/includes/widgets/page/about/other.pug +1 -1
- package/layout/includes/widgets/page/banner.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +5 -4
- package/layout/includes/widgets/page/moments/angle.pug +1 -1
- package/layout/includes/widgets/post/award.pug +10 -15
- package/layout/includes/widgets/post/copyright.pug +2 -2
- package/layout/includes/widgets/post/postMeta.pug +10 -10
- package/layout/includes/widgets/randomlink.pug +3 -2
- package/layout/includes/widgets/third-party/comments/twikoo.pug +1 -0
- package/layout/includes/widgets/third-party/comments/waline.pug +1 -0
- package/layout/page.pug +1 -1
- package/package.json +1 -1
- package/plugins.yml +0 -4
- package/scripts/event/cdn.js +6 -11
- package/scripts/event/merge_config.js +19 -3
- package/scripts/event/welcome.js +2 -2
- package/scripts/filter/checkThemeConfig.js +2 -2
- package/scripts/filter/default.js +4 -2
- package/scripts/filter/lazyload.js +18 -5
- package/scripts/filter/randomPosts.js +1 -1
- package/scripts/helper/stylus.js +8 -14
- package/source/css/{_widgets/_comment → _comments}/index.styl +14 -1
- package/source/css/{_widgets/_comment → _comments}/twikoo.styl +3 -0
- package/source/css/_global/index.styl +362 -1
- package/source/css/_highlight/prismjs/line-number.styl +1 -1
- package/source/css/{_widgets/_mixins → _layout}/article-sort.styl +1 -1
- package/source/css/_layout/aside.styl +751 -0
- package/source/css/_layout/capsule.styl +213 -0
- package/source/css/{_widgets/_extra → _layout}/console.styl +7 -6
- package/source/css/{_widgets/_mixins → _layout}/footer.styl +1 -0
- package/source/css/_layout/fullpage.styl +47 -0
- package/source/css/_layout/header.styl +2 -0
- package/source/css/_layout/keyboard.styl +60 -0
- package/source/css/_layout/pace.styl +40 -0
- package/source/css/_layout/rightmenu.styl +79 -0
- package/source/css/{_widgets/_mixins → _layout}/sidebar.styl +30 -20
- package/source/css/_layout/universe.styl +18 -0
- package/source/css/_page/_home/home-top.styl +2 -4
- package/source/css/_page/_home/recent-post.styl +407 -170
- package/source/css/_page/douban.styl +111 -109
- package/source/css/_page/links.styl +5 -5
- package/source/css/_page/share.styl +1 -17
- package/source/css/{_widgets/_post → _post}/content.styl +13 -3
- package/source/css/{_widgets/_post → _post}/tools.styl +3 -9
- package/source/css/index.styl +20 -5
- package/source/css/third_party/snackbar.min.css +1 -0
- package/source/css/{_global/var.styl → var.styl} +7 -1
- package/source/img/avatar.png +0 -0
- package/source/img/default.png +0 -0
- package/source/img/flower.gif +0 -0
- package/source/img/pwa/favicon.ico +0 -0
- package/source/img/pwa/favicon_128.ico +0 -0
- package/source/img/pwa/favicon_16.ico +0 -0
- package/source/img/pwa/favicon_256.ico +0 -0
- package/source/img/pwa/favicon_32.ico +0 -0
- package/source/js/{comment/twikoo_commentBarrage.js → commentBarrage/twikoo.js} +0 -6
- package/source/js/{comment/waline_commentBarrage.js → commentBarrage/waline.js} +0 -2
- package/source/js/main.js +73 -71
- package/source/js/utils.js +1 -1
- package/layout/includes/recent-posts.pug +0 -9
- package/layout/includes/widgets/rightside/index.pug +0 -87
- package/source/css/_layout/basic.styl +0 -308
- package/source/css/_layout/index.styl +0 -125
- package/source/css/_widgets/_aside/allinfo.styl +0 -168
- package/source/css/_widgets/_aside/flip.styl +0 -67
- package/source/css/_widgets/_aside/index.styl +0 -90
- package/source/css/_widgets/_aside/info.styl +0 -263
- package/source/css/_widgets/_aside/newPost.styl +0 -61
- package/source/css/_widgets/_aside/toc.styl +0 -108
- package/source/css/_widgets/_aside/welcome.styl +0 -14
- package/source/css/_widgets/_extra/fullpage.styl +0 -46
- package/source/css/_widgets/_extra/music.styl +0 -218
- package/source/css/_widgets/_extra/pace.styl +0 -39
- package/source/css/_widgets/_extra/rightmenu.styl +0 -78
- package/source/css/_widgets/_mixins/keyboard.styl +0 -59
- package/source/css/_widgets/index.styl +0 -56
- package/source/img/logo.png +0 -0
- package/source/js/rightside.js +0 -221
- /package/source/css/{_widgets/_comment → _comments}/waline.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/other.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/commentBarrage.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/copyright.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/index.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/meta.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/pagination.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/postAI.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/relatedPost.styl +0 -0
- /package/source/css/{_widgets/_search → _search}/algolia-search.styl +0 -0
- /package/source/css/{_widgets/_search → _search}/local-search.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/button.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/checkbox.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/fold.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/gallery.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/index.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/label.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/link.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/media.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/mermaid.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/note.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/span.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/tabs.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/timeline.styl +0 -0
- /package/source/js/{lately.min.js → third_party/lately.min.js} +0 -0
- /package/source/js/{sco-ai.min.js → third_party/sco-ai.min.js} +0 -0
- /package/source/js/{universe.min.js → third_party/universe.min.js} +0 -0
- /package/source/js/{waterfall.min.js → third_party/waterfall.min.js} +0 -0
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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
|
-
|
65
|
-
|
66
|
-
|
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
|
-
|
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
|
package/languages/zh-CN.yml
CHANGED
@@ -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
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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
|
-
|
66
|
-
|
67
|
-
|
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
|
-
|
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/languages/zh-TW.yml
CHANGED
@@ -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
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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
|
-
|
66
|
-
|
67
|
-
|
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
|
-
|
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
@@ -25,21 +25,21 @@ div#console
|
|
25
25
|
|
26
26
|
div.button-group
|
27
27
|
div.console-btn-item
|
28
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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=
|
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 || {}
|
@@ -17,7 +17,7 @@ div#footer_deal
|
|
17
17
|
a.deal_link(href=url_for(trim(array[0])), title=label)
|
18
18
|
i.solitude(class=array[1])
|
19
19
|
|
20
|
-
div#footer_mini_logo.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
|
20
|
+
div#footer_mini_logo.nolazyload.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
|
21
21
|
img(src=theme.site.icon, alt=_p('nav.backtop'))
|
22
22
|
|
23
23
|
each value, label in rightInfo
|
@@ -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
|
-
|
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:
|
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.
|
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.
|
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")
|
package/layout/includes/head.pug
CHANGED
@@ -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.
|
@@ -2,7 +2,6 @@ each item in theme.verify_site || []
|
|
2
2
|
meta(name=item.name, content=item.content)
|
3
3
|
|
4
4
|
link(rel="stylesheet", href=url_for(theme.cdn.solitude_css))
|
5
|
-
link(rel="stylesheet", href=url_for(theme.cdn.snackbar_css))
|
6
5
|
|
7
6
|
// aplayer
|
8
7
|
if theme.capsule.enable || theme.music.enable
|
@@ -78,7 +77,7 @@ script.
|
|
78
77
|
)(window)
|
79
78
|
|
80
79
|
console.log(
|
81
|
-
"%c Program: Hexo %c Theme: Solitude %c Version: v1.
|
80
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.6.1",
|
82
81
|
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
83
82
|
"padding: 5px 10px;color:white;background:#3e9f50;",
|
84
83
|
"border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
|
@@ -5,7 +5,7 @@ div(id="loading-box" onclick="preloader.endLoading();" style="zoom:1")
|
|
5
5
|
script.
|
6
6
|
const preloader = {
|
7
7
|
endLoading: () => {
|
8
|
-
document.getElementById('loading-box').classList.
|
8
|
+
document.getElementById('loading-box').classList.toggle('loaded');
|
9
9
|
},
|
10
10
|
initLoading: () => {
|
11
11
|
document.getElementById('loading-box').classList.remove('loaded');
|
package/layout/includes/nav.pug
CHANGED
@@ -5,7 +5,7 @@ nav#nav.show
|
|
5
5
|
.back-home-button(tabindex="-1")
|
6
6
|
i.back-home-button-icon.solitude.st-more-fill
|
7
7
|
include ./widgets/nav/group
|
8
|
-
a#site-name(href="/", title=_p('nav.site_name_title'))
|
8
|
+
a#site-name(href=url_for("/"), title=_p('nav.site_name_title'))
|
9
9
|
if theme.site.name.class === 'i_class'
|
10
10
|
i.solitude(class=theme.site.name.custom, style="font-size: 16px;")
|
11
11
|
else if theme.site.name.class === 'img'
|
@@ -1,14 +1,30 @@
|
|
1
1
|
div#sidebar(style="zoom: 1;")
|
2
2
|
div#menu-mask(style="display: none;")
|
3
3
|
div#sidebar-menus
|
4
|
-
|
4
|
+
.site-data
|
5
|
+
.data-item.is-center
|
6
|
+
.data-item-link
|
7
|
+
a(href=url_for('/archives/'))
|
8
|
+
.headline=_p('page.archives')
|
9
|
+
.length-num=site.posts.find({ parent: { $exists: false } }).length
|
10
|
+
.data-item.is-center
|
11
|
+
.data-item-link
|
12
|
+
a(href=url_for('/categories/'))
|
13
|
+
.headline=_p('page.category')
|
14
|
+
.length-num=site.categories.find({parent: {$exists: false}}).length
|
15
|
+
.data-item.is-center
|
16
|
+
.data-item-link
|
17
|
+
a(href=url_for('/tags/'))
|
18
|
+
.headline=_p('page.tag')
|
19
|
+
.length-num=site.tags.find({parent: {$exists: false}}).length
|
20
|
+
span.sidebar-menu-item-title= __('sidebar.function')
|
5
21
|
div.sidebar-menu-item
|
6
|
-
|
22
|
+
span.darkmode_switchbutton.menu-child(onclick="sco.switchDarkMode()")
|
7
23
|
i.solitude.st-moon-clear-fill
|
8
24
|
span= __('sidebar.darkmode')
|
9
25
|
include ./widgets/nav/group
|
10
26
|
include ./widgets/nav/menu.pug
|
11
|
-
span.sidebar-menu-item-title= __('
|
27
|
+
span.sidebar-menu-item-title= __('page.tag')
|
12
28
|
div.card-widget.card-tags.card-archives.card-webinfo.card-allinfo
|
13
29
|
div.card-tag-cloud
|
14
30
|
each tag in site.tags.find({ parent: { $exists: false } }).data
|
@@ -20,4 +20,4 @@ div.tags-group-all
|
|
20
20
|
.tags-group-icon-pair
|
21
21
|
each key in pair
|
22
22
|
.tags-group-icon(style=`background: ${theme.hometop.banner.icon[key].color}`)
|
23
|
-
img(src=theme.hometop.banner.icon[key].img, title=key)
|
23
|
+
img.nolazyload(src=theme.hometop.banner.icon[key].img, title=key)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.category-bar-items#category-bar-items
|
2
2
|
.category-bar-item(class=is_home() ? 'select' : '', id="category-bar-home")
|
3
|
-
a(href=
|
3
|
+
a(href=url_for('/'))= __('home.home')
|
4
4
|
each item in site.categories.find({ parent: { $exists: false } }).data
|
5
5
|
.category-bar-item(class=select ? (select === item.name ? 'select' : '') : '', id=item.name)
|
6
6
|
a(href=url_for(item.path))= item.name
|
@@ -8,4 +8,4 @@ div.category-bar-right
|
|
8
8
|
if site.categories.find({parent: {$exists: false}}).data.length > 10
|
9
9
|
.category-bar-next#category-bar-next(onclick="sco.scrollCategoryBarToRight()")
|
10
10
|
i.solitude.st-show-right-line
|
11
|
-
a.category-bar-more(href=
|
11
|
+
a.category-bar-more(href=url_for('/categories/'))= __('more')
|