hexo-theme-solitude 2.1.1 → 2.1.3

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/_config.yml CHANGED
@@ -12,6 +12,8 @@
12
12
  # 赞助:https://afdian.com/a/everfu
13
13
  # ---------------------------
14
14
 
15
+ ### Basic configuration
16
+
15
17
  # --------------------------- start ---------------------------
16
18
  # Site information
17
19
  # 网站信息
@@ -169,15 +171,6 @@ aside:
169
171
  backcolor: "var(--efu-blue)" # Background color
170
172
  # --------------------------- end ---------------------------
171
173
 
172
- # --------------------------- start ---------------------------
173
- # recent comments(⚠️ Comments need to be configured first.)
174
- # 最新评论(⚠️ 需要先配置评论)
175
- newest_comment:
176
- enable: true
177
- storage: .5 # 缓存时间 1: 1天 / .5 : 半天 / Cache time 1: 1 day .5 : half a day
178
- limit: 5 # 评论数 / Number of comments
179
- # --------------------------- end ---------------------------
180
-
181
174
  # --------------------------- start ---------------------------
182
175
  # article table of contents
183
176
  # 文章目录
@@ -232,15 +225,6 @@ aside:
232
225
  # --------------------------- end ---------------------------
233
226
  # --------------------------- end ---------------------------
234
227
 
235
- # --------------------------- start ---------------------------
236
- # Home page article configuration information
237
- # 首页文章配置信息
238
- index_post_list:
239
- direction: column # row / column
240
- column: 2 # 2: 2 columns 3: 3 columns
241
- cover: both
242
- # --------------------------- end ---------------------------
243
-
244
228
  # --------------------------- start ---------------------------
245
229
  # Page default settings
246
230
  # 页面默认设置
@@ -388,6 +372,60 @@ display_mode:
388
372
  universe: false
389
373
  # --------------------------- end ---------------------------
390
374
 
375
+ # --------------------------- start ---------------------------
376
+ # Font
377
+ # 字体
378
+ font:
379
+ font-size: 16px
380
+ code-font-size: 16px
381
+ # Global font
382
+ # 全局字体
383
+ font-family: "PingFang SC, Hiragino Sans GB, Microsoft YaHei"
384
+ # Code font
385
+ # 代码字体
386
+ code-font-family: '"monospace", monospace'
387
+ # --------------------------- end ---------------------------
388
+
389
+ # --------------------------- start ---------------------------
390
+ # Background
391
+ # 背景图片
392
+ background:
393
+ enable: false
394
+ opacity: .2
395
+ dark: https://i.pinimg.com/originals/d8/b3/9d/d8b39d12b653810db452c437211aeb2e.png
396
+ light: https://i.pinimg.com/originals/93/57/38/935738ed9657b296c2ef0ebd2151eb66.jpg
397
+ # --------------------------- end ---------------------------
398
+
399
+ # --------------------------- start ---------------------------
400
+ # Lure
401
+ # When the user exits the page, modify the title
402
+ # 当用户退出页面时,修改标题
403
+ lure:
404
+ enable: false
405
+ jump: 404 Not Found
406
+ back: ヾ(≧∇≦*)ゝHey, hey, you fell for it.
407
+ # --------------------------- end ---------------------------
408
+
409
+ # --------------------------- start ---------------------------
410
+ # Article expiration
411
+ # 文章过期
412
+ expire:
413
+ enable: false
414
+ time: 30 # days
415
+ position: top # top / bottom
416
+ text_prev: "This article expired "
417
+ text_next: " day ago, if the content does not match, please contact the webmaster to update it."
418
+ # --------------------------- end ---------------------------
419
+
420
+ # --------------------------- start ---------------------------
421
+ # Home page article configuration information
422
+ # 首页文章配置信息
423
+ index_post_list:
424
+ direction: column # row / column
425
+ column: 2 # 2: 2 columns 3: 3 columns
426
+ cover: both
427
+ # --------------------------- end ---------------------------
428
+
391
429
  # --------------------------- start ---------------------------
392
430
  # Related articles
393
431
  # 相关文章
@@ -399,6 +437,113 @@ related_post:
399
437
  date_type: created
400
438
  # --------------------------- end ---------------------------
401
439
 
