hexo-theme-solitude 2.0.12 → 2.1.0
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/README.md +2 -2
- package/README_zh-Hans.md +2 -3
- package/README_zh-Hant.md +2 -2
- package/_config.yml +24 -6
- package/languages/default.yml +12 -0
- package/languages/en.yml +12 -0
- package/languages/zh-CN.yml +12 -0
- package/languages/zh-TW.yml +34 -22
- package/layout/includes/head/config.pug +5 -3
- package/layout/includes/inject/body.pug +1 -4
- package/layout/includes/inject/head.pug +6 -0
- package/layout/includes/layout.pug +4 -0
- package/layout/includes/page/says.pug +1 -1
- package/layout/includes/rightmenu.pug +3 -3
- package/layout/includes/rightside.pug +3 -0
- package/layout/includes/sidebar.pug +10 -1
- package/layout/includes/widgets/aside/asideNewestPost.pug +8 -11
- package/layout/includes/widgets/aside/asideWebInfo.pug +6 -6
- package/layout/includes/widgets/page/links/banner.pug +0 -1
- package/layout/includes/widgets/post/postInfo.pug +12 -12
- package/layout/includes/widgets/rightside/hide.pug +6 -0
- package/layout/includes/widgets/rightside/show.pug +12 -0
- package/layout/includes/widgets/third-party/comments/comment.pug +3 -3
- package/layout/includes/widgets/third-party/pjax.pug +1 -1
- package/layout/page.pug +1 -1
- package/package.json +4 -4
- package/scripts/event/merge_config.js +15 -5
- package/scripts/event/page.js +1 -1
- package/scripts/filter/checkThemeConfig.js +3 -3
- package/scripts/helper/related_post.js +1 -1
- package/scripts/tags/article.js +6 -27
- package/scripts/tags/tabs.js +1 -3
- package/source/css/_comments/comment.styl +4 -4
- package/source/css/_comments/twikoo.styl +3 -4
- package/source/css/_global/index.styl +3 -3
- package/source/css/_layout/aside.styl +44 -28
- package/source/css/_layout/capsule.styl +1 -1
- package/source/css/_layout/header.styl +1 -0
- package/source/css/_layout/recent-post.styl +0 -2
- package/source/css/_layout/rightside.styl +34 -0
- package/source/css/_page/_about/buff.styl +0 -1
- package/source/css/_page/_about/contentinfo.styl +2 -2
- package/source/css/_page/_about/game.styl +0 -2
- package/source/css/_page/_about/maxim.styl +0 -1
- package/source/css/_page/_about/myphoto.styl +0 -1
- package/source/css/_page/_about/oneself.styl +1 -1
- package/source/css/_page/_about/personalities.styl +1 -1
- package/source/css/_page/_about/skills.styl +0 -1
- package/source/css/_page/_about/statistic.styl +0 -1
- package/source/css/_page/_home/home-top.styl +5 -0
- package/source/css/_page/other.styl +2 -1
- package/source/js/main.js +36 -0
- package/source/js/right_menu.js +10 -0
- package/source/js/tw_cn.js +18 -11
- /package/layout/includes/{body → head}/mode.pug +0 -0
package/README.md
CHANGED
@@ -42,8 +42,8 @@ English丨[简体中文](README_zh-Hans.md)丨[繁体中文](README_zh-Hant.md)
|
|
42
42
|
|
43
43
|
## Todo
|
44
44
|
|
45
|
-
- [
|
46
|
-
- [
|
45
|
+
- [X] Mobile directory support.
|
46
|
+
- [X] Add a bottom right sidebar.
|
47
47
|
|
48
48
|
> If you have any questions, please issue an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
49
49
|
|
package/README_zh-Hans.md
CHANGED
package/README_zh-Hant.md
CHANGED
package/_config.yml
CHANGED
@@ -444,7 +444,7 @@ footer:
|
|
444
444
|
# 404 页面
|
445
445
|
errorpage:
|
446
446
|
img: /img/404.avif
|
447
|
-
text: =awa= Page
|
447
|
+
text: =awa= Page Not Found # Text
|
448
448
|
recommendList: true
|
449
449
|
# --------------------------- end ---------------------------
|
450
450
|
|
@@ -487,7 +487,7 @@ envelope:
|
|
487
487
|
# can only use NetEase Cloud Music, QQ Music and other music platforms supported by the mainland China region,
|
488
488
|
# the subsequent consideration of the use of JSON files to store music information and customize the implementation of the third-party API does not depend on the page.
|
489
489
|
# Music Page
|
490
|
-
meting_api: "https://meting.
|
490
|
+
meting_api: "https://meting.everfu.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" # Custom API
|
491
491
|
music:
|
492
492
|
enable: false
|
493
493
|
# 歌单 ID / 单曲 ID
|
@@ -882,12 +882,12 @@ right_menu:
|
|
882
882
|
# Whether to display the hot comment switch.
|
883
883
|
# 是否显示热门评论开关
|
884
884
|
commentBarrage: false
|
885
|
+
# Whether to display the browser's context menu when hold Ctrl key.
|
886
|
+
# 是否在按住 Ctrl 键时显示浏览器右键菜单
|
887
|
+
ctrlOriginalMenu: false
|
885
888
|
# Simplified and Traditional Chinese translation.
|
886
889
|
# 简繁体转换
|
887
|
-
translate:
|
888
|
-
enable: false
|
889
|
-
defaultEncoding: 2 # 1: 默认繁体 2: 默认简体
|
890
|
-
translateDelay: 0 # 首次加载翻译迟疑时间
|
890
|
+
translate: false
|
891
891
|
# Custom list
|
892
892
|
# 自定义列表
|
893
893
|
custom_list:
|
@@ -951,6 +951,24 @@ background:
|
|
951
951
|
light: https://i.pinimg.com/originals/93/57/38/935738ed9657b296c2ef0ebd2151eb66.jpg
|
952
952
|
# --------------------------- end ---------------------------
|
953
953
|
|
954
|
+
# --------------------------- start ---------------------------
|
955
|
+
translate:
|
956
|
+
enable: true
|
957
|
+
defaultEncoding: 2 # 1: 默认繁体 2: 默认简体
|
958
|
+
translateDelay: 0 # 首次加载翻译迟疑时间
|
959
|
+
# --------------------------- end ---------------------------
|
960
|
+
|
961
|
+
# --------------------------- start ---------------------------
|
962
|
+
# Right-Sidebar
|
963
|
+
# 右下角悬停导航栏
|
964
|
+
rightside:
|
965
|
+
enable: false
|
966
|
+
hide:
|
967
|
+
enable: false
|
968
|
+
translate: false
|
969
|
+
mode: false
|
970
|
+
# --------------------------- start ---------------------------
|
971
|
+
|
954
972
|
# --------------------------- start ---------------------------
|
955
973
|
# Do not modify unless necessary
|
956
974
|
# 非必要请勿修改
|
package/languages/default.yml
CHANGED
@@ -140,6 +140,7 @@ console:
|
|
140
140
|
sidebar:
|
141
141
|
function: Function
|
142
142
|
darkmode: Display mode
|
143
|
+
siteinfo: Site information
|
143
144
|
|
144
145
|
footer:
|
145
146
|
description: Article from ${title}
|
@@ -195,6 +196,7 @@ right_menu:
|
|
195
196
|
chs_to_cht: 轉為繁體
|
196
197
|
cht_to_chs: 转为简体
|
197
198
|
img_error: This image cannot be copied or downloaded.
|
199
|
+
ctrl_original_menu: Hold Ctrl + right-click to open the browser's context menu
|
198
200
|
barrage:
|
199
201
|
open: Open Barrage
|
200
202
|
close: Close Barrage
|
@@ -231,3 +233,13 @@ essay:
|
|
231
233
|
tip0: '- All expanded -'
|
232
234
|
tip1: '- Recent Exhibitions #{count} Short Articles -'
|
233
235
|
link: 'Link'
|
236
|
+
|
237
|
+
rightside:
|
238
|
+
show:
|
239
|
+
gear: Settings
|
240
|
+
toc: Toc
|
241
|
+
comment: Comment
|
242
|
+
top: Top
|
243
|
+
hide:
|
244
|
+
translate: 简繁转换
|
245
|
+
mode: Mode
|
package/languages/en.yml
CHANGED
@@ -140,6 +140,7 @@ console:
|
|
140
140
|
sidebar:
|
141
141
|
function: Function
|
142
142
|
darkmode: Display mode
|
143
|
+
siteinfo: Site information
|
143
144
|
|
144
145
|
footer:
|
145
146
|
description: Article from ${title}
|
@@ -195,6 +196,7 @@ right_menu:
|
|
195
196
|
chs_to_cht: 轉為繁體
|
196
197
|
cht_to_chs: 转为简体
|
197
198
|
img_error: This image cannot be copied or downloaded.
|
199
|
+
ctrl_original_menu: Hold Ctrl + right-click to open the browser's context menu
|
198
200
|
barrage:
|
199
201
|
open: Open Barrage
|
200
202
|
close: Close Barrage
|
@@ -232,3 +234,13 @@ essay:
|
|
232
234
|
tip0: '- All expanded -'
|
233
235
|
tip1: '- Recent Exhibitions #{count} Short Articles -'
|
234
236
|
link: 'Link'
|
237
|
+
|
238
|
+
rightside:
|
239
|
+
show:
|
240
|
+
gear: Settings
|
241
|
+
toc: Toc
|
242
|
+
comment: Comment
|
243
|
+
top: Top
|
244
|
+
hide:
|
245
|
+
translate: 简繁转换
|
246
|
+
mode: Mode
|
package/languages/zh-CN.yml
CHANGED
@@ -140,6 +140,7 @@ console:
|
|
140
140
|
sidebar:
|
141
141
|
function: 功能
|
142
142
|
darkmode: 显示模式
|
143
|
+
siteinfo: 网站信息
|
143
144
|
|
144
145
|
footer:
|
145
146
|
description: 来自${title}的文章
|
@@ -195,6 +196,7 @@ right_menu:
|
|
195
196
|
chs_to_cht: 轉為繁體
|
196
197
|
cht_to_chs: 转为简体
|
197
198
|
img_error: 此图片无法复制与下载
|
199
|
+
ctrl_original_menu: 按住Ctrl+右键可打开浏览器右键菜单
|
198
200
|
barrage:
|
199
201
|
open: 显示热评
|
200
202
|
close: 关闭热评
|
@@ -231,3 +233,13 @@ essay:
|
|
231
233
|
tip0: '- 已展开所有短文 -'
|
232
234
|
tip1: '- 只展示最近 #{count} 条短文 -'
|
233
235
|
link: '链接'
|
236
|
+
|
237
|
+
rightside:
|
238
|
+
show:
|
239
|
+
gear: 扩展
|
240
|
+
toc: 目录
|
241
|
+
comment: 评论
|
242
|
+
top: 返回顶部
|
243
|
+
hide:
|
244
|
+
translate: 简繁转换
|
245
|
+
mode: 显示模式切换
|
package/languages/zh-TW.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
more: 更多
|
2
2
|
star: 喜歡這篇的人也看了
|
3
|
-
random:
|
3
|
+
random: 隨便逛逛
|
4
4
|
upload: 發佈時間:
|
5
5
|
totalk: 無需刪除空行,直接輸入評論即可
|
6
6
|
loading: 加載中...
|
@@ -18,9 +18,9 @@ copy:
|
|
18
18
|
|
19
19
|
copy_copyright:
|
20
20
|
author: 作者
|
21
|
-
link:
|
21
|
+
link: 鏈結
|
22
22
|
source: 來源
|
23
|
-
info:
|
23
|
+
info: 著作權歸作者所有。商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。
|
24
24
|
|
25
25
|
time:
|
26
26
|
day: "天前"
|
@@ -41,16 +41,16 @@ nav:
|
|
41
41
|
site_name_title: 返回博客主頁
|
42
42
|
backtop: 返回頂部
|
43
43
|
travellings: 開往-友鏈接力
|
44
|
-
search:
|
44
|
+
search: 搜尋
|
45
45
|
randompost: 隨機一篇文章
|
46
|
-
console:
|
46
|
+
console: 主控台
|
47
47
|
|
48
48
|
home:
|
49
49
|
home: 推薦
|
50
50
|
sticky: 置頂
|
51
51
|
new: 最新
|
52
52
|
read: 未讀
|
53
|
-
recommend:
|
53
|
+
recommend: 薦
|
54
54
|
recommendmore: 更多推薦
|
55
55
|
archives: 全部文章
|
56
56
|
|
@@ -66,9 +66,9 @@ post:
|
|
66
66
|
pv: 文章熱度
|
67
67
|
comment: 評論數
|
68
68
|
copyright:
|
69
|
-
reprint:
|
70
|
-
original:
|
71
|
-
original_end:
|
69
|
+
reprint: 本文是轉載或翻譯文章,版權歸原作者所有。轉載本文請聯繫原作者。
|
70
|
+
original: 本文是原創文章,採用
|
71
|
+
original_end: 協議,完整轉載請註明來自
|
72
72
|
share:
|
73
73
|
qq: 分享到QQ
|
74
74
|
weibo: 分享到微博
|
@@ -76,8 +76,8 @@ post:
|
|
76
76
|
twitter: 分享到Twitter
|
77
77
|
linkedin: 分享到LinkedIn
|
78
78
|
facebook: 分享到Facebook
|
79
|
-
link:
|
80
|
-
qrcode:
|
79
|
+
link: 複製文章鏈接
|
80
|
+
qrcode: 使用手機掃碼閱讀這篇文章
|
81
81
|
whatsapp: 分享到WhatsApp
|
82
82
|
ai:
|
83
83
|
title: 文章摘要
|
@@ -109,12 +109,12 @@ aside:
|
|
109
109
|
wordcount: '字數統計:'
|
110
110
|
toc: 文章目錄
|
111
111
|
tagmore: 查看全部
|
112
|
-
avatar:
|
112
|
+
avatar: 頭像
|
113
113
|
hello: 好久不見,
|
114
114
|
back: 歡迎再次回來,
|
115
|
-
sticker:
|
116
|
-
newpost:
|
117
|
-
newcomment:
|
115
|
+
sticker: 心情貼紙
|
116
|
+
newpost: 最近發佈
|
117
|
+
newcomment: 最新評論
|
118
118
|
card:
|
119
119
|
posts: '累計文章數:'
|
120
120
|
tags: '標籤總數:'
|
@@ -124,22 +124,23 @@ console:
|
|
124
124
|
comment_tip: 互動
|
125
125
|
comment_title: 評論
|
126
126
|
tag_tip: 標籤
|
127
|
-
tag_title:
|
128
|
-
switch_darkmode:
|
129
|
-
switch_hideAside:
|
127
|
+
tag_title: 尋找感興趣的領域
|
128
|
+
switch_darkmode: 晝夜切換
|
129
|
+
switch_hideAside: 側邊欄顯示控制
|
130
130
|
switch_keyboard: 鍵盤快捷鍵
|
131
131
|
switch_music: 音樂開關
|
132
132
|
archive_unit: 篇
|
133
133
|
recent_comment_more: 最近評論
|
134
134
|
newest_comment:
|
135
135
|
image: 圖片
|
136
|
-
link:
|
136
|
+
link: 鏈結
|
137
137
|
code: 代碼
|
138
138
|
emoji: 表情
|
139
139
|
|
140
140
|
sidebar:
|
141
141
|
function: 功能
|
142
142
|
darkmode: 顯示模式
|
143
|
+
siteinfo: 網站信息
|
143
144
|
|
144
145
|
footer:
|
145
146
|
description: 來自${title}的文章
|
@@ -181,10 +182,10 @@ f12: 開發者模式已打開,請遵循GPL協定。
|
|
181
182
|
|
182
183
|
right_menu:
|
183
184
|
copy: 複製選中文本
|
184
|
-
paste:
|
185
|
+
paste: 貼上文本
|
185
186
|
comment: 引用到評論
|
186
187
|
new: 新窗口打開
|
187
|
-
link:
|
188
|
+
link: 複製鏈結位址
|
188
189
|
img: 複製此圖片
|
189
190
|
downloadImg: 下載此圖片
|
190
191
|
search: 站內搜索
|
@@ -193,6 +194,7 @@ right_menu:
|
|
193
194
|
chs_to_cht: 轉為繁體
|
194
195
|
cht_to_chs: 转为简体
|
195
196
|
img_error: 此圖片無法複製與下載
|
197
|
+
ctrl_original_menu: 按住Ctrl+右鍵可打開瀏覽器右鍵選單
|
196
198
|
barrage:
|
197
199
|
open: 顯示熱評
|
198
200
|
close: 關閉熱評
|
@@ -229,4 +231,14 @@ message:
|
|
229
231
|
essay:
|
230
232
|
tip0: '- 已展開所有短文 -'
|
231
233
|
tip1: '- 只展示最近 #{count} 條短文 -'
|
232
|
-
link: '
|
234
|
+
link: '鏈結'
|
235
|
+
|
236
|
+
rightside:
|
237
|
+
show:
|
238
|
+
gear: 擴展
|
239
|
+
toc: 目錄
|
240
|
+
comment: 評論
|
241
|
+
top: 返回頂部
|
242
|
+
hide:
|
243
|
+
translate: 簡繁轉換
|
244
|
+
mode: 顯示模式切換
|
@@ -114,12 +114,14 @@
|
|
114
114
|
close: _p('right_menu.barrage.close')
|
115
115
|
}
|
116
116
|
}
|
117
|
-
if (theme.
|
117
|
+
if (theme.translate.enable) {
|
118
118
|
rightMenu.translate = {
|
119
|
-
translateDelay: theme.
|
120
|
-
defaultEncoding: theme.
|
119
|
+
translateDelay: theme.translate.translateDelay,
|
120
|
+
defaultEncoding: theme.translate.defaultEncoding
|
121
121
|
}
|
122
122
|
}
|
123
|
+
if (theme.right_menu.ctrlOriginalMenu)
|
124
|
+
rightMenu.ctrlOriginalMenu = _p('right_menu.ctrl_original_menu')
|
123
125
|
}
|
124
126
|
|
125
127
|
let highlight = false
|
@@ -33,7 +33,7 @@ div
|
|
33
33
|
script.
|
34
34
|
dark()
|
35
35
|
|
36
|
-
if theme.
|
36
|
+
if theme.translate.enable
|
37
37
|
script(src=url_for(theme.cdn.translate_js))
|
38
38
|
|
39
39
|
if theme.katex && theme.katex.enable
|
@@ -121,8 +121,5 @@ if theme.footer.randomlink
|
|
121
121
|
// pjax
|
122
122
|
!= partial("includes/widgets/third-party/pjax", {}, {cache: true})
|
123
123
|
|
124
|
-
// theme
|
125
|
-
include ../body/mode
|
126
|
-
|
127
124
|
// google adsense
|
128
125
|
include ../body/gadsense
|
@@ -26,6 +26,10 @@ html(lang=config.language, data-theme="light")
|
|
26
26
|
// keyboard
|
27
27
|
if theme.keyboard.enable
|
28
28
|
include ./keyboard.pug
|
29
|
+
|
30
|
+
// righhtside
|
31
|
+
if theme.rightside.enable
|
32
|
+
include rightside
|
29
33
|
|
30
34
|
#body-wrap(class = is_post() ? 'post' : 'page')
|
31
35
|
include ./header.pug
|
@@ -7,7 +7,7 @@ div#rightMenu
|
|
7
7
|
div.rightMenu-item#menu-forward
|
8
8
|
i.solitude.fa-solid.fa-arrow-right
|
9
9
|
div.rightMenu-item#menu-refresh
|
10
|
-
i.solitude.fa-solid.fa-
|
10
|
+
i.solitude.fa-solid.fa-arrows-rotate
|
11
11
|
div.rightMenu-item#menu-top
|
12
12
|
i.solitude.fa-solid.fa-arrow-up
|
13
13
|
div.rightMenu-group.rightMenu-line.rightMenuPlugin
|
@@ -68,10 +68,10 @@ div#rightMenu
|
|
68
68
|
span.menu-darkmode-text= _p('right_menu.light')
|
69
69
|
when 'dark'
|
70
70
|
span.menu-darkmode-text= _p('right_menu.dark')
|
71
|
-
if theme.right_menu.translate
|
71
|
+
if theme.right_menu.translate
|
72
72
|
div.rightMenu-item#menu-translate
|
73
73
|
i.solitude.fa-solid.fa-language
|
74
|
-
case theme.
|
74
|
+
case theme.translate.defaultEncoding
|
75
75
|
when 2
|
76
76
|
span= _p('right_menu.chs_to_cht')
|
77
77
|
when 1
|
@@ -29,4 +29,13 @@ div#sidebar(style="zoom: 1;")
|
|
29
29
|
div.card-tag-cloud
|
30
30
|
each tag in site.tags.find({ parent: { $exists: false } }).data
|
31
31
|
a(href=url_for(tag.path))= tag.name
|
32
|
-
sup= tag.length
|
32
|
+
sup= tag.length
|
33
|
+
if theme.wordcount && theme.aside.siteinfo.wordcount
|
34
|
+
span.sidebar-menu-item-title= __('sidebar.siteinfo')
|
35
|
+
.webinfo
|
36
|
+
.webinfo-item
|
37
|
+
.webinfo-item-title
|
38
|
+
i.item-icon.solitude.fa-solid.fa-file-word
|
39
|
+
.item-name= __('aside.wordcount')
|
40
|
+
.item-count= totalcount(site)
|
41
|
+
|
@@ -3,14 +3,11 @@
|
|
3
3
|
i.solitude.fa-solid.fa-map
|
4
4
|
span= _p('aside.newpost')
|
5
5
|
.aside-list
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
.
|
13
|
-
span.
|
14
|
-
if post.categories.data[0]
|
15
|
-
span.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
|
16
|
-
- index++
|
6
|
+
each post in site.posts.data.sort((a, b) => b.date < a.date ? -1 : 1).slice(0, 5)
|
7
|
+
a.aside-list-item(href=url_for(post.path) title=post.title)
|
8
|
+
.thumbnail
|
9
|
+
img(alt=post.title src=url_for(post.cover))
|
10
|
+
.content
|
11
|
+
span.title(href=url_for(post.path) title=post.title)= post.title
|
12
|
+
if post.categories.data[0]
|
13
|
+
span.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
|
@@ -13,10 +13,10 @@
|
|
13
13
|
.item-name= __('aside.pv')
|
14
14
|
if theme.busuanzi_use === 0
|
15
15
|
span#busuanzi_value_site_pv
|
16
|
-
i.solitude.fa-solid.fa-spinner
|
16
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
17
17
|
else
|
18
18
|
span#busuanzi_site_pv
|
19
|
-
i.solitude.fa-solid.fa-spinner
|
19
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
20
20
|
if theme.aside.siteinfo.uv
|
21
21
|
.webinfo-item
|
22
22
|
.webinfo-item-title
|
@@ -24,20 +24,20 @@
|
|
24
24
|
.item-name= __('aside.uv')
|
25
25
|
if theme.busuanzi_use === 0
|
26
26
|
span#busuanzi_value_site_uv
|
27
|
-
i.solitude.fa-solid.fa-spinner
|
27
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
28
28
|
else
|
29
29
|
span#busuanzi_site_uv
|
30
|
-
i.solitude.fa-solid.fa-spinner
|
30
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
31
31
|
if theme.aside.siteinfo.runtimeenable
|
32
32
|
.webinfo-item
|
33
33
|
.webinfo-item-title
|
34
|
-
i.item-icon.solitude.fa-solid.fa-calendar-
|
34
|
+
i.item-icon.solitude.fa-solid.fa-calendar-day
|
35
35
|
.item-name= __('aside.runtime')
|
36
36
|
.item-count#runtimeshow
|
37
37
|
if theme.aside.siteinfo.updatetime
|
38
38
|
.webinfo-item
|
39
39
|
.webinfo-item-title
|
40
|
-
i.item-icon.solitude.fa-solid.fa-rotate
|
40
|
+
i.item-icon.solitude.fa-solid.fa-arrows-rotate
|
41
41
|
.item-name= __('aside.updatetime')
|
42
42
|
time.item-count(datetime=new Date())
|
43
43
|
if theme.wordcount && theme.aside.siteinfo.wordcount
|
@@ -18,11 +18,11 @@
|
|
18
18
|
.meta-secondline
|
19
19
|
if theme.post.meta.date
|
20
20
|
span.post-meta-date(title=_p('post.posted') + ' ' + full_date(page.date))
|
21
|
-
i.post-meta-icon.solitude.fa-solid.fa-
|
21
|
+
i.post-meta-icon.solitude.fa-solid.fa-clock
|
22
22
|
time(datetime=date_xml(page.date))= date_xml(page.date)
|
23
23
|
if theme.post.meta.updated
|
24
24
|
span.post-meta-date(title=_p('post.updated') + ' ' + full_date(page.updated))
|
25
|
-
i.post-meta-icon.solitude.fa-solid.fa-
|
25
|
+
i.post-meta-icon.solitude.fa-solid.fa-arrows-rotate
|
26
26
|
time(datetime=date_xml(page.updated))= date_xml(page.updated)
|
27
27
|
if theme.wordcount
|
28
28
|
span.post-meta-wordcount
|
@@ -44,25 +44,25 @@
|
|
44
44
|
case theme.comment.use[0]
|
45
45
|
when "Twikoo"
|
46
46
|
span#twikoo_visitors
|
47
|
-
i.solitude.fa-solid.fa-spinner
|
47
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
48
48
|
when "Waline"
|
49
49
|
span.waline-pageview-count
|
50
|
-
i.solitude.fa-solid.fa-spinner
|
50
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
51
51
|
when "Valine"
|
52
52
|
span.leancloud_visitors(id=url_for(page.path))
|
53
53
|
span.leancloud-visitors-count
|
54
|
-
i.solitude.fa-solid.fa-spinner
|
54
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
55
55
|
when 'Artalk'
|
56
56
|
span#ArtalkPV
|
57
|
-
i.solitude.fa-solid.fa-spinner
|
57
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
58
58
|
else
|
59
59
|
if theme.busuanzi
|
60
60
|
if theme.busuanzi_use === 0
|
61
61
|
span#busuanzi_value_page_pv
|
62
|
-
i.solitude.fa-solid.fa-spinner
|
62
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
63
63
|
else
|
64
64
|
span#busuanzi_page_pv
|
65
|
-
i.solitude.fa-solid.fa-spinner
|
65
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
66
66
|
if theme.post.meta.comment && page.comment && theme.comment.count && theme.comment.use
|
67
67
|
span.post-meta-commentcount(title=_p('post.comment'), onclick="sco.scrollTo('post-comment')")
|
68
68
|
i.solitude.fa-solid.fa-comment
|
@@ -70,13 +70,13 @@
|
|
70
70
|
case theme.comment.use[0]
|
71
71
|
when "Twikoo"
|
72
72
|
span.twikoo-count
|
73
|
-
i.solitude.fa-solid.fa-spinner
|
73
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
74
74
|
when "Waline"
|
75
75
|
span.waline-comment-count
|
76
|
-
i.solitude.fa-solid.fa-spinner
|
76
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
77
77
|
when "Valine"
|
78
78
|
span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
79
|
-
i.solitude.fa-solid.fa-spinner
|
79
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
80
80
|
when 'Artalk'
|
81
81
|
span.artalk-count
|
82
|
-
i.solitude.fa-solid.fa-spinner
|
82
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
@@ -0,0 +1,6 @@
|
|
1
|
+
.rs_hide
|
2
|
+
if theme.rightside.hide.translate
|
3
|
+
button.translate(type='button' title=_p('rightside.hide.translate'))= '简'
|
4
|
+
if theme.rightside.hide.mode
|
5
|
+
button.mode(type='button' title=_p('rightside.hide.mode') onclick='sco.switchDarkMode()')
|
6
|
+
i.fas.fa-circle-half-stroke
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.rs_show
|
2
|
+
if theme.rightside.hide.enable
|
3
|
+
button.config(type='button' title=_p('rightside.show.gear') onclick='document.querySelector(".rs_hide").classList.toggle("show")')
|
4
|
+
i.fas.fa-gear.fa-spin
|
5
|
+
if page.toc
|
6
|
+
button.mobile.toc(type='button' title=_p('rightside.show.toc') onclick="document.querySelector('#card-toc').classList.toggle('open')")
|
7
|
+
i.fas.fa-list
|
8
|
+
if page.comment
|
9
|
+
button.comment(type='button' title=_p('rightside.show.comment') onclick="sco.scrollTo('post-comment')")
|
10
|
+
i.fas.fa-comment
|
11
|
+
button.top(type='button' title=_p('rightside.show.top') onclick='sco.toTop()')
|
12
|
+
i.fas.fa-arrow-up
|
@@ -12,13 +12,13 @@
|
|
12
12
|
case name
|
13
13
|
when "Twikoo"
|
14
14
|
span.twikoo-count
|
15
|
-
i.solitude.fa-solid.fa-spinner
|
15
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
16
16
|
when "Waline"
|
17
17
|
span.waline-comment-count
|
18
|
-
i.solitude.fa-solid.fa-spinner
|
18
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
19
19
|
when "Valine"
|
20
20
|
span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
21
|
-
i.solitude.fa-solid.fa-spinner
|
21
|
+
i.solitude.fa-solid.fa-spinner.fa-spin
|
22
22
|
when "Artalk"
|
23
23
|
span.artalk-count
|
24
24
|
| )
|
@@ -3,7 +3,7 @@
|
|
3
3
|
script.
|
4
4
|
const pjax = new Pjax({
|
5
5
|
elements: 'a:not([target="_blank"])',
|
6
|
-
selectors: ['title','#body-wrap','#site-config','meta[name="description"]','.js-pjax','meta[property^="og:"]','#config-diff'],
|
6
|
+
selectors: ['title','#body-wrap','#site-config','meta[name="description"]','.js-pjax','meta[property^="og:"]','#config-diff', '.rs_show', '.rs_hide'],
|
7
7
|
cacheBust: false,
|
8
8
|
analytics: !{google_adsense},
|
9
9
|
scrollRestoration: false
|
package/layout/page.pug
CHANGED