hexo-theme-solitude 1.13.2 → 1.13.4

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.
@@ -11,4 +11,4 @@ liberapay: # Replace with a single Liberapay username
11
11
  issuehunt: # Replace with a single IssueHunt username
12
12
  otechie: # Replace with a single Otechie username
13
13
  lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
14
- custom: [https://afdian.net/a/everfu] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
14
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
package/_config.yml CHANGED
@@ -1,4 +1,4 @@
1
- #---------------------------
1
+ # ---------------------------
2
2
  # Hexo Theme Solitude
3
3
  # Author: EverFu
4
4
  # Github: https://github.com/everfu/hexo-theme-solitude
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # 赞助:https://afdian.net/a/everfu
13
13
  # sponsor: https://github.com/sponsors/everfu
14
- #---------------------------
14
+ # ---------------------------
15
15
 
16
16
  # 站点设置
17
17
  # site settings
@@ -37,43 +37,43 @@ nav:
37
37
  # logo 箱子
38
38
  # logo group
39
39
  group:
40
- # 项目: # 分类名称
41
- # Solitude: https://github.com/everfu/hexo-theme-solitude || /img/pwa/favicon.ico # 子菜单名称(submenu name): 链接地址(address) || 图标(icon)
40
+ # 项目: # 分类名称
41
+ # Solitude: https://github.com/everfu/hexo-theme-solitude || /img/pwa/favicon.ico # 子菜单名称(submenu name): 链接地址(address) || 图标(icon)
42
42
 
43
43
  # 中心菜单
44
44
  # center menu
45
45
  menu:
46
- # 首页: / # 显示名称:路径 / Display name: path
47
- # 文库: # 显示名称 / Display name
48
- # 文章列表: /archives/ || st-folder-fill # 子菜单名称:路径 || 图标 / Submenu name: path || icon
49
- # 全部分类: /categories/ || st-checkbox-multiple-blank-fill
50
- # 全部标签: /tags/ || st-price-tag-fill
51
- # 友链:
52
- # 友链鱼塘: /moments/ || st-wifi-fill
53
- # 友情链接: /links/ || st-group-fill
54
- # 宝藏博主: javascript:travelling() || st-gift-fill
55
- # 我的:
56
- # 装备: /equipment/ || st-laptop-line
57
- # 工具箱: /tlink/ || st-tools-fill
58
- # 音乐馆: /music/ || st-disc-fill
59
- # 关于:
60
- # 关于本站: /about/ || st-contacts-fill
46
+ # 首页: / # 显示名称:路径 / Display name: path
47
+ # 文库: # 显示名称 / Display name
48
+ # 文章列表: /archives/ || st-folder-fill # 子菜单名称:路径 || 图标 / Submenu name: path || icon
49
+ # 全部分类: /categories/ || st-checkbox-multiple-blank-fill
50
+ # 全部标签: /tags/ || st-price-tag-fill
51
+ # 友链:
52
+ # 友链鱼塘: /moments/ || st-wifi-fill
53
+ # 友情链接: /links/ || st-group-fill
54
+ # 宝藏博主: javascript:travelling() || st-gift-fill
55
+ # 我的:
56
+ # 装备: /equipment/ || st-laptop-line
57
+ # 工具箱: /tlink/ || st-tools-fill
58
+ # 音乐馆: /music/ || st-disc-fill
59
+ # 关于:
60
+ # 关于本站: /about/ || st-contacts-fill
61
61
 
62
62
  # 右侧按钮
63
63
  # Button on the right
64
64
  right:
65
65
  random: false # 随机文章跳转 / random post button
66
- console: false #控制台 / console
66
+ console: false # 控制台 / console
67
67
  # 自定义按钮
68
68
  # custom button
69
69
  # 左至右
70
70
  # from left to right
71
71
  custom:
72
- # - name: 开往 - 友链接力 # 显示文字 / Displayed text
73
- # url: https://www.travellings.cn/go.html # 跳转链接 / Jump link
74
- # icon: st-train-line # 图标 / Icon
75
- # onclick: # 点击事件 / Click event
76
- # id: travellings_button # id
72
+ # - name: 开往 - 友链接力 # 显示文字 / Displayed text
73
+ # url: https://www.travellings.cn/go.html # 跳转链接 / Jump link
74
+ # icon: st-train-line # 图标 / Icon
75
+ # onclick: # 点击事件 / Click event
76
+ # id: travellings_button # id
77
77
 
78
78
  # 首页顶部样式
79
79
  # Home top style
@@ -93,31 +93,31 @@ hometop:
93
93
  # Carousel icon
94
94
  # tip: 76x76 size
95
95
  icon:
96
- # HTML: # 名字 / Name
97
- # img: https://7.isyangs.cn/34/65f2e42921677-34.png # 图片 / Image
98
- # color: "#e9572b" # 背景色 / Background color
99
- # JS:
100
- # img: https://7.isyangs.cn/34/65f2e43ceddda-34.png
101
- # color: "#f7cb4f"
102
- # Docker:
103
- # img: https://7.isyangs.cn/34/65f2e45462045-34.png
104
- # color: "#57b6e6"
105
- # Flutter:
106
- # img: https://7.isyangs.cn/34/65f2e47acbe98-34.png
107
- # color: "#ffffff"
108
- # WebPack:
109
- # img: https://7.isyangs.cn/34/65f2e488bf8ed-34.png
110
- # color: "#2e3a41"
111
- # Git:
112
- # img: https://7.isyangs.cn/34/65f2e499066fa-34.png
113
- # color: "#df5b40"
96
+ # HTML: # 名字 / Name
97
+ # img: https://7.isyangs.cn/34/65f2e42921677-34.png # 图片 / Image
98
+ # color: "#e9572b" # 背景色 / Background color
99
+ # JS:
100
+ # img: https://7.isyangs.cn/34/65f2e43ceddda-34.png
101
+ # color: "#f7cb4f"
102
+ # Docker:
103
+ # img: https://7.isyangs.cn/34/65f2e45462045-34.png
104
+ # color: "#57b6e6"
105
+ # Flutter:
106
+ # img: https://7.isyangs.cn/34/65f2e47acbe98-34.png
107
+ # color: "#ffffff"
108
+ # WebPack:
109
+ # img: https://7.isyangs.cn/34/65f2e488bf8ed-34.png
110
+ # color: "#2e3a41"
111
+ # Git:
112
+ # img: https://7.isyangs.cn/34/65f2e499066fa-34.png
113
+ # color: "#df5b40"
114
114
 
115
115
  # 左下跳转按钮
116
116
  # Banner lower left jump button
117
117
  group:
118
- # 热门: /tags/热门/ || st-fire-fill || linear-gradient(to right,#f65,#ffbf37)
119
- # 教程: /tags/教程/ || st-book-mark-fill || linear-gradient(to right,#358bff,#15c6ff)
120
- # 精选: /tags/精选/ || st-star-smile-fill || linear-gradient(to right,#18e7ae,#1eebeb)
118
+ # 热门: /tags/热门/ || st-fire-fill || linear-gradient(to right, #f65, #ffbf37)
119
+ # 教程: /tags/教程/ || st-book-mark-fill || linear-gradient(to right, #358bff, #15c6ff)
120
+ # 精选: /tags/精选/ || st-star-smile-fill || linear-gradient(to right, #18e7ae, #1eebeb)
121
121
 
122
122
  # 右侧置顶列表(在文章的front matter中添加“recommend: true”)
123
123
  # Right top list (add "recommend: true" in the front matter of the article)
@@ -201,7 +201,8 @@ aside:
201
201
  # Small icons at the bottom of the personal information card, fill in according to the example
202
202
  # 个人信息卡片顶部按钮的打招呼语句
203
203
  # Greeting statement of the button at the top of the personal information card
204
- sayhello: # 样式为2时无效
204
+ # 样式为2时无效
205
+ sayhello:
205
206
  morning: 一日之计在于晨
206
207
  noon: 吃饱了才有力气干活
207
208
  afternoon: 集中精力,攻克难关
@@ -209,20 +210,22 @@ aside:
209
210
  goodnight: 睡个好觉,保证精力充沛
210
211
  # 个人信息卡片顶部按钮的切换文字
211
212
  # Switching text of the button at the top of the personal information card
212
- sayhello2: # 样式为2时无效
213
- # - 🤖️ 数码科技爱好者
214
- # - 🔍 分享与热心帮助
215
- # - 🏠 智能家居小能手
216
- # - 🔨 设计开发一条龙
217
- # - 🤝 专修交互与设计
218
- # - 🏃 脚踏实地行动派
219
- # - 🧱 团队小组发动机
220
- # - 💢 壮汉人狠话不多
221
- # - 🎮 电竞游戏爱好者
213
+ # 样式为2时无效
214
+ sayhello2:
215
+ # - 🤖️ 数码科技爱好者
216
+ # - 🔍 分享与热心帮助
217
+ # - 🏠 智能家居小能手
218
+ # - 🔨 设计开发一条龙
219
+ # - 🤝 专修交互与设计
220
+ # - 🏃 脚踏实地行动派
221
+ # - 🧱 团队小组发动机
222
+ # - 💢 壮汉人狠话不多
223
+ # - 🎮 电竞游戏爱好者
222
224
  # 个人信息卡片底部的小图标,按照例子填写
223
- information: # 样式为1时请不要超过4个
224
- # Github: https://github.com/efuo || st-github-line # 名称:链接 || 图标 / Name: link || icon
225
- # Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
225
+ # 样式为1时请不要超过4个
226
+ information:
227
+ # Github: https://github.com/efuo || st-github-line # 名称:链接 || 图标 / Name: link || icon
228
+ # Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
226
229
 
227
230
  # 二维码
228
231
  # Official account QR code
@@ -300,15 +303,15 @@ aside:
300
303
  # 建站时间
301
304
  # Website creation time
302
305
  runtimeenable: true
303
- # 格式:yyyy-MM-dd hh-mm-ss
304
- # Format: yyyy-MM-dd hh-mm-ss
306
+ # 格式:yyyy-MM-dd hh:mm:ss
307
+ # Format: yyyy-MM-dd hh:mm:ss
305
308
  runtime: "2023-04-20 00:00:00"
306
309
 
307
310
  # 首页文章配置信息
308
311
  # Configure information on the home page
309
312
  index_post_list:
310
313
  direction: column # row / column
311
- column: 2 #2:2列 3:3列
314
+ column: 2 # 2:2列 3:3列
312
315
  content: false # 1: post.description / 2: 自动获取description或截取内容(Automatically get descriptions or screenshots) / 3: 只使用截取内容(Use only screenshots) / false: 不显示内容(No content is displayed)
313
316
  length: 500 # 截取内容的长度 : The length of the screenshot content
314
317
  cover: both # left: 在左侧 : left / right: 在右侧 : right / both: 两侧 : both
@@ -317,13 +320,13 @@ index_post_list:
317
320
  # page default settings
318
321
  page:
319
322
  error: true # 404页面 / 404 page
320
- tags: true # 标签页 / Tags page
321
- categories: true # 分类页 / Categories page
322
- default: # 默认值 / Default value
323
+ tags: true # 标签页 / Tags page
324
+ categories: true # 分类页 / Categories page
325
+ default: # 默认值 / Default value
323
326
  # 默认图片
324
327
  # default cover
325
328
  cover:
326
- # - /img/default.png # 默认图片 / default cover
329
+ # - /img/default.png # 默认图片 / default cover
327
330
 
328
331
  # 文章页默认设置
329
332
  # post default settings
@@ -333,7 +336,7 @@ post:
333
336
  # 文章默认图片
334
337
  # default cover
335
338
  cover:
336
- # - # 默认图片 / default cover
339
+ # - # 默认图片 / default cover
337
340
  # 文章发布默认地址
338
341
  # default post locate
339
342
  locate: 衡阳
@@ -364,27 +367,27 @@ post:
364
367
  title: 感谢您的赞赏。
365
368
  desc: 因为有你们的支持,我才体会到写文章的价值。
366
369
  list:
367
- # - name: 爱发电
368
- # qcode: https://s3.qjqq.cn/47/661ba8e695f17.webp!color
369
- # url: https://afdian.net/a/efu0u0/
370
- # color: var(--efu-purple)
371
- # - name: Github Sponsor
372
- # qcode: https://s3.qjqq.cn/47/661ba900c4bc1.webp!color
373
- # url: https://github.com/sponsors/efuo
374
- # color: var(--efu-black)
370
+ # - name: 爱发电
371
+ # qcode: https://s3.qjqq.cn/47/661ba8e695f17.webp!color
372
+ # url: https://afdian.net/a/efu0u0/
373
+ # color: var(--efu-purple)
374
+ # - name: Github Sponsor
375
+ # qcode: https://s3.qjqq.cn/47/661ba900c4bc1.webp!color
376
+ # url: https://github.com/sponsors/efuo
377
+ # color: var(--efu-black)
375
378
  # 分享按钮,需要是什么哪些按钮,填写后开启
376
379
  share:
377
380
  enable: false
378
381
  list:
379
- # - qq
380
- # - weibo
381
- # - twitter
382
- # - facebook
383
- # - telegram
384
- # - whatsapp
385
- # - linkedin
386
- # - link
387
- # - qrcode
382
+ # - qq
383
+ # - weibo
384
+ # - twitter
385
+ # - facebook
386
+ # - telegram
387
+ # - whatsapp
388
+ # - linkedin
389
+ # - link
390
+ # - qrcode
388
391
  # 版权中订阅按钮跳转链接,填写地址后开启
389
392
  # Subscription button jump link in copyright
390
393
  rss: # /atom.xml
@@ -451,30 +454,32 @@ footer:
451
454
  # Bottom row of icons
452
455
  information:
453
456
  author: false # 是否显示 site_icon / enable site_icon in footer
454
- left: # 左侧显示图标
455
- # Github: https://github.com/efuo || st-github-line # 名称:链接 || 图标 / Name: link || icon
456
- # Mail: mailto:o@efu.me || st-mail-line
457
- right: # 右侧显示图标
458
- # Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
459
- # 抖音: https://v.douyin.com/iJsLc8jt/ || st-douyin-fill
457
+ # 左侧显示图标
458
+ left:
459
+ # Github: https://github.com/efuo || st-github-line # 名称:链接 || 图标 / Name: link || icon
460
+ # Mail: mailto:o@efu.me || st-mail-line
461
+ # 右侧显示图标
462
+ right:
463
+ # Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
464
+ # 抖音: https://v.douyin.com/iJsLc8jt/ || st-douyin-fill
460
465
 
461
466
  # 底部导航栏
462
467
  # Bottom navigation bar
463
468
  group:
464
- # 导航:
465
- # 归档: /archives/
466
- # 分类: /categories/
467
- # 标签: /tags/
468
- # 服务:
469
- # 阿里云: https://aliyun.com/
470
- # 51la统计: https://v6.51.la/
471
- # 百度统计: https://tongji.baidu.com/
472
- # 支持:
473
- # 打赏记录: /about/
474
- # 协议:
475
- # Cookies: /cookies/
476
- # 用户协议: /privacy/
477
- # 版权协议: /copyright/
469
+ # 导航:
470
+ # 归档: /archives/
471
+ # 分类: /categories/
472
+ # 标签: /tags/
473
+ # 服务:
474
+ # 阿里云: https://aliyun.com/
475
+ # 51la统计: https://v6.51.la/
476
+ # 百度统计: https://tongji.baidu.com/
477
+ # 支持:
478
+ # 打赏记录: /about/
479
+ # 协议:
480
+ # Cookies: /cookies/
481
+ # 用户协议: /privacy/
482
+ # 版权协议: /copyright/
478
483
 
479
484
  # 页脚随机友链
480
485
  # Random links at footer
@@ -588,31 +593,32 @@ capsule:
588
593
  # Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
589
594
  type: playlist
590
595
 
591
- # 快捷菜单你
596
+ # 快捷菜单
592
597
  # quick menu
593
598
  keyboard:
594
599
  enable: false # 是否开启键盘控制 / Whether to enable keyboard control
595
600
  # 键盘控制配置
596
601
  # Keyboard control configuration
597
602
  list:
598
- # name: 按键名称(name)
599
- # key: 按键(Key)
600
- # func: 方法(function)
601
- # sco: sco内置方法(sco.'function')
602
- # url: 跳转链接(link)
603
- # ------------------
604
- # - name: 关闭快捷键功能
605
- # key: K
606
- # func: keyboard
607
- # - name: 打开中控台
608
- # key: A
609
- # sco: showConsole
610
- # - name: 播放/暂停音乐
611
- # key: M
612
- # sco: musicToggle
613
- # - name: 打开友情链接
614
- # key: L
615
- # url: "/links/"
603
+ # 说明:
604
+ # - name: 按键名称(name)
605
+ # key: 按键(Key)
606
+ # func: 方法(function)
607
+ # sco: sco内置方法(sco.'function')
608
+ # url: 跳转链接(link)
609
+ # ------------------
610
+ # - name: 关闭快捷键功能
611
+ # key: K
612
+ # func: keyboard
613
+ # - name: 打开中控台
614
+ # key: A
615
+ # sco: showConsole
616
+ # - name: 播放/暂停音乐
617
+ # key: M
618
+ # sco: musicToggle
619
+ # - name: 打开友情链接
620
+ # key: L
621
+ # url: /links/
616
622
 
617
623
  # 复制
618
624
  # Copy
@@ -620,7 +626,7 @@ copy:
620
626
  enable: true
621
627
  copyright: # Turn on Link copyright information after copying.(开启后将在默认增加版权信息)
622
628
  enable: true
623
- limit: 50 # word count. (字数)
629
+ limit: 50 # 字数 / word count
624
630
 
625
631
  # 懒加载
626
632
  # lazyload
@@ -679,13 +685,13 @@ mermaid: false
679
685
  OpenGraph:
680
686
  enable: false
681
687
  options:
682
- # twitter_card:
683
- # twitter_image:
684
- # twitter_id:
685
- # twitter_site:
686
- # google_plus:
687
- # fb_admins:
688
- # fb_app_id:
688
+ # twitter_card:
689
+ # twitter_image:
690
+ # twitter_id:
691
+ # twitter_site:
692
+ # google_plus:
693
+ # fb_admins:
694
+ # fb_app_id:
689
695
 
690
696
  # 字数统计
691
697
  # word count
@@ -709,11 +715,11 @@ search:
709
715
  # 推荐标签
710
716
  # Recommended tags
711
717
  tags:
712
- # - Solitude
713
- # - Hexo
718
+ # - Solitude
719
+ # - Hexo
714
720
  algolia:
715
- # hits:
716
- # per_page: 6
721
+ # hits:
722
+ # per_page: 6
717
723
  local:
718
724
  preload: false
719
725
  CDN:
@@ -723,18 +729,20 @@ search:
723
729
  tianli_talk:
724
730
  enable: false
725
731
  title: 智能客服与搜索
726
- key: # https://ai.tianli0.top/?InviteID=OZ3Z0V2R
727
- # 默认值
728
- # backgroundColor: "var(--efu-main)",
729
- # bottom: "60px",
730
- option: #https://ai.tianli0.top/codeMaker.html
731
- # defaultInput: false
732
- # upLoadWeb: true
733
- # userTitle: Efu Chat
734
- # userDesc: 你好,我是 Efu 的智能客服,有什么可以帮助你的?
735
- # showInviteLink: 'https://ai.tianli0.top/?InviteID=OZ3Z0V2R'
736
- # blackDom:
737
- # - .aplayer
732
+ key:
733
+ # 参见 https://ai.tianli0.top/?InviteID=OZ3Z0V2R
734
+ # 默认值
735
+ # backgroundColor: var(--efu-main)
736
+ # bottom: 60px
737
+ option:
738
+ # 参见 https://ai.tianli0.top/codeMaker.html
739
+ # defaultInput: false
740
+ # upLoadWeb: true
741
+ # userTitle: Efu Chat
742
+ # userDesc: 你好,我是 Efu 的智能客服,有什么可以帮助你的?
743
+ # showInviteLink: https://ai.tianli0.top/?InviteID=OZ3Z0V2R
744
+ # blackDom:
745
+ # - .aplayer
738
746
  # 文章摘要AI
739
747
  # post abstract AI
740
748
  post_ai:
@@ -775,7 +783,7 @@ comment:
775
783
  commentBarrage: false # 热评开关 / Hot comment switch
776
784
  lazyload: false # 懒加载
777
785
  count: false # 评论数展示
778
- pv: false # 是否使用評論統計頁面訪問
786
+ pv: false # 是否使用评论统计页面访问
779
787
  avatar: https://cravatar.cn # Gravatar link
780
788
  hot_tip: # 多人互动
781
789
  enable: false # 开启后将在文章列表显示多人互动
@@ -841,10 +849,10 @@ console:
841
849
  # 仅需要填写验证代码即可,譬如:codeva-KReTIJu5us
842
850
  # Only need to fill in the verification code, such as: codeva-KReTIJu5us
843
851
  verify_site:
844
- # - name: google-site-verification
845
- # content: xxxxxx
846
- # - name: baidu-site-verification
847
- # content: xxxxxxx
852
+ # - name: google-site-verification
853
+ # content: xxxxxx
854
+ # - name: baidu-site-verification
855
+ # content: xxxxxxx
848
856
 
849
857
  # CSS 前缀
850
858
  # CSS prefix
@@ -859,17 +867,19 @@ css_prefix: false
859
867
  font:
860
868
  font-size: 16px
861
869
  code-font-size: 16px
862
- font-family: "PingFang SC,Hiragino Sans GB,Microsoft YaHei"
863
- code-font-family: "monospace, monospace"
870
+ font-family: "PingFang SC, Hiragino Sans GB, Microsoft YaHei"
871
+ code-font-family: '"monospace", monospace'
864
872
 
865
873
  # 插入代码到头部 </head> 之前 和 底部 </body> 之前
866
874
  # Insert code before </head> and before </body>
867
875
  # 插入额外代码 如:统计,广告等
868
876
  # Insert additional code such as: statistics, advertising, etc.
869
877
  extends:
870
- head: # 在head中插入 / Insert in head
871
- # - <script src="https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js"></script>
872
- body: # 在body中插入 / Insert in body
878
+ head:
879
+ # 在head中插入 / Insert in head
880
+ # - <script src="https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js"></script>
881
+ body:
882
+ # 在body中插入 / Insert in body
873
883
 
874
884
  # PWA
875
885
  # https://developer.mozilla.org/zh-CN/docs/Web/Progressive_web_apps
@@ -915,26 +925,26 @@ right_menu:
915
925
  # 自定义菜单项列表
916
926
  # Customize the list of menu items.
917
927
  custom_list:
918
- # - name: 随机短文
919
- # click: toRandomPost()
920
- # id: menu-randomPost
921
- # class:
922
- # icon: st-signal-tower-fill
923
- # - name: 全部分类
924
- # click: pjax.loadUrl('/categories/') # 外链用 window.open,pjax 无法请求跨域内容
925
- # id:
926
- # class:
927
- # icon: st-checkbox-multiple-blank-fill
928
- # - name: 全部标签
929
- # click: pjax.loadUrl('/tags/')
930
- # id:
931
- # class:
932
- # icon: st-price-tag-fill
933
- # - name: 赞助主题
934
- # click: window.open('https://afdian.net/a/efu0u0/', '_blank')
935
- # id:
936
- # class:
937
- # icon: st-afdian-line
928
+ # - name: 随机短文
929
+ # click: toRandomPost()
930
+ # id: menu-randomPost
931
+ # class:
932
+ # icon: st-signal-tower-fill
933
+ # - name: 全部分类
934
+ # click: pjax.loadUrl('/categories/') # 外链用 window.open,pjax 无法请求跨域内容
935
+ # id:
936
+ # class:
937
+ # icon: st-checkbox-multiple-blank-fill
938
+ # - name: 全部标签
939
+ # click: pjax.loadUrl('/tags/')
940
+ # id:
941
+ # class:
942
+ # icon: st-price-tag-fill
943
+ # - name: 赞助主题
944
+ # click: window.open('https://afdian.net/a/efu0u0/', '_blank')
945
+ # id:
946
+ # class:
947
+ # icon: st-afdian-line
938
948
 
939
949
  # 哀悼模式,网页黑白
940
950
  # Mourning mode, web page black and white
@@ -944,9 +954,9 @@ memorial:
944
954
  # Date, (M-D)
945
955
  # eg: 7-7, 9-18, 12-13 ...
946
956
  date:
947
- - "7-7" # 七七事变
948
- - "9-18" # 九一八事变/建军节
949
- - "12-13" # 南京国家公祭日
957
+ - 7-7 # 七七事变
958
+ - 9-18 # 九一八事变
959
+ - 12-13 # 南京大屠杀国家公祭日
950
960
 
951
961
  # 诱骗
952
962
  # lure
@@ -954,10 +964,10 @@ lure:
954
964
  enable: false
955
965
  # 跳出
956
966
  # Jump out
957
- jump: "404 Not Found"
967
+ jump: 404 Not Found
958
968
  # 切回
959
969
  # Switch back
960
- back: "ヾ(≧∇≦*)ゝ嘿嘿,上当了吧"
970
+ back: ヾ(≧∇≦*)ゝ嘿嘿,上当了吧
961
971
 
962
972
  # 文章过期提醒
963
973
  # Article expiration reminder
@@ -969,8 +979,8 @@ expire:
969
979
  position: top # top / bottom
970
980
  # 过期提示
971
981
  # Expiration prompt
972
- text_prev: "本文已于"
973
- text_next: "天前过期,如果内容不符,请联系站长更新。"
982
+ text_prev: 本文已于
983
+ text_next: 天前过期,如果内容不符,请联系站长更新。
974
984
 
975
985
  # 背景图片
976
986
  # Background image
@@ -37,7 +37,7 @@ page:
37
37
  404: Page not found
38
38
 
39
39
  home:
40
- home: Home
40
+ home: Recommend
41
41
  sticky: Sticky
42
42
  new: New
43
43
  read: Unread
package/languages/en.yml CHANGED
@@ -37,7 +37,7 @@ page:
37
37
  404: Page not found
38
38
 
39
39
  home:
40
- home: Home
40
+ home: Recommend
41
41
  sticky: Sticky
42
42
  new: New
43
43
  read: Unread
@@ -46,7 +46,7 @@ nav:
46
46
  console: 中控台
47
47
 
48
48
  home:
49
- home: 首页
49
+ home: 推荐
50
50
  sticky: 置顶
51
51
  new: 最新
52
52
  read: 未读
@@ -46,7 +46,7 @@ nav:
46
46
  console: 中控台
47
47
 
48
48
  home:
49
- home: 首頁
49
+ home: 推薦
50
50
  sticky: 置頂
51
51
  new: 最新
52
52
  read: 未讀
@@ -1,5 +1,5 @@
1
1
  - const { recentComment, card } = theme.console
2
- - const { cache } = recentComment
2
+ - const cache = recentComment.storage
3
3
  - const limit = 6
4
4
  - const { use } = theme.comment
5
5
 
@@ -1,5 +1,4 @@
1
1
  - page.type = is_home() ? 'solitude' : page.type
2
-
3
2
  doctype html
4
3
  html(lang=config.language, data-theme="light")
5
4
  head
@@ -10,7 +10,7 @@
10
10
  a.thumbnail(href=url_for(post.path) title=post.title)
11
11
  img(alt=post.title src=url_for(post.cover))
12
12
  .content
13
- a.title(href=url_for(post.path) title=post.title)= post.title
13
+ span.title(href=url_for(post.path) title=post.title)= post.title
14
14
  if post.categories.data[0]
15
- a.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
15
+ span.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
16
16
  - index++
@@ -0,0 +1,45 @@
1
+ - const { server, site } = theme.artalk
2
+
3
+ script.
4
+ function updatePostsBasedOnComments() {
5
+ const location = window.location
6
+ const posts = Array.from(document.querySelectorAll('.recent-post-item[onclick] .post_cover a')).map(item => item.href.replace(location, GLOBAL_CONFIG.root))
7
+
8
+ function get() {
9
+ fetch(`!{server}/api/v2/stats/page_comment?page_keys=${posts.join(',')}&site_name=!{site}`).then(res => res.json())
10
+ .then(item => {
11
+ item = item.data
12
+ posts.forEach(post => {
13
+ const comment = item[post]
14
+ if (comment > !{count}) {
15
+ const postElement = document.querySelector(`.recent-post-item[onclick*="${post}"]`);
16
+ if (postElement) {
17
+ const infoTopTips = postElement.querySelector(".recent-post-info-top-tips"),
18
+ originalSpan = infoTopTips ? infoTopTips.querySelector(".original") : null;
19
+ if (originalSpan) {
20
+ const hotTip = createHotTipElement();
21
+ infoTopTips.insertBefore(hotTip, originalSpan);
22
+ }
23
+ }
24
+ }
25
+ })
26
+ })
27
+ .catch(error => console.error("Error fetching comments:", error));
28
+ }
29
+
30
+ function createHotTipElement() {
31
+ const hotTip = document.createElement("span");
32
+ hotTip.classList.add("hot-tip");
33
+
34
+ const icon = document.createElement("i");
35
+ icon.classList.add("solitude", "st-fire-fill");
36
+ hotTip.appendChild(icon);
37
+
38
+ const commentCount = document.createTextNode("!{_p('hot-tip')}");
39
+ hotTip.appendChild(commentCount);
40
+
41
+ return hotTip;
42
+ }
43
+
44
+ get()
45
+ }
@@ -4,4 +4,6 @@
4
4
  if use
5
5
  case use[0]
6
6
  when 'Twikoo'
7
- include ./twikoo
7
+ include ./twikoo
8
+ when 'Artalk'
9
+ include ./artalk
@@ -29,6 +29,13 @@ script.
29
29
  })