440
+ # --------------------------- start ---------------------------
441
+ # Custom right menu
442
+ # 自定义右键菜单
443
+ right_menu:
444
+ enable: false
445
+ # Whether to display the hot comment switch.
446
+ # 是否显示热门评论开关
447
+ commentBarrage: false
448
+ # Whether to display the browser's context menu when hold Ctrl key.
449
+ # 是否在按住 Ctrl 键时显示浏览器右键菜单
450
+ ctrlOriginalMenu: false
451
+ # Simplified and Traditional Chinese translation.
452
+ # 简繁体转换
453
+ translate: false
454
+ # Custom list
455
+ # 自定义列表
456
+ custom_list:
457
+ # - name: 随机文章
458
+ # click: toRandomPost()
459
+ # id: menu-randomPost
460
+ # class:
461
+ # icon: fas fa-tower-broadcast
462
+ # - name: 全部分类
463
+ # click: pjax.loadUrl('/categories/') # External links with window.open, pjax can not request cross-domain content.
464
+ # id:
465
+ # class:
466
+ # icon: fas fa-clone
467
+ # - name: 全部标签
468
+ # click: pjax.loadUrl('/tags/')
469
+ # id:
470
+ # class:
471
+ # icon: fas fa-tags
472
+ # --------------------------- end -----------------------
473
+
474
+ # --------------------------- start ---------------------------
475
+ # Copy
476
+ # information
477
+ # 复制信息
478
+ copy:
479
+ enable: false
480
+ # Turn on Link copyright information after copying.
481
+ # 复制后链接版权信息
482
+ copyright:
483
+ enable: false
484
+ # Display when the number of words copied exceeds
485
+ # 复制文字时超过多少字数显示
486
+ limit: 50
487
+ # --------------------------- end ---------------------------
488
+
489
+ # --------------------------- start ---------------------------
490
+ # Mermaid
491
+ mermaid: false
492
+ # --------------------------- end ---------------------------
493
+
494
+ # --------------------------- start ---------------------------
495
+ # Chart.js
496
+ chart: false
497
+ # --------------------------- end ---------------------------
498
+
499
+ # --------------------------- start ---------------------------
500
+ # typeit
501
+ typeit: false
502
+ # --------------------------- end ---------------------------
503
+
504
+ ### Extended configuration
505
+
506
+ # --------------------------- start ---------------------------
507
+ # Console
508
+ # 控制台
509
+ console:
510
+ enable: false
511
+ # Recent comments
512
+ # 最新评论
513
+ recentComment:
514
+ enable: false
515
+ # Cache time 1: 1 day / .5 : half a day
516
+ # 缓存时间 1: 1天 / .5 : 半天
517
+ storage: .2
518
+ card:
519
+ # Tags
520
+ # 标签
521
+ tags: true
522
+ # Archives
523
+ # 归档
524
+ archive: true
525
+ # --------------------------- end ---------------------------
526
+
527
+ # --------------------------- start ---------------------------
528
+ translate:
529
+ enable: true
530
+ defaultEncoding: 2 # 1: 默认繁体 2: 默认简体
531
+ translateDelay: 0 # 首次加载翻译迟疑时间
532
+ # --------------------------- end ---------------------------
533
+
534
+ # --------------------------- start ---------------------------
535
+ # Right-Sidebar
536
+ # 右下角悬停导航栏
537
+ rightside:
538
+ enable: false
539
+ percent: false
540
+ hide:
541
+ enable: false
542
+ translate: false
543
+ mode: false
544
+ aside: false
545
+ # --------------------------- start ---------------------------
546
+
402
547
  # --------------------------- start ---------------------------
403
548
  # Footer
404
549
  # 页脚
@@ -408,7 +553,7 @@ footer:
408
553
  author: false # img url / false
409
554
  left:
410
555
  # Github: https://github.com/everfu || fab fa-github # Name: link || icon
411
- # Mail: mailto:o@efu.me || fab fa-envelope
556
+ # Mail: mailto:o@everfu.cn || fab fa-envelope
412
557
  right:
413
558
  # Bilibili: https://space.bilibili.com/1329819902 || fab fa-bilibili
414
559
  # Douyin: https://v.douyin.com/iJsLc8jt/ || fab fa-tiktok
@@ -449,57 +594,15 @@ errorpage:
449
594
  # --------------------------- end ---------------------------
450
595
 
451
596
  # --------------------------- start ---------------------------
452
- # Says Page
453
- # 即可短文
454
- says:
455
- enable: false
456
- home_mini: false
457
- page: /essay/
458
- style: 1
459
- strip: 30
460
- # --------------------------- end ---------------------------
461
-
462
- # --------------------------- start ---------------------------
463
- # Recent comments Page
464
- # 最近评论页面
465
- recent_comments:
466
- enable: false
467
- limit: 50 # ⚠️waline 仅支持最大50条评论 / ⚠️waline only supports a maximum of 50 comments
468
- cache: 0.2 # 1 = 1天 / 1 = 1 day
469
- page: /recentcomments/ # 最近评论页面 / recent comments page
470
- img: /img/recent_c.avif # 中控台显示图片(不填不显示) / image displayed in the console
471
- # --------------------------- end ---------------------------
472
-
473
- # --------------------------- start ---------------------------
474
- # Danmaku Page
475
- # 弹幕留言页面
476
- envelope:
477
- enable: false
478
- line: 10 # 显示行数
479
- speed: 20 # 播放速度
480
- hover: true # 鼠标悬停暂停
481
- loop: true # 循环播放
482
- page: /message/ # 留言板页面 / message board page
483
- # --------------------------- end ---------------------------
484
-
485
- # --------------------------- start ---------------------------
597
+ # Meting API
486
598
  # This part of the content uses metingjs,
487
599
  # can only use NetEase Cloud Music, QQ Music and other music platforms supported by the mainland China region,
488
600
  # 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
601
  # Music Page
490
602
  meting_api: "https://meting.everfu.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" # Custom API
