hexo-theme-solitude 2.1.3 → 2.1.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.
- package/README.md +25 -39
- package/{README_zh-Hans.md → README_en-US.md} +25 -39
- package/README_zh-Hant.md +5 -19
- package/_config.yml +28 -28
- package/languages/default.yml +2 -0
- package/languages/en.yml +2 -0
- package/languages/zh-CN.yml +2 -0
- package/languages/zh-TW.yml +2 -0
- package/layout/includes/footer.pug +30 -29
- package/layout/includes/head/config.pug +2 -1
- package/layout/includes/keyboard.pug +2 -1
- package/layout/includes/widgets/aside/asideInfoCard.pug +2 -2
- package/layout/includes/widgets/home/topGroup.pug +15 -13
- package/layout/includes/widgets/rightside/hide.pug +4 -1
- package/layout/includes/widgets/rightside/show.pug +3 -0
- package/layout/includes/widgets/third-party/music.pug +3 -3
- package/layout/includes/widgets/third-party/search/algolia-search.pug +3 -0
- package/layout/post.pug +2 -1
- package/package.json +1 -1
- package/plugins.yml +7 -7
- package/scripts/event/merge_config.js +1 -0
- package/scripts/event/page.js +3 -3
- package/scripts/filter/default.js +3 -1
- package/scripts/tags/typeit.js +2 -3
- package/source/css/_global/function.styl +4 -0
- package/source/css/_global/index.styl +8 -0
- package/source/css/_layout/aside.styl +2 -2
- package/source/css/_layout/capsule.styl +228 -217
- package/source/css/_page/_home/category-bar.styl +1 -0
- package/source/css/_page/_home/home.styl +5 -0
- package/source/css/_page/links.styl +16 -2
- package/source/css/_post/pagination.styl +1 -1
- package/source/css/_search/algolia-search.styl +23 -16
- package/source/css/_search/local-search.styl +11 -11
- package/source/css/_tags/gallery.styl +0 -1
- package/source/js/main.js +42 -13
- package/source/js/right_menu.js +2 -2
- package/source/js/search/algolia.js +16 -15
- package/source/js/search/local.js +11 -14
package/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
English
|
1
|
+
[English](README_en-US.md)丨简体中文丨[繁体中文](README_zh-Hant.md)
|
2
2
|
|
3
3
|
<div align="center">
|
4
4
|
|
5
|
-
|
5
|
+
<h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
|
6
6
|
|
7
|
-
|
7
|
+
一款优雅的 Hexo 主题,支持懒加载、PWA、Latex 以及多种评论系统。
|
8
8
|
|
9
|
-
|
9
|
+
主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
|
10
10
|
|
11
11
|

|
12
12
|

|
@@ -16,11 +16,11 @@ English丨[简体中文](README_zh-Hans.md)丨[繁体中文](README_zh-Hant.md)
|
|
16
16
|

|
17
17
|

|
18
18
|
|
19
|
-