30
30
  const destroyArtalk = () => artalkItem.destroy()
31
31
  utils.addGlobalFn('pjax', destroyArtalk, 'destroyArtalk')
32
+ document.addEventListener('pjax:complete', function () {
33
+ artalkItem.update({
34
+ pageKey: window.location.pathname,
35
+ pageTitle: document.title
36
+ });
37
+ artalkItem.reload();
38
+ });
32
39
  }
33
40
  const loadArtalk = async () => {
34
41
  if (typeof Artalk === 'object') initArtalk()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.13.2",
3
+ "version": "1.13.4",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/everfu/hexo-theme-solitude/issues",
27
27
  "email": "o@everfu.org"
28
28
  },
29
- "homepage": "https://www.efu.me/",
29
+ "homepage": "https://everfu.github.io/Solitude/",
30
30
  "author": "Hexo-Theme-Solitude<o@everfu.org>",
31
31
  "license": "MIT"
32
32
  }
package/plugins.yml CHANGED
@@ -5,7 +5,7 @@ algolia_search:
5
5
  instantsearch:
6
6
  name: instantsearch.js
7
7
  file: dist/instantsearch.production.min.js
8
- version: 4.73.0
8
+ version: 4.73.2
9
9
  pjax:
10
10
  name: pjax
11
11
  file: pjax.min.js