491
- music:
492
- enable: false
493
- # 歌单 ID / 单曲 ID
494
- id: 1994908354
495
- # 服务商:netease / qq / xiami / kugou / baidu
496
- server: netease
497
- # 类型:playlist / song
498
- type: playlist
499
- # 默认音量
500
- volume: 0.8
501
- # 是否自动播放
502
- mutex: true
603
+ # --------------------------- end ---------------------------
604
+
605
+ # --------------------------- start ---------------------------
503
606
  # Capsule music
504
607
  # 音乐胶囊
505
608
  capsule:
@@ -534,21 +637,6 @@ keyboard:
534
637
  # url: /links/
535
638
  # --------------------------- end ---------------------------
536
639
 
537
- # --------------------------- start ---------------------------
538
- # Copy
539
- # information
540
- # 复制信息
541
- copy:
542
- enable: false
543
- # Turn on Link copyright information after copying.
544
- # 复制后链接版权信息
545
- copyright:
546
- enable: false
547
- # Display when the number of words copied exceeds
548
- # 复制文字时超过多少字数显示
549
- limit: 50
550
- # --------------------------- end ---------------------------
551
-
552
640
  # --------------------------- start ---------------------------
553
641
  # Lazyload
554
642
  # 图片懒加载
@@ -606,18 +694,15 @@ mediumZoom: false # mediumZoom
606
694
  # --------------------------- end ---------------------------
607
695
 
608
696
  # --------------------------- start ---------------------------
609
- # Mermaid
610
- mermaid: false
611
- # --------------------------- end ---------------------------
612
-
613
- # --------------------------- start ---------------------------
614
- # Chart.js
615
- chart: false
616
- # --------------------------- end ---------------------------
617
-
618
- # --------------------------- start ---------------------------
619
- # typeit
620
- typeit: false
697
+ # Memorial
698
+ # Turn the entire site gray on memorable days.
699
+ # 在纪念日整个网站变灰
700
+ memorial:
701
+ enable: false
702
+ date:
703
+ # - 7-7
704
+ # - 9-18
705
+ # - 12-13 # 国家公祭日
621
706
  # --------------------------- end ---------------------------
622
707
 
623
708
  # --------------------------- start ---------------------------
@@ -642,51 +727,6 @@ OpenGraph:
642
727
  wordcount: false
643
728
  # --------------------------- end ---------------------------
644
729
 
645
- # --------------------------- start ---------------------------
646
- # Busuanzi
647
- busuanzi: false
648
- # 0: Original / 1: Custom
649
- # 0: 原版 / 1: 自定义版
650
- busuanzi_use: 0
651
- # --------------------------- end ---------------------------
652
-
653
- # --------------------------- start ---------------------------
654
- # Search
655
- # warning: Please open the search page config: https://solitude.js.org/search/algolia or https://solitude.js.org/search/local
656
- # 警告: 请打开搜索页面配置: https://solitude.js.org/zh/search/algolia 或 https://solitude.js.org/zh/search/local
657
- search:
658
- enable: false
659
- # type: 使用的搜索引擎 / search engine
660
- type: local # local / algolia
661
- tags:
662
- # - Solitude
663
- # - Hexo
664
- algolia:
665
- # hits:
666
- # per_page: 6
667
- local:
668
- preload: false
669
- CDN: # url: search.xml
670
- # --------------------------- end ---------------------------
671
-
672
- # --------------------------- start ---------------------------
673
- # This part is only supported in mainland China, and we will consider supporting ChatGPT Key in the future.
674
- # 该部分仅支持中国大陆,后续会考虑支持 ChatGPT Key。
675
- tianli_talk:
676
- enable: false
677
- title: 智能客服与搜索 # title
678
- key: # key
679
- option:
680
- post_ai:
681
- enable: false
682
- modelName: GPT 4
683
- key:
684
- talk: # 我是 Efu 开发的摘要生成助理EfuGPT,EfuGPT在静态部署时进行摘要的撰写,并且在访客访问时通过EfuCorrection转译后的文本摘要实现工具。我在这里只负责已经生成的摘要显示,你无法与我直接沟通,但我可以回答一些预设的问题。
685
- randomPost: false
686
- report: https://solitude.js.org
687
- tips: # 此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结
688
- # --------------------------- end ---------------------------
689
-
690
730
  # --------------------------- start ---------------------------
691
731
  # Katex
692
732
  # Latex formula support
@@ -701,6 +741,53 @@ katex:
701
741
  copytex: false
702
742
  # --------------------------- end ---------------------------
703
743
 