|
20
20
|
[](https://discord.gg/HZXAnK4Sut)
|
21
21
|

|
22
22
|
|
23
|
-
[
|
23
|
+
[文档](https://solitude.js.org/)丨[预览](https://blog.everfu.cn/)
|
24
24
|
|
25
25
|
</div>
|
26
26
|
|
@@ -30,57 +30,43 @@ English丨[简体中文](README_zh-Hans.md)丨[繁体中文](README_zh-Hant.md)
|
|
30
30
|
|
31
31
|
</div>
|
32
32
|
|
33
|
-
##
|
33
|
+
## 特性
|
34
34
|
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
35
|
+
- 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA)
|
36
|
+
- 评论(Twikoo、Waline、Valine、Artalk、Giscus),支持双评论
|
37
|
+
- 昼夜切换(ColorMode)
|
38
|
+
- 灯箱(medium-zoom、fancybox)
|
39
|
+
- 数学公式(Latex)
|
40
|
+
- 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页、弹幕留言页
|
41
|
+
- 文章功能:AI 摘要、代码高亮
|
42
42
|
|
43
43
|
## Todo
|
44
44
|
|
45
|
-
- [
|
46
|
-
- [
|
45
|
+
- [x] 移动端目录支持
|
46
|
+
- [x] 增加右下角侧边栏
|
47
47
|
|
48
|
-
>
|
48
|
+
> 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
49
49
|
|
50
|
-
##
|
50
|
+
## 应用
|
51
51
|
|
52
|
-
1.
|
52
|
+
1. 使用 NPM 包进行安装
|
53
53
|
```bash
|
54
54
|
npm i hexo-theme-solitude
|
55
55
|
```
|
56
|
-
2.
|
56
|
+
2. 应用主题
|
57
57
|
```yaml
|
58
58
|
theme: solitude
|
59
59
|
```
|
60
60
|
|
61
|
-
|
61
|
+
前往 [文档](https://solitude.js.org/) 获取更多信息。
|
62
62
|
|
63
|
-
##
|
64
|
-
|
65
|
-
<div align="center">
|
66
|
-
|
67
|
-
[](https://ko-fi.com/W7W1YSMOK)
|
68
|
-
|
69
|
-
</div>
|
70
|
-
|
71
|
-
<p align="center">
|
72
|
-
<a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
|
73
|
-
<img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg' alt="sponsor"/>
|
74
|
-
</a>
|
75
|
-
</p>
|
76
|
-
|
77
|
-
## Community
|
63
|
+
## 社区
|
78
64
|
|
79
65
|
[](https://discord.gg/HZXAnK4Sut)
|
80
|
-
[](https://qm.qq.com/q/mxfomMvJPG)
|
81
67
|
|
82
|
-
##
|
68
|
+
## 版权
|
83
69
|
|
84
|
-
[MIT](./LICENSE) License © 2023
|
70
|
+
[MIT](./LICENSE) License © 2023-至今 [伍十七](https://github.com/everfu)
|
85
71
|
|
86
72
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
@@ -1,12 +1,12 @@
|
|
1
|
-
[
|
1
|
+
English丨[简体中文](README.md)丨[繁体中文](README_zh-Hant.md)
|
2
2
|
|
3
3
|
<div align="center">
|
4
4
|
|
5
|
-
<h1>Solitude</h1>
|
5
|
+
<h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
|
6
6
|
|
7
|
-
|
7
|
+
An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple commenting systems.
|
8
8
|
|
9
|
-
|
9
|
+
Theme design is fully licensed by [@张洪Heo](https://github.com/zhheo).
|
10
10
|
|
11
11
|

|
12
12
|

|
@@ -16,11 +16,11 @@
|
|
16
16
|

|
17
17
|

|
18
18
|
|
19
|
-

|
20
20
|
[](https://discord.gg/HZXAnK4Sut)
|
21
21
|

|
22
22
|
|
23
|
-
[
|
23
|
+
[Docs](https://solitude.js.org/)丨[Preview](https://blog.everfu.cn/)
|
24
24
|
|
25
25
|
</div>
|
26
26
|
|
@@ -30,57 +30,43 @@
|
|
30
30
|
|
31
31
|
</div>
|
32
32
|
|
33
|
-
##
|
33
|
+
## Features
|
34
34
|
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
35
|
+
- Page lazy loading (Pjax), image lazy loading (LazyLoad), offline application (PWA)
|
36
|
+
- Comments (Twikoo, Waline, Valine, Artalk, Giscus), supporting dual comments
|
37
|
+
- Day and night mode switch (ColorMode)
|
38
|
+
- Lightbox (medium-zoom, fancybox)
|
39
|
+
- Mathematical formulas (Latex)
|
40
|
+
- Special pages: Moments, My Equipment, Online Tools, Music Library, Friends' Links, Photo Album, Douban Page, Danmaku Message Board
|
41
|
+
- Article features: AI Summary, Code Highlighting
|
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
|
|
50
|
-
##
|
50
|
+
## Setup
|
51
51
|
|
52
|
-
1.
|
52
|
+
1. Use the NPM package
|
53
53
|
```bash
|
54
54
|
npm i hexo-theme-solitude
|
55
55
|
```
|
56
|
-
2.
|
56
|
+
2. Apply
|
57
57
|
```yaml
|
58
58
|
theme: solitude
|
59
59
|
```
|
60
60
|
|
61
|
-
|
61
|
+
Check out the [Documentation](https://solitude.js.org/) for more information.
|
62
62
|
|
63
|
-
##
|
64
|
-
|
65
|
-
<div align="center">
|
66
|
-
|
67
|
-
[](https://ko-fi.com/W7W1YSMOK)
|
68
|
-
|
69
|
-
</div>
|
70
|
-
|
71
|
-
<p align="center">
|
72
|
-
<a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
|
73
|
-
<img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg' alt="赞助者"/>
|
74
|
-
</a>
|
75
|
-
</p>
|
76
|
-
|
77
|
-
## 社区
|
63
|
+
## Community
|
78
64
|
|
79
65
|
[](https://discord.gg/HZXAnK4Sut)
|
80
|
-
[](https://qm.qq.com/q/mxfomMvJPG)
|
81
67
|
|
82
|
-
##
|
68
|
+
## License
|
83
69
|
|
84
|
-
[MIT](./LICENSE) License © 2023
|
70
|
+
[MIT](./LICENSE) License © 2023-PRESENT [伍十七](https://github.com/everfu)
|
85
71
|
|
86
72
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
package/README_zh-Hant.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
[English](
|
1
|
+
[English](README_en-US.md)丨[简体中文](README.md)丨繁体中文
|
2
2
|
|
3
3
|
<div align="center">
|
4
4
|
|
5
|
-
<h1>Solitude</h1>
|
5
|
+
<h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
|
6
6
|
|
7
7
|
一款優雅的 Hexo 主題,支援懶載入、PWA、Latex 以及多種評論系統。
|
8
8
|
|
@@ -16,11 +16,11 @@
|
|
16
16
|

|
17
17
|

|
18
18
|
|
19
|
-

|
20
20
|
[](https://discord.gg/HZXAnK4Sut)
|
21
21
|

|
22
22
|
|
23
|
-
[文档](https://solitude.js.org/)丨[預覽](https://
|
23
|
+
[文档](https://solitude.js.org/)丨[預覽](https://blog.everfu.cn/)
|
24
24
|
|
25
25
|
</div>
|
26
26
|
|
@@ -58,20 +58,6 @@
|
|
58
58
|
|
59
59
|
前往 [文檔](https://solitude.js.org/) 獲取更多資訊。
|
60
60
|
|
61
|
-
## 贊助者
|
62
|
-
|
63
|
-
<div align="center">
|
64
|
-
|
65
|
-
[](https://ko-fi.com/W7W1YSMOK)
|
66
|
-
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<p align="center">
|
70
|
-
<a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
|
71
|
-
<img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg'/>
|
72
|
-
</a>
|
73
|
-
</p>
|
74
|
-
|
75
61
|
## 社區
|
76
62
|
|
77
63
|
[](https://discord.gg/HZXAnK4Sut)
|
@@ -79,6 +65,6 @@
|
|
79
65
|
|
80
66
|
## 版權
|
81
67
|
|
82
|
-
[MIT](./LICENSE) License © 2023-至今 [
|
68
|
+
[MIT](./LICENSE) License © 2023-至今 [伍十七](https://github.com/everfu)
|
83
69
|
|
84
70
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
package/_config.yml
CHANGED
@@ -37,30 +37,29 @@ nav:
|
|
37
37
|
# Menu
|
38
38
|
# 菜单
|
39
39
|
menu:
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# About: /about/
|
40
|
+
# 首页: / # name: link
|
41
|
+
# 文库: # name
|
42
|
+
# 全部文章: /archives/ || fas fa-folder-closed # item name: link || icon
|
43
|
+
# 全部分类: /categories/ || fas fa-clone
|
44
|
+
# 全部标签: /tags/ || fas fa-tags
|
45
|
+
# 友链:
|
46
|
+
# 朋友圈: /moments/ || fas fa-wifi
|
47
|
+
# 友情链接: /links/ || fas fa-user-group
|
48
|
+
# 宝藏博主: javascript:travelling() || fas fa-gift
|
49
|
+
# 关于:
|
50
|
+
# 我的装备: /equipment/ || fas fa-laptop
|
51
|
+
# 在线工具: /tlink/ || fas fa-toolbox
|
52
|
+
# 音乐馆: /music/ || fas fa-music
|
54
53
|
|
55
54
|
# Right button
|
56
55
|
# 右侧按钮
|
57
56
|
right:
|
58
57
|
random: false # Random article / 随机文章按钮
|
59
58
|
custom:
|
60
|
-
# - name:
|
61
|
-
# url: https://www.travellings.cn/go.html #
|
62
|
-
# icon: fas fa-train #
|
63
|
-
# onclick: #
|
59
|
+
# - name: 开往 # 名字
|
60
|
+
# url: https://www.travellings.cn/go.html # 跳转链接
|
61
|
+
# icon: fas fa-train # 图标
|
62
|
+
# onclick: # 点击事件
|
64
63
|
# id: travellings_button # id
|
65
64
|
# --------------------------- end ---------------------------
|
66
65
|
|
@@ -70,8 +69,8 @@ nav:
|
|
70
69
|
hometop:
|
71
70
|
enable: false
|
72
71
|
banner:
|
73
|
-
title: #
|
74
|
-
url: Hexo Theme Solitude
|
72
|
+
title: # 宁静致远 <br> 热爱生活 # 标题
|
73
|
+
url: Hexo Theme Solitude # 小字
|
75
74
|
icon:
|
76
75
|
# HTML: # name
|
77
76
|
# img: https://i.postimg.cc/vBWVnY8q/html.png # url
|
@@ -143,17 +142,17 @@ aside:
|
|
143
142
|
# Style 2 is invalid
|
144
143
|
# Style 2 无效
|
145
144
|
sayhello:
|
146
|
-
morning: ✨
|
147
|
-
noon:
|
148
|
-
afternoon:
|
149
|
-
night:
|
150
|
-
goodnight:
|
145
|
+
morning: ✨ 早上好,新的一天开始了
|
146
|
+
noon: 🍲 午餐时间
|
147
|
+
afternoon: 🌞 下午好
|
148
|
+
night: 早点休息
|
149
|
+
goodnight: 晚安 😴
|
151
150
|
# Style 2 is invalid, Triggered when sayhello is clicked.
|
152
151
|
# Style 2 无效, 点击 sayhello 时触发
|
153
152
|
sayhello2:
|
154
|
-
# -
|
155
|
-
# -
|
156
|
-
# -
|
153
|
+
# - 你可以的
|
154
|
+
# - 你一定可以的
|
155
|
+
# - 祝你好运,陌生人
|
157
156
|
# social
|
158
157
|
# 社交信息图标
|
159
158
|
information:
|
@@ -613,6 +612,7 @@ capsule:
|
|
613
612
|
server: netease
|
614
613
|
# 类型:playlist / song
|
615
614
|
type: playlist
|
615
|
+
volume: 0.8
|
616
616
|
# --------------------------- end ---------------------------
|
617
617
|
|
618
618
|
# --------------------------- start ---------------------------
|
package/languages/default.yml
CHANGED
@@ -96,6 +96,7 @@ search:
|
|
96
96
|
hit: Found ${query} results for you
|
97
97
|
placeholder: Enter keywords to search
|
98
98
|
count: Total <b>${count}</b> results.
|
99
|
+
load: Loading...
|
99
100
|
|
100
101
|
head:
|
101
102
|
noscript: Please enable JavaScript to view the site
|
@@ -240,6 +241,7 @@ rightside:
|
|
240
241
|
toc: Toc
|
241
242
|
comment: Comment
|
242
243
|
top: Top
|
244
|
+
barrage: 弹
|
243
245
|
hide:
|
244
246
|
translate: 简繁转换
|
245
247
|
mode: Mode
|
package/languages/en.yml
CHANGED
@@ -96,6 +96,7 @@ search:
|
|
96
96
|
hit: Found ${query} results for you
|
97
97
|
placeholder: Enter keywords to search
|
98
98
|
count: Total <b>${count}</b> results.
|
99
|
+
load: Loading...
|
99
100
|
|
100
101
|
head:
|
101
102
|
noscript: Please enable JavaScript to view the site
|
@@ -241,6 +242,7 @@ rightside:
|
|
241
242
|
toc: Toc
|
242
243
|
comment: Comment
|
243
244
|
top: Top
|
245
|
+
barrage: 弹
|
244
246
|
hide:
|
245
247
|
translate: 简繁转换
|
246
248
|
mode: Mode
|
package/languages/zh-CN.yml
CHANGED
@@ -96,6 +96,7 @@ search:
|
|
96
96
|
hit: 找到 ${hits} 条结果,用时 ${time} 毫秒
|
97
97
|
placeholder: 输入关键词快速查找
|
98
98
|
count: 共 <b>${count}</b> 条结果。
|
99
|
+
load: 搜索中...
|
99
100
|
|
100
101
|
head:
|
101
102
|
noscript: 开启JavaScript才能访问本站哦~
|
@@ -240,6 +241,7 @@ rightside:
|
|
240
241
|
toc: 目录
|
241
242
|
comment: 评论
|
242
243
|
top: 返回顶部
|
244
|
+
barrage: 弹
|
243
245
|
hide:
|
244
246
|
translate: 简繁转换
|
245
247
|
mode: 显示模式切换
|
package/languages/zh-TW.yml
CHANGED
@@ -96,6 +96,7 @@ search:
|
|
96
96
|
hit: 找到 ${hits} 條結果,用時 ${time} 毫秒
|
97
97
|
placeholder: 輸入關鍵詞快速查找
|
98
98
|
count: 共 <b>${count}<b> 條結果。
|
99
|
+
load: 加載中...
|
99
100
|
|
100
101
|
head:
|
101
102
|
noscript: 開啟JavaScript才能訪問本站哦~
|
@@ -239,6 +240,7 @@ rightside:
|
|
239
240
|
toc: 目錄
|
240
241
|
comment: 評論
|
241
242
|
top: 返回頂部
|
243
|
+
barrage: 彈
|
242
244
|
hide:
|
243
245
|
translate: 簡繁轉換
|
244
246
|
mode: 顯示模式切換
|
@@ -12,39 +12,40 @@ if theme.post.footer.enable && is_post()
|
|
12
12
|
div.footer-bar-description=theme.post.footer.desc
|
13
13
|
if theme.post.footer.button.enable
|
14
14
|
a.footer-bar-link(href=url_for(theme.post.footer.button.url))= theme.post.footer.button.name
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
if information.left || information.right || information.author
|
16
|
+
div#footer_deal
|
17
|
+
- var leftInfo = information.left || []
|
18
|
+
- var rightInfo = information.right || []
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
each value, label in leftInfo
|
21
|
+
- var array = value.split('||')
|
22
|
+
a.deal_link(href=url_for(trim(array[0])), title=label)
|
23
|
+
i.solitude(class=array[1])
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
if information.author
|
26
|
+
div#footer_mini_logo.nolazyload.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
|
27
|
+
img(src=information.author, alt=_p('nav.backtop'))
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
each value, label in rightInfo
|
30
|
+
- var array = value.split('||')
|
31
|
+
a.deal_link(href=url_for(trim(array[0])), title=label)
|
32
|
+
i.solitude(class=array[1])
|
33
|
+
if group
|
34
|
+
div#st-footer
|
35
|
+
each value, x in group || []
|
36
|
+
div.footer-group
|
37
|
+
h3.footer-title= x
|
38
|
+
div.footer-links
|
39
|
+
each url, y in value
|
40
|
+
a.footer-item(href=url_for(url), title=y)= y
|
33
41
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
if theme.footer && theme.footer.randomlink
|
42
|
-
div.footer-group
|
43
|
-
div.footer-title-group
|
44
|
-
h3.footer-title= _p('footer.randomlink')
|
45
|
-
button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
|
46
|
-
i.solitude.fa-solid.fa-arrows-rotate
|
47
|
-
div.footer-links#friend-links-in-footer
|
42
|
+
if theme.footer && theme.footer.randomlink
|
43
|
+
div.footer-group
|
44
|
+
div.footer-title-group
|
45
|
+
h3.footer-title= _p('footer.randomlink')
|
46
|
+
button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
|
47
|
+
i.solitude.fa-solid.fa-arrows-rotate
|
48
|
+
div.footer-links#friend-links-in-footer
|
48
49
|
div#footer-bar
|
49
50
|
div.footer-bar-links
|
50
51
|
div.footer-bar-left
|
@@ -61,5 +61,6 @@ script.
|
|
61
61
|
var sco_keyboards = localStorage.getItem('keyboard') === 'true'
|
62
62
|
if (sco_keyboards) {
|
63
63
|
openKeyboard();
|
64
|
-
document.getElementById('consoleKeyboard')
|
64
|
+
let keyboard = document.getElementById('consoleKeyboard');
|
65
|
+
keyboard?.classList.add('on');
|
65
66
|
}
|
@@ -43,11 +43,11 @@
|
|
43
43
|
a(href=url_for('/archives/') title=_p('aside.card.posts') + site.posts.length)
|
44
44
|
.length-num= site.posts.length
|
45
45
|
.headline= _p('page.archives')
|
46
|
-
if site.tags.length !== 0
|
46
|
+
if site.tags.length !== 0 || theme.page.tags
|
47
47
|
a(href=url_for('/tags/') title=_p('aside.card.tags') + site.tags.length)
|
48
48
|
.length-num= site.tags.length
|
49
49
|
.headline= _p('page.tag')
|
50
|
-
if site.categories.length !== 0
|
50
|
+
if site.categories.length !== 0 || theme.page.categories
|
51
51
|
a(href=url_for('/categories/') title=_p('aside.card.categories') + site.categories.length)
|
52
52
|
.length-num= site.categories.length
|
53
53
|
.headline= _p('page.category')
|
@@ -1,23 +1,25 @@
|
|
1
1
|
- var filteredPosts = site.posts.data.filter(item => item.recommend === true).slice(0,6)
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
2
|
+
if filteredPosts.length > 0
|
3
|
+
.top-post-group
|
4
|
+
each post in filteredPosts
|
5
|
+
.top-post-item
|
6
|
+
.post_cover
|
7
|
+
a(href=url_for(post.path), title=post.title)
|
8
|
+
span.top-post-top-text= _p('home.recommend')
|
9
|
+
img.post_bg(alt=post.title, src=url_for(post.cover))
|
10
|
+
.top-post-info
|
11
|
+
a.article-title(href=url_for(post.path), title=post.title)= post.title
|
11
12
|
|
12
13
|
mixin todayCardContent
|
13
14
|
.todayCard-info
|
14
15
|
.todayCard-tips= theme.hometop.recommendList.sup
|
15
16
|
.todayCard-title= theme.hometop.recommendList.title
|
16
17
|
.todayCard-cover.nolazyload(style=`background: url('${theme.hometop.recommendList.img}') no-repeat center /cover`)
|
17
|
-
.
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
if filteredPosts.length > 0
|
19
|
+
.banner-button-group
|
20
|
+
a.banner-button(onclick="window.event.cancelBubble=true;sco.hideTodayCard();")
|
21
|
+
i.solitude.fa-solid.fa-circle-plus
|
22
|
+
span.banner-button-text= _p('home.recommendmore')
|
21
23
|
|
22
24
|
case theme.hometop.recommendList.url.startsWith('/')
|
23
25
|
when true
|
@@ -6,4 +6,7 @@
|
|
6
6
|
i.fas.fa-circle-half-stroke
|
7
7
|
if theme.rightside.hide.aside
|
8
8
|
button.aside.pc(type='button' title=_p('rightside.hide.aside') onclick='sco.switchHideAside()')
|
9
|
-
i.fas.fa-arrows-alt-h
|
9
|
+
i.fas.fa-arrows-alt-h
|
10
|
+
if theme.keyboard.enable
|
11
|
+
button.keyboard.pc(type='button' title=_p('console.switch_keyboard') onclick="sco.switchKeyboard()")
|
12
|
+
i.fas.fa-keyboard
|
@@ -8,6 +8,9 @@
|
|
8
8
|
if page.comment
|
9
9
|
button.comment(type='button' title=_p('rightside.show.comment') onclick="sco.scrollTo('post-comment')")
|
10
10
|
i.fas.fa-comment
|
11
|
+
if theme.comment.commentBarrage && page.comment
|
12
|
+
button.barrage.pc(type='button' title=_p('rightside.show.barrage') onclick="sco.switchCommentBarrage()")
|
13
|
+
span= _p('rightside.show.barrage')
|
11
14
|
button.top(type='button' title=_p('rightside.show.top') onclick='sco.toTop()')
|
12
15
|
i.fas.fa-arrow-up
|
13
16
|
span#percent= "0"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
div.needEndHide#nav-music
|
2
|
-
|
3
|
-
|
1
|
+
div.needEndHide#nav-music
|
2
|
+
#nav-music-hoverTips(onclick='sco.musicToggle()')= __('music.hit')
|
3
|
+
meting-js(id=theme.capsule.id server=theme.capsule.server type=theme.capsule.type mutex="true" preload="none" theme="var(--efu-main)" data-lrctype="0" order="random" volume=theme.capsule.volume)
|
package/layout/post.pug
CHANGED