@@ -13,21 +13,21 @@ pjax:
13
13
  twikoo:
14
14
  name: twikoo
15
15
  file: dist/twikoo.all.min.js
16
- version: 1.6.36
16
+ version: 1.6.38
17
17
  waline_js:
18
18
  name: '@waline/client'
19
19
  file: dist/waline.js
20
20
  other_name: waline
21
- version: 3.2.7
21
+ version: 3.3.0
22
22
  waline_css:
23
23
  name: '@waline/client'
24
24
  file: dist/waline.css
25
- version: 3.2.7
25
+ version: 3.3.0
26
26
  other_name: waline
27
27
  valine:
28
28
  name: valine
29
29
  file: dist/Valine.min.js
30
- version: 1.5.1
30
+ version: 1.5.2
31
31
  artalk_css:
32
32
  name: artalk
33
33
  file: dist/Artalk.css
@@ -70,12 +70,12 @@ pace_js:
70
70
  swiper_css:
71
71
  name: swiper
72
72
  file: swiper-bundle.min.css
73
- version: 11.0.5
73
+ version: 11.1.7
74
74
  other_name: Swiper
75
75
  swiper_js:
76
76
  name: swiper
77
77
  file: swiper-bundle.min.js
78
- version: 11.0.5
78
+ version: 11.1.7
79
79
  other_name: Swiper