744
+ # --------------------------- start ---------------------------
745
+ # verification
746
+ # 验证
747
+ verify_site:
748
+ # - name: google-site-verification
749
+ # content: xxxxxx
750
+ # - name: baidu-site-verification
751
+ # content: xxxxxxx
752
+ # --------------------------- end ---------------------------
753
+
754
+ # --------------------------- start ---------------------------
755
+ # CSS Prefix
756
+ # CSS 前缀
757
+ # When turned on, it will automatically prefix the CSS (to get better browser support), but this will increase the size of the CSS file.
758
+ # 开启后会自动给 CSS 加前缀(以获得更好的浏览器支持),但这会增加 CSS 文件的大小。
759
+ css_prefix: false
760
+ # --------------------------- end ---------------------------
761
+
762
+ # --------------------------- start ---------------------------
763
+ # Extend
764
+ # 扩展
765
+ extends:
766
+ # Insert in head
767
+ # 插入到 head
768
+ head:
769
+ # - <script src="https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js"></script>
770
+
771
+ # Insert in body
772
+ # 插入到 body
773
+ body:
774
+ # - <script src="https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js"></script>
775
+ # --------------------------- end ---------------------------
776
+
777
+ # --------------------------- start ---------------------------
778
+ # PWA
779
+ # Progressive Web App
780
+ pwa:
781
+ enable: false
782
+ manifest: /manifest.json # manifest.json
783
+ theme_color: "#006a73" # Theme color
784
+ mask_icon: /img/pwa/favicon.png # Mask icon
785
+ apple_touch_icon: /img/pwa/favicon.png # Apple touch icon
786
+ bookmark_icon: /img/pwa/favicon.png # Bookmark icon
787
+ favicon_32_32: /img/pwa/favicon_32.png # 32x32 icon
788
+ favicon_16_16: /img/pwa/favicon_16.png # 16x16 icon
789
+ # --------------------------- end ---------------------------
790
+
704
791
  # --------------------------- start ---------------------------
705
792
  # Comment
706
793
  # 评论
@@ -727,6 +814,12 @@ comment:
727
814
  enable: false
728
815
  # Number of hot comments
729
816
  count: 3
817
+ # recent comments(⚠️ Comments need to be configured first.)
818
+ # 最新评论(⚠️ 需要先配置评论)
819
+ newest_comment:
820
+ enable: true
821
+ storage: .5 # 缓存时间 1: 1天 / .5 : 半天 / Cache time 1: 1 day .5 : half a day
822
+ limit: 5 # 评论数 / Number of comments
730
823
  # Twikoo: https://solitude.js.org/comment/twikoo
731
824
  twikoo: # https://twikoo.js.org/
732
825
  envId: # url: https://twikoo.sondy.top/
@@ -766,85 +859,97 @@ giscus:
766
859
  # --------------------------- end ---------------------------
767
860
 
768
861
  # --------------------------- start ---------------------------
769
- # Console
770
- # 控制台
771
- console:
862
+ # Search
863
+ search:
772
864
  enable: false
773
- # Recent comments
774
- # 最新评论
775
- recentComment:
776
- enable: false
777
- # Cache time 1: 1 day / .5 : half a day
778
- # 缓存时间 1: 1天 / .5 : 半天
779
- storage: .2
780
- card:
781
- # Tags
782
- # 标签
783
- tags: true
784
- # Archives
785
- # 归档
786
- archive: true
865
+ # type: 使用的搜索引擎 / search engine
866
+ type: local # local / algolia
867
+ tags:
868
+ # - Solitude
869
+ # - Hexo
870
+ algolia:
871
+ # hits:
872
+ # per_page: 6
873
+ local:
874
+ preload: false
875
+ CDN: # url: search.xml
787
876
  # --------------------------- end ---------------------------
788
877
 
789
878
  # --------------------------- start ---------------------------
790
- # verification
791
- # 验证
792
- verify_site:
793
- # - name: google-site-verification
794
- # content: xxxxxx
795
- # - name: baidu-site-verification
796
- # content: xxxxxxx
879
+ # Music Page
880
+ # 音乐馆
881
+ music:
882
+ enable: false
883
+ # 歌单 ID / 单曲 ID
884
+ id: 1994908354
885
+ # 服务商:netease / qq / xiami / kugou / baidu
886
+ server: netease
887
+ # 类型:playlist / song
888
+ type: playlist
889
+ # 默认音量
890
+ volume: 0.8
891
+ # 是否自动播放
892
+ mutex: true
797
893
  # --------------------------- end ---------------------------
798
894
 
799
895
  # --------------------------- start ---------------------------
800
- # CSS Prefix
801
- # CSS 前缀
802
- # When turned on, it will automatically prefix the CSS (to get better browser support), but this will increase the size of the CSS file.
803
- # 开启后会自动给 CSS 加前缀(以获得更好的浏览器支持),但这会增加 CSS 文件的大小。
804
- css_prefix: false
896
+ # Danmaku Page
897
+ # 弹幕留言页面
898
+ envelope:
899
+ enable: false
900
+ line: 10 # 显示行数
901
+ speed: 20 # 播放速度
902
+ hover: true # 鼠标悬停暂停
903
+ loop: true # 循环播放
904
+ page: /message/ # 留言板页面 / message board page
805
905
  # --------------------------- end ---------------------------
806
906
 
807
907
  # --------------------------- start ---------------------------
808
- # Font
809
- # 字体
810
- font:
811
- font-size: 16px
812
- code-font-size: 16px
813
- # Global font
814
- # 全局字体
815
- font-family: "PingFang SC, Hiragino Sans GB, Microsoft YaHei"
816
- # Code font
817
- # 代码字体
818
- code-font-family: '"monospace", monospace'
908
+ # Says Page
909
+ # 即可短文
910
+ says:
911
+ enable: false
912
+ home_mini: false
913
+ page: /essay/
914
+ style: 1
915
+ strip: 30
819
916
  # --------------------------- end ---------------------------
820
917
 
821
918
  # --------------------------- start ---------------------------