80
80
  busuanzi_js:
81
81
  name: busuanzi
@@ -1,5 +1,5 @@
1
1
  hexo.extend.filter.register('after_render:html', function (data) {
2
2
  const posts = hexo.locals.get('posts').filter(post => post.random !== false).map(post => post.path);
3
- data += `<script>const posts=${JSON.stringify(posts)};function toRandomPost(){ pjax.loadUrl('/'+posts[Math.floor(Math.random()*posts.length)]); }</script>`;
3
+ data += `<script>const posts=${JSON.stringify(posts)};function toRandomPost(){ pjax.loadUrl(GLOBAL_CONFIG.root+posts[Math.floor(Math.random()*posts.length)]); }</script>`;
4
4
  return data;
5
5
  });
@@ -75,8 +75,7 @@
75
75
  font-size .6rem
76
76
  color var(--efu-secondtext)
77
77
  border-radius 8px
78
-
79
- if hexo-config('comment.use')[1]
78
+ if index(hexo-config('comment.use'), ',') || hexo-config('comment.use')[1]
80
79
  &.move
81
80
  if hexo-config('comment.count')
82
81
  .comment-head
@@ -102,7 +101,7 @@
102
101
  margin .5rem 0
103
102
  position relative
104
103
 
105
- if hexo-config('comment.use')[1]
104
+ if index(hexo-config('comment.use'), ',') || ',' in hexo-config('comment.use')
106
105
  .count span:last-child