822
- # Extend
823
- # 扩展
824
- extends:
825
- # Insert in head
826
- # 插入到 head
827
- head:
828
- # - <script src="https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js"></script>
919
+ # Recent comments Page
920
+ # 最近评论页面
921
+ recent_comments:
922
+ enable: false
923
+ limit: 50 # ⚠️waline 仅支持最大50条评论 / ⚠️waline only supports a maximum of 50 comments
924
+ cache: 0.2 # 1 = 1天 / 1 = 1 day
925
+ page: /recentcomments/ # 最近评论页面 / recent comments page
926
+ img: /img/recent_c.avif # 中控台显示图片(不填不显示) / image displayed in the console
927
+ # --------------------------- end ---------------------------
829
928
 
830
- # Insert in body
831
- # 插入到 body
832
- body:
833
- # - <script src="https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js"></script>
929
+ # --------------------------- start ---------------------------
930
+ # Busuanzi
931
+ busuanzi: false
932
+ # 0: Original / 1: Custom
933
+ # 0: 原版 / 1: 自定义版
934
+ busuanzi_use: 0
834
935
  # --------------------------- end ---------------------------
835
936
 
836
937
  # --------------------------- start ---------------------------
837
- # PWA
838
- # Progressive Web App
839
- pwa:
938
+ # This part is only supported in mainland China, and we will consider supporting ChatGPT Key in the future.
939
+ # 该部分仅支持中国大陆,后续会考虑支持 ChatGPT Key。
940
+ tianli_talk:
840
941
  enable: false
841
- manifest: /manifest.json # manifest.json
842
- theme_color: "#006a73" # Theme color
843
- mask_icon: /img/pwa/favicon.png # Mask icon
844
- apple_touch_icon: /img/pwa/favicon.png # Apple touch icon
845
- bookmark_icon: /img/pwa/favicon.png # Bookmark icon
846
- favicon_32_32: /img/pwa/favicon_32.png # 32x32 icon
847
- favicon_16_16: /img/pwa/favicon_16.png # 16x16 icon
942
+ title: 智能客服与搜索 # title
943
+ key: # key
944
+ option:
945
+ post_ai:
946
+ enable: false
947
+ modelName: GPT 4
948
+ key:
949
+ talk: # 我是 Efu 开发的摘要生成助理EfuGPT,EfuGPT在静态部署时进行摘要的撰写,并且在访客访问时通过EfuCorrection转译后的文本摘要实现工具。我在这里只负责已经生成的摘要显示,你无法与我直接沟通,但我可以回答一些预设的问题。
950
+ randomPost: false
951
+ report: https://solitude.js.org
952
+ tips: # 此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结
848
953
  # --------------------------- end ---------------------------
849
954
 
850
955
  # --------------------------- start ---------------------------
@@ -874,103 +979,6 @@ google_adsense:
874
979
  slot: # 4236388782
875
980
  # --------------------------- end ---------------------------
876
981
 
877
- # --------------------------- start ---------------------------
878
- # Custom right menu
879
- # 自定义右键菜单
880
- right_menu:
881
- enable: false
882
- # Whether to display the hot comment switch.
883
- # 是否显示热门评论开关
884
- commentBarrage: false
885
- # Whether to display the browser's context menu when hold Ctrl key.
886
- # 是否在按住 Ctrl 键时显示浏览器右键菜单
887
- ctrlOriginalMenu: false
888
- # Simplified and Traditional Chinese translation.
889
- # 简繁体转换
890
- translate: false
891
- # Custom list
892
- # 自定义列表
893
- custom_list:
894
- # - name: Random
895
- # click: toRandomPost()
896
- # id: menu-randomPost
897
- # class:
898
- # icon: fas fa-tower-broadcast
899
- # - name: Categories
900
- # click: pjax.loadUrl('/categories/') # External links with window.open, pjax can not request cross-domain content.
901
- # id:
902
- # class:
903
- # icon: fas fa-clone
904
- # - name: Tags
905
- # click: pjax.loadUrl('/tags/')
906
- # id:
907
- # class:
908
- # icon: fas fa-tags
909
- # --------------------------- end ---------------------------
910
-
911
- # --------------------------- start ---------------------------
912
- # Memorial
913
- # Turn the entire site gray on memorable days.
914
- # 在纪念日整个网站变灰
915
- memorial:
916
- enable: false
917
- date:
918
- # - 7-7
919
- # - 9-18
920
- # - 12-13 # 国家公祭日
921
- # --------------------------- end ---------------------------
922
-
923
- # --------------------------- start ---------------------------
924
- # Lure
925
- # When the user exits the page, modify the title
926
- # 当用户退出页面时,修改标题
927
- lure:
928
- enable: false
929
- jump: 404 Not Found
930
- back: ヾ(≧∇≦*)ゝHey, hey, you fell for it.
931
- # --------------------------- end ---------------------------
932
-
933
- # --------------------------- start ---------------------------
934
- # Article expiration
935
- # 文章过期
936
- expire:
937
- enable: false
938
- time: 30 # days
939
- position: top # top / bottom
940
- text_prev: "This article expired "
941
- text_next: " day ago, if the content does not match, please contact the webmaster to update it."
942
- # --------------------------- end ---------------------------
943
-
944
- # --------------------------- start ---------------------------
945
- # Background
946
- # 背景图片
947
- background:
948
- enable: false
949
- opacity: .2
950
- dark: https://i.pinimg.com/originals/d8/b3/9d/d8b39d12b653810db452c437211aeb2e.png
951
- light: https://i.pinimg.com/originals/93/57/38/935738ed9657b296c2ef0ebd2151eb66.jpg
952
- # --------------------------- end ---------------------------
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
- percent: false
967
- hide:
968
- enable: false
969
- translate: false
970
- mode: false
971
- aside: false
972
- # --------------------------- start ---------------------------
973
-
974
982
  # --------------------------- start ---------------------------
975
983
  # Do not modify unless necessary
976
984
  # 非必要请勿修改
@@ -114,7 +114,7 @@ aside:
114
114
  back: 欢迎再次回来,
115
115
  sticker: 心情贴纸
116
116
  newpost: 最近发布
117
- newcomment: 最新评论
117
+ newcomment: 最近评论
118
118
  card:
119
119
  posts: '累计文章数:'
120
120
  tags: '标签总数:'
@@ -114,7 +114,7 @@ aside:
114
114
  back: 歡迎再次回來,
115
115
  sticker: 心情貼紙
116
116
  newpost: 最近發佈
117
- newcomment: 最新評論
117
+ newcomment: 最近評論
118
118
  card:
119
119
  posts: '累計文章數:'
120
120
  tags: '標籤總數:'
@@ -2,9 +2,9 @@
2
2
  .post-copyright
3
3
  .post-copyright__author_group
4
4
  a.post-copyright__author_img(href=url_for(copyright.author.url))
5
- img.post-copyright__author_img_front(src=copyright.author.img || theme.site.icon)
6
- .post-copyright__author_name= config.title
7
- .post-copyright__author_desc= config.subtitle
5
+ img.post-copyright__author_img_front(src=page.avatar || copyright.author.img || theme.site.icon)
6
+ .post-copyright__author_name= page.author || config.title
7
+ .post-copyright__author_desc= page.desc || config.subtitle
8
8
  .post-tools#post-tools
9
9
  .post-tools-left
10
10
  #quit-box(onclick="RemoveRewardMask()")
@@ -21,6 +21,8 @@
21
21
  i.solitude.fa-solid.fa-spinner.fa-spin
22
22
  when "Artalk"
23
23
  span.artalk-count
24
+ when "Giscus"
25
+ span.giscus-count
24
26
  | )
25
27
 
26
28
  if use.length > 1
@@ -55,6 +55,6 @@ script.
55
55
  loadGiscus()
56
56
  }
57
57
  } else {
58
- window.loadOtherComment = loadGiscus
58
+ window.loadTwoComment = loadGiscus
59
59
  }
60
60
  })()
@@ -1,4 +1,4 @@
1
- - var limit = theme.aside.newest_comment.limit ? theme.aside.newest_comment.limit : 5
1
+ - var limit = theme.comment.newest_comment.limit ? theme.comment.newest_comment.limit : 5
2
2
  if theme.comment.use
3
3
  case theme.comment.use[0]
4
4
  when 'Twikoo'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -51,8 +51,8 @@
51
51
  display none
52
52
 
53
53
  &::before
54
- content "\e082"
55
- font-family solitude
54
+ content "\f0c1"
55
+ font-family 'FontAwesome'
56
56
  cursor pointer
57
57
 
58
58
  &:hover
@@ -136,13 +136,13 @@
136
136
 
137
137
  &:before
138
138
  margin 0
139
- top 0.78em
140
- width 0.42em
141
- height 0.42em
142
- border-radius 0.42em
139
+ top .9em
140
+ width .2em
141
+ height .2em
142
+ border-radius 50%
143
143
  background 0 0
144
144
  content ""
145
- line-height .42em
145
+ line-height .2em
146
146
  border 0.21em solid var(--efu-lighttext)
147
147
  background var(--efu-lighttext)
148
148
 
@@ -193,7 +193,7 @@
193
193
  +maxWidth1200()
194
194
  position: fixed
195
195
  right: 3rem
196
- bottom: 2rem
196
+ bottom: 10px
197
197
  z-index: 100
198
198
  max-width: 380px
199
199
  max-height: calc(100% - 60px)
@@ -1040,7 +1040,7 @@ backcolor = convert(hexo-config('aside.flip.backcolor'))
1040
1040
  .card-widget.card-adsense
1041
1041
  padding 0
1042
1042
 
1043
- if hexo-config('aside.newest_comment.enable')
1043
+ if hexo-config('comment.newest_comment.enable')
1044
1044
  .card-recent-comment
1045
1045
  .recent-comment-more
1046
1046
  margin-left auto
@@ -1060,7 +1060,7 @@ if hexo-config('aside.newest_comment.enable')
1060
1060
  position: relative
1061
1061
 
1062
1062
  &:not(:last-child)
1063
- border-bottom 1px dashed rgba(255, 255, 255, .1)
1063
+ border-bottom var(--style-border-dashed)
1064
1064
 
1065
1065
  .thumbnail img
1066
1066
  width: 60px
@@ -23,6 +23,8 @@ if hexo-config('index_post_list.direction') == "column"
23
23
 
24
24
  +maxWidth1300()