107
106
  display none
108
107
 
@@ -138,7 +137,7 @@
138
137
  content ''
139
138
  transition .4s
140
139
 
141
- if hexo-config('comment.use')[1]
140
+ if ',' in hexo-config('comment.use') || index(hexo-config('comment.use'), ',')
142
141
  .comment-wrap
143
142
  > div:last-child
144
143
  display none
@@ -440,8 +440,9 @@ if hexo-config('background.enable')
440
440
  height 100%
441
441
  background-image url(hexo-config('background.light'))
442
442
  background-size cover
443
+ background-position center
443
444
  pointer-events none
444
445
  background-repeat no-repeat
445
446
 
446
447
  [data-theme=dark] &
447
- background-image url(hexo-config('background.dark'))
448
+ background-image url(hexo-config('background.dark'))
@@ -6,6 +6,8 @@
6
6
 
7
7
  .post &
8
8
  padding 1rem 2rem
9
+ +maxWidth768()
10
+ padding .5rem
9
11
 
10
12
  iframe
11
13
  border-radius 12px
@@ -36,9 +38,9 @@
36
38
  overflow-x scroll
37
39
 
38
40
  a.headerlink
39
- float right
40
41
  opacity .08
41
- position relative
42
+ position absolute
43
+ right 0
42
44
  padding 0