25
25
  margin-bottom .5rem
26
+ #tag &
27
+ margin-top: 2.5rem
26
28
 
27
29
  +maxWidth768()
28
30
  border-radius 12px
@@ -253,6 +255,8 @@ else if hexo-config('index_post_list.direction') == "row"
253
255
  flex-direction row
254
256
  width 100%
255
257
  box-shadow var(--efu-shadow-border)
258
+ #tag &
259
+ margin-top: 2.5rem
256
260
 
257
261
  +maxWidth768()
258
262
  border-radius 12px
@@ -2,7 +2,7 @@ if hexo-config('rightside.enable')
2
2
  #rightside
3
3
  position: fixed
4
4
  right: -2.5rem
5
- bottom: 2.5rem
5
+ bottom: 20px
6
6
  z-index: 1000
7
7
  opacity: 0
8
8
  transition: all .5s
@@ -259,11 +259,6 @@
259
259
  flex-wrap wrap
260
260
  height 120px
261
261
 
262
- +maxWidth1200()
263
- flex-direction row
264
- left 2rem
265
- height 60px
266
-
267
262
  .banners-link-btn
268
263
  display flex
269
264
  flex-direction row
@@ -55,7 +55,6 @@
55
55
  line-height 1
56
56
  margin-bottom 8px
57
57
  white-space nowrap
58
- overflow hidden
59
58
  text-overflow ellipsis
60
59
  width fit-content
61
60
 
@@ -171,6 +171,7 @@ div#banners
171
171
  color var(--efu-white)
172
172
  overflow hidden
173
173
  margin-top 0
174
+ margin-bottom: 12px
174
175
 
175
176
  .author-content-item
176
177
  flex 4
@@ -1,7 +1,7 @@
1
1
  div.console_recentcomments
2
2
  display flex
3
3
  flex-wrap wrap
4
- gap 8px
4
+ gap 12px
5
5
  min-height 100px
6
6
  width 100%
7
7
 
@@ -15,7 +15,7 @@ div.console_recentcomments
15
15
  cursor pointer
16
16
  transition .3s
17
17
  overflow hidden
18
- gap 8px
18
+ gap .5rem
19
19
  display flex
20
20
  flex-direction column
21
21
 
@@ -1,7 +1,10 @@
1
1
  .comment-barrage
2
2
  position fixed
3
3
  bottom 0
4
- right 20px
4
+ if hexo-config('rightside.enable')
5
+ right 2.5rem
6
+ else
7
+ right 20px
5
8
  padding 0 0 20px 10px
6
9
  display none
7
10
  flex-direction column
@@ -51,7 +51,8 @@
51
51
  text-align center
52
52
  font-size 14px
53
53
  color var(--efu-secondtext)
54
- margin-top 4px
54
+ margin 4px 10px 0
55
+ line-height 1.5
55
56
 
56
57
  .post-copyright__notice
57
58
  font-size 12px
@@ -263,6 +263,7 @@
263
263
  cursor pointer
264
264
  transition .3s
265
265
  border-radius 12px
266
+ padding: 8px
266
267
 
267
268
  &:hover
268
269
  opacity 1
@@ -47,7 +47,7 @@
47
47
  margin 16px 0 0 auto
48
48
  color #99a9bf
49
49
 
50
- margin 1rem 0 !important
50
+ margin 1rem 0
51
51
  border-radius 12px
52
52
  overflow hidden
53
53
  box-shadow var(--efu-shadow-border)
package/source/js/main.js CHANGED
@@ -151,14 +151,14 @@ const sco = {
151
151
  }
152
152
  },
153
153
  musicToggle() {
154
- const $music = document.querySelector('#nav-music');
155
- const $meting = document.querySelector('meting-js');
156
- const $console = document.getElementById('consoleMusic');
157
- const $rm_text = document.querySelector('#menu-music-toggle span');
158
- const $rm_icon = document.querySelector('#menu-music-toggle i');
154
+ const $music = document.querySelector('#nav-music') || null;
155
+ const $meting = document.querySelector('meting-js') || null;
156
+ const $console = document.getElementById('consoleMusic') || null;
157
+ const $rm_text = document.querySelector('#menu-music-toggle span') || null;
158
+ const $rm_icon = document.querySelector('#menu-music-toggle i') || null;
159
159
  this.musicPlaying = !this.musicPlaying;
160
160
  $music.classList.toggle("playing", this.musicPlaying);
161
- $console.classList.toggle("on", this.musicPlaying);
161
+ $console && $console.classList.toggle("on", this.musicPlaying);
162
162
  if (this.musicPlaying) {
163
163
  $meting.aplayer.play();
164
164
  (typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.stop) && ($rm_icon.className = 'solitude fas fa-pause')
@@ -169,10 +169,11 @@ const sco = {
169
169
  },
170
170
  switchCommentBarrage() {
171
171
  let commentBarrageElement = document.querySelector(".comment-barrage");
172
+ let consoleCommentBarrage = document.querySelector("#consoleCommentBarrage");
172
173
  if (!commentBarrageElement) return;
173
174
  const isDisplayed = window.getComputedStyle(commentBarrageElement).display === "flex";
174
175
  commentBarrageElement.style.display = isDisplayed ? "none" : "flex";
175
- document.querySelector("#consoleCommentBarrage").classList.toggle("on", !isDisplayed);
176
+ consoleCommentBarrage && consoleCommentBarrage.classList.toggle("on", !isDisplayed);
176
177
  utils.saveToLocal.set("commentBarrageSwitch", !isDisplayed, .2);
177
178
  rm?.menuItems.barrage && rm.barrage(isDisplayed)
178
179
  },
@@ -226,7 +227,9 @@ const sco = {
226
227
  entries.forEach(entry => {
227
228
  if (entry.isIntersecting) {
228
229
  setTimeout(() => {
229
- waterfall(entry.target) || entry.target.classList.add('show');
230
+ waterfall(entry.target).then(() => {
231
+ entry.target.classList.add('show');
232
+ });
230
233
  }, 300);
231
234
  }
232
235
  });
@@ -175,6 +175,7 @@ window.oncontextmenu = (ele) => {
175
175
  Array.from(display ? rm.menuItems.other : rm.menuItems.plugin).forEach(
176
176
  (item) => (item.style.display = "none")
177
177
  );
178
+
178
179
  Array.from(display ? rm.menuItems.plugin : rm.menuItems.other).forEach(
179
180
  (item) => (item.style.display = "block")
180
181
  );
@@ -2,4 +2,4 @@
2
2
  * @license Copyright 2024 Ever Funnel. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- function waterfall(t){function e(t,e){var n=window.getComputedStyle(t);return parseFloat(n["margin"+e])||0}function n(t){return t+"px"}function r(t){return parseFloat(t.style.top)||0}function o(t){return parseFloat(t.style.left)||0}function i(t){return t.clientWidth}function l(t){return t.clientHeight}function u(t){return r(t)+l(t)+e(t,"Bottom")}function a(t){return o(t)+i(t)+e(t,"Right")}function s(t){t.sort(function(t,e){var n=u(t),r=u(e);return n===r?o(e)-o(t):r-n})}function f(e){i(t)!==containerWidth&&(window.removeEventListener(e.type,f),waterfall(t))}"string"==typeof t&&(t=document.querySelector(t));var c=Array.from(t.children).map(function(t){return t.style.position="absolute",t});t.style.position="relative";var p=Array.from(t.querySelectorAll("img")),y=p.map(function(t){return new Promise(function(e){t.complete?e():(t.addEventListener("load",e),t.addEventListener("error",e))})});Promise.all(y).then(function(){var r=[];c.length&&(c[0].style.top="0px",c[0].style.left=n(e(c[0],"Left")),r.push(c[0]));for(var l=1;l<c.length;l++){var p=c[l-1],y=c[l];if(!(a(p)+i(y)<=i(t)))break;y.style.top=p.style.top,y.style.left=n(a(p)),r.push(y)}for(var v=r.length;v<c.length;v++){s(r);var d=c[v],h=r.pop();d.style.top=n(u(h)+e(d,"Top")),d.style.left=n(o(h)),r.push(d)}s(r);var m=r[0];t.style.height=n(u(m)+e(m,"Bottom"));i(t);window.addEventListener("resize",f)})}
5
+ function waterfall(t){function e(t,e){var n=window.getComputedStyle(t);return parseFloat(n["margin"+e])||0}function n(t){return t+"px"}function r(t){return parseFloat(t.style.top)||0}function o(t){return parseFloat(t.style.left)||0}function i(t){return t.clientWidth}function l(t){return t.clientHeight}function u(t){return r(t)+l(t)+e(t,"Bottom")}function a(t){return o(t)+i(t)+e(t,"Right")}function s(t){t.sort(function(t,e){var n=u(t),r=u(e);return n===r?o(e)-o(t):r-n})}function f(e){i(t)!==containerWidth&&(window.removeEventListener(e.type,f),waterfall(t))}"string"==typeof t&&(t=document.querySelector(t));var c=Array.from(t.children).map(function(t){return(t.style.position="absolute"),t});t.style.position="relative";var p=Array.from(t.querySelectorAll("img")),y=p.map(function(t){return new Promise(function(e){t.complete?e():(t.addEventListener("load",e),t.addEventListener("error",e))})});return Promise.all(y).then(function(){var r=[];c.length&&(c[0].style.top="0px",c[0].style.left=n(e(c[0],"Left")),r.push(c[0]));for(var l=1;l<c.length;l++){var p=c[l-1],y=c[l];if(!(a(p)+i(y)<=i(t)))break;y.style.top=p.style.top;y.style.left=n(a(p));r.push(y)}for(var v=r.length;v<c.length;v++){s(r);var d=c[v],h=r.pop();d.style.top=n(u(h)+e(d,"Top"));d.style.left=n(o(h));r.push(d)}s(r);var m=r[0];t.style.height=n(u(m)+e(m,"Bottom"));i(t);window.addEventListener("resize",f)})}
@@ -37,7 +37,6 @@
37
37
  }
38
38
  },
39
39
  snackbarShow: (text, showAction = false, duration = 5000) => {
40
- document.styleSheets[0].addRule(':root', `--efu-snackbar-time:${duration}ms!important`);
41
40
  Snackbar.show({
42
41
  text,
43
42
  showAction,