43
45
  border none
44
46
  border-radius 8px
@@ -181,10 +183,11 @@
181
183
 
182
184
  &.post-content
183
185
  h1, h2, h3, h4
186
+ padding-right 1rem
187
+ position relative
184
188
  display flex
189
+ flex-wrap wrap
185
190
  align-items center
186
- justify-content space-between
187
- flex-direction row-reverse
188
191
  transition all .2s ease-out 0s
189
192
 
190
193
  h1
@@ -200,6 +203,12 @@
200
203
  h3, h4
201
204
  font-size 1.1rem
202
205
  line-height 1.3
206
+ hr
207
+ display flex
208
+ position relative
209
+ margin 0.5rem 0
210
+ border-width 0
211
+ border-top 1px dashed var(--efu-theme-op)
203
212
 
204
213
  if hexo-config('mediumZoom')
205
214
  .medium-zoom--opened .medium-zoom-overlay
@@ -962,14 +962,15 @@ if hexo-config('aside.card.style') == 2
962
962
  flex-direction column
963
963
 
964
964
  .title
965
+ display -webkit-box
966
+ -webkit-box-orient vertical
965
967
  font-weight 700
966
- padding 2px 0
967
- margin-bottom 8px
968
- color var(--efu-fontcolor)
968
+ margin 4px 0
969
969
  font-size 95%
970
970
  line-height 1.3
971
971
  -webkit-line-clamp 2
972
972
  overflow hidden
973
+ text-overflow ellipsis
973
974
 
974
975
  .article-recent_post_categories
975
976
  font-size 12px
@@ -133,7 +133,6 @@
133
133
  align-items center
134
134
  margin-right 1.5rem
135
135
  overflow hidden
136
- gap .5rem
137
136
 
138
137
  +maxWidth768()
139
138
  margin-right 12px
@@ -142,6 +141,11 @@
142
141
  padding 0
143
142
 
144
143
  .nav-button
144
+ margin-left .5rem
145
+
146
+ &#nav-totop
147
+ margin-right .5rem
148
+
145
149
  a
146
150
  height 35px
147
151
  width 35px
@@ -270,7 +274,7 @@
270
274
  transform scale(0)
271
275
  margin-left 0
272
276
  overflow hidden
273
- transition .3s ease-in
277
+ transition .3s
274
278
 
275
279
  #page-header #scroll-down .scroll-down-effects,
276
280
  #page-header #site-subtitle, #page-header #site-title
@@ -686,7 +690,7 @@ if hexo-config('nav.group')
686
690
  opacity 0
687
691
  pointer-events none
688
692
  backdrop-filter blur(20px)
689
- -webkit-backdrop-filter blur(20px)
693
+ -webkit-backdrop-filter blur(20px)
690
694
 
691
695
  +maxWidth768()
692
696
  left 0
@@ -756,6 +760,7 @@ if hexo-config('nav.group')
756
760
  #site-name
757
761
  &:after
758
762
  color var(--efu-card-bg)
763
+
759
764
  .not-top-img
760
765
  #nav
761
766
  a
@@ -893,7 +898,7 @@ if hexo-config('nav.group')
893
898
  overflow hidden
894
899
  left 0
895
900
 
896
- if hexo-config('nav.right.console')
901
+ if hexo-config('console.enable')
897
902
  #nav-console
898
903
  +maxWidth768()
899
904
  display none
@@ -89,4 +89,7 @@
89
89
  height 20px
90
90
 
91
91
  img
92
- border-radius 200px
92
+ border-radius 200px
93
+ width 100%
94
+ height 100%
95
+ object-fit cover
@@ -13,7 +13,7 @@
13
13
  animation gradient 15s ease infinite
14
14
  min-height 200px
15
15
  height fit-content
16
- width 59.5%
16
+ width calc(60% - (.5rem / 2))
17
17
 
18
18
  .card-content
19
19
  display flex
@@ -7,7 +7,7 @@
7
7
  background linear-gradient(120deg, #5b27ff 0, #00d4ff 100%)
8
8
  background-size 200%
9
9
  animation gradient 15s ease infinite
10
- width 59.5%
10
+ width calc(60% - .5rem / 2)
11
11
 
12
12
  .title1
13
13
  opacity .8
@@ -28,10 +28,11 @@
28
28
  justify-content center
29
29
  align-items flex-start
30
30
  flex-direction column
31
- width 39.5%
31
+ width calc(40% - (.5rem / 2))
32
32
 
33
33
  h2
34
34
  margin-right auto
35
+ width 100%
35
36
  font-size 36px
36
37
  font-family Helvetica
37
38
  line-height 1.06
@@ -7,7 +7,7 @@
7
7
  align-items flex-start
8
8
  flex-direction column
9
9
  justify-content center
10
- width 39.5%
10
+ width calc(40% - (.5rem / 2))
11
11
 
12
12
  .maxim-title
13
13
  display flex
@@ -23,8 +23,8 @@
23
23
  animation: slide-in .6s .3s backwards;
24
24
 
25
25
  +maxWidth768()
26
- margin-bottom 0
27
- margin-top 0
26
+ margin-bottom .5rem
27
+ margin-top .5rem
28
28
  border-radius 0
29
29
  background var(--efu-background)
30
30
  padding 0 1rem
@@ -34,6 +34,9 @@
34
34
  display flex
35
35
  align-items center
36
36
 
37
+ +maxWidth768()
38
+ display none
39
+
37
40
  .category-bar-next
38
41
  margin-left 8px
39
42
  cursor pointer
@@ -63,15 +66,17 @@
63
66
  border-radius 8px
64
67
  align-items center
65
68
  height 30px
69
+ +maxWidth768()
70
+ height 44px
71
+ gap 6px
66
72
 
67
73
  &::-webkit-scrollbar
68
74
  display: none
69
75
 
70
76
  .category-bar-item
71
- &:hover
72
- a
73
- background var(--efu-secondbg-bg)
74
- color var(--efu-lighttext)
77
+ a:hover
78
+ background var(--efu-main)
79
+ color var(--efu-white)
75
80
 
76
81
  a
77
82
  padding .1rem .5rem
@@ -81,15 +86,16 @@
81
86
  display flex
82
87
  align-items center
83
88
  height 30px
84
- border var(--style-border-always)
89
+
90
+ +maxWidth768()
91
+ border-radius 50px
92
+ background var(--efu-card-bg)
93
+ border var(--style-border-always)
94
+ padding 21px 16px
85
95
 
86
96
  &.select
87
97
  order -1
88
98
 
89
99
  a
90
100
  background var(--efu-theme)
91
- color var(--efu-white)
92
-
93
- &.home
94
- a
95
- border initial
101
+ color var(--efu-white)
@@ -8,7 +8,6 @@
8
8
  +maxWidth768()
9
9
  border-radius 0
10
10
  background var(--efu-background)
11
- margin-bottom 0
12
11
  position -webkit-sticky
13
12
  position sticky
14
13
  z-index 1
@@ -380,7 +380,7 @@
380
380
  height auto
381
381
  position unset
382
382
  padding 1rem 2rem
383
- background var(--efu-main)
383
+ background var(--efu-hovertext)
384
384
  border-radius 12px 12px 0 0
385
385
  +minWidth768()
386
386
  min-height 250px
@@ -34,7 +34,7 @@
34
34
  box-shadow var(--efu-shadow-border)
35
35
 
36
36
  &.pagination-post
37
- margin 0 2rem
37
+ margin 0 2rem 1rem
38
38
  background var(--efu-card-bg)
39
39
 
40
40
  +minWidth768()
@@ -10,6 +10,7 @@
10
10
  .post-tools-left
11
11
  white-space: nowrap
12
12
  display: flex
13
+ gap: .5rem
13
14
  text-overflow: ellipsis
14
15
  justify-content: center
15
16
  flex-wrap: wrap
@@ -181,7 +182,6 @@
181
182
  line-height: 39px
182
183
  box-shadow: var(--efu-shadow-green)
183
184
  border-radius: 8px
184
- margin-left: .5rem
185
185
  cursor: pointer
186
186
  text-align: center
187
187
  transition: .3s
@@ -0,0 +1,4 @@
1
+ #article-container
2
+ .inline-img
3
+ display inline-block
4
+ margin 0
@@ -63,6 +63,9 @@ div.timenode
63
63
  border-radius 8px
64
64
  background var(--blockquote-bg)
65
65
 
66
+ p
67
+ margin 0 !important
68
+
66
69
  p:first-child
67
70
  margin-top 0
68
71