hexo-theme-solitude 1.4.3 → 1.4.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.
Files changed (50) hide show
  1. package/_config.yml +152 -148
  2. package/languages/en-US.yml +1 -1
  3. package/languages/zh-CN.yml +1 -1
  4. package/languages/zh-TW.yml +1 -1
  5. package/layout/includes/footer.pug +2 -5
  6. package/layout/includes/inject/body.pug +1 -0
  7. package/layout/includes/inject/head.pug +1 -4
  8. package/layout/includes/loading.pug +1 -1
  9. package/layout/includes/page/album.pug +1 -2
  10. package/layout/includes/page/gallery.pug +2 -2
  11. package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
  12. package/layout/includes/widgets/home/bb/json.pug +1 -1
  13. package/layout/includes/widgets/home/bb/memos.pug +2 -1
  14. package/layout/includes/widgets/page/about/award.pug +6 -3
  15. package/layout/includes/widgets/page/says/json.pug +10 -6
  16. package/layout/includes/widgets/page/says/memos.pug +10 -6
  17. package/package.json +1 -1
  18. package/plugins.yml +1 -1
  19. package/scripts/event/cdn.js +0 -1
  20. package/scripts/filter/lazyload.js +2 -3
  21. package/scripts/generator/gallery.js +47 -0
  22. package/source/css/_layout/basic.styl +0 -3
  23. package/source/css/_page/{about → _about}/reward.styl +7 -0
  24. package/source/css/_page/{gallery → _gallery}/index.styl +5 -0
  25. package/source/css/_page/_home/home-top.styl +125 -302
  26. package/source/css/_page/_home/index.styl +9 -4
  27. package/source/css/_page/_home/recent-post.styl +1 -0
  28. package/source/css/_page/index.styl +3 -152
  29. package/source/css/_page/share.styl +318 -0
  30. package/source/css/_widgets/_aside/info.styl +3 -0
  31. package/source/img/loading.gif +0 -0
  32. package/source/js/covercolor/local.js +11 -11
  33. package/source/js/main.js +63 -55
  34. package/source/js/search/algolia.js +1 -3
  35. package/source/js/search/local.js +1 -3
  36. package/source/js/utils.js +8 -27
  37. /package/source/css/_page/{about → _about}/author.styl +0 -0
  38. /package/source/css/_page/{about → _about}/buff.styl +0 -0
  39. /package/source/css/_page/{about → _about}/careers.styl +0 -0
  40. /package/source/css/_page/{about → _about}/contentinfo.styl +0 -0
  41. /package/source/css/_page/{about → _about}/game.styl +0 -0
  42. /package/source/css/_page/{about → _about}/index.styl +0 -0
  43. /package/source/css/_page/{about → _about}/like.styl +0 -0
  44. /package/source/css/_page/{about → _about}/maxim.styl +0 -0
  45. /package/source/css/_page/{about → _about}/myphoto.styl +0 -0
  46. /package/source/css/_page/{about → _about}/oneself.styl +0 -0
  47. /package/source/css/_page/{about → _about}/personalities.styl +0 -0
  48. /package/source/css/_page/{about → _about}/skills.styl +0 -0
  49. /package/source/css/_page/{about → _about}/statistic.styl +0 -0
  50. /package/source/css/_page/{about → _about}/tenyear.styl +0 -0
package/_config.yml CHANGED
@@ -32,12 +32,6 @@ site:
32
32
  # 页脚的Logo、加载动画默认的logo
33
33
  # Logo in the footer, default logo for loading animation
34
34
  icon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg
35
- # ICP 例如:湘ICP备2023015327号
36
- # ICP, for example: 湘ICP备2023015327号
37
- icp:
38
- # ICP链接 例如:http://www.beian.miit.gov.cn/
39
- # ICP link, for example: http://www.beian.miit.gov.cn/
40
- icp_url:
41
35
 
42
36
  # 导航栏
43
37
  # navigation bar
@@ -274,6 +268,9 @@ aside:
274
268
  # tip: 推荐尺寸 26x26
275
269
  # tip: Recommended size 26x26
276
270
  sticker: https://bu.dusays.com/2023/12/30/659011053e246.png
271
+ # 点击作者名称跳转链接
272
+ # Click the author name to jump link
273
+ url: /about/
277
274
  # 文案1
278
275
  # label1
279
276
  # tip:可使用html标签
@@ -395,100 +392,6 @@ aside:
395
392
  # Format: yyyy-MM-dd hh-mm-ss
396
393
  runtime: '2023-04-20 00:00:00'
397
394
 
398
- # -------------------------
399
- # 页面配置
400
- # page settings
401
-
402
- # 404 页面
403
- # 404 page
404
- errorpage:
405
- # 图片
406
- # image
407
- img: https://bu.dusays.com/2023/03/03/6401a7906aa4a.gif
408
- # 文字
409
- # text
410
- text: =awa= 页面走丢了
411
- # 推荐文章列表
412
- # Recommended article list
413
- recommendList: true
414
-
415
- # 即刻说说页
416
- # jike says page
417
- # 前置要求:需配置即刻说说页面
418
- # Pre-requirements: Jike says page needs to be configured
419
- # 开启后将显示即刻页面
420
- # After opening, the Jike page will be displayed
421
- says:
422
- enable: false
423
- # 主页的即刻轮播条
424
- # Jike carousel bar on the homepage
425
- home_mini: false
426
- # 1:张洪heo样式 / 2:Leonus样式
427
- # 1: Zhang Hong heo style / 2: Leonus style
428
- style: 1
429
- # 即刻短文仅展示前n条
430
- # Jike short text only shows the first n
431
- strip: 30
432
- # 模式选择。local:本地静态 / json:动态json / memos:动态Memos
433
- # Mode selection. Local: local static/JSON: dynamic JSON/memory: dynamic Memos
434
- mode: local
435
- # 动态模式地址。如为json或memos模式,此项为必填。链接获取以及格式可查看主题文档。
436
- # Dynamic mode address. If it is in JSON or Memos mode, this field is mandatory. The link acquisition and format can be viewed in the theme document.
437
- mode_link: # https://example.com/api/v1/memo?creatorId=1&tag=says
438
-
439
- # -------------------------
440
- # meeting-api,用于界面中的音乐胶囊和音乐馆页,可自定义api,不会请勿动。
441
- # meeting-api, used for music capsules and music halls in the interface, can customize api, do not move if you don't know.
442
- meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" #自定义api
443
- # 音乐馆页
444
- # music hall
445
- music:
446
- enable: false
447
- # 音乐ID:歌单ID / 专辑ID / 歌手ID
448
- # Music ID: playlist ID / album ID / singer ID
449
- id: 1994908354
450
- # 播放列表的服务商。netease:网易云 / tencent:腾讯 / kugou:酷狗 / xiami:小米 / baidu:百度
451
- # Music service provider. netease: Netease Cloud / tencent: Tencent / kugou: Kugou / xiaomi: Xiaomi / baidu: Baidu
452
- server: netease
453
- # 播放列表的类型。song:单曲 / playlist:歌单 / album:专辑 / artist:歌手
454
- # Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
455
- type: playlist
456
- # 初始音量。0.8 = 80%,范围 0 到 1
457
- # Initial volume. 0.8 = 80%, range 0 to 1
458
- volume: 0.8
459
- # 是否开启互斥模式,即同时只能有一个播放器播放
460
- # Whether to enable mutex mode, that is, only one player can play at the same time
461
- mutex: true
462
-
463
- # 音乐胶囊
464
- # capsule music
465
- capsule:
466
- enable: false
467
- id: 8407304077 # 歌单id / playlist id
468
- server: netease # 播放列表的服务商。netease:网易云 / tencent:腾讯 / kugou:酷狗 / xiami:小米 / baidu:百度 : Music service provider. netease: Netease Cloud / tencent: Tencent / kugou: Kugou / xiaomi: Xiaomi / baidu: Baidu
469
- type: playlist # 播放列表的类型。song:单曲 / playlist:歌单 / album:专辑 / artist:歌手 : Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
470
-
471
- # 友链鱼塘
472
- # Links fish pond
473
- moments:
474
- enable: false # 是否开启鱼塘 / Whether to enable fish pond
475
- api: # https://blog.wzsco.top/circle/ # api地址 / api address
476
- error_img: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg # 加载失败显示图片 / Loading failed display image
477
- sort_rule: created # 排序规则:created:按创建时间排序 / updated:按更新时间排序 : Sort rule: created: Sort by creation time / updated: Sort by update time
478
- expire_days: 1 # 缓存过期时间(天),默认为1天 / Cache expiration time (days), default is 1 day
479
- page_init_number: 10 # 页面初始化加载数量,默认为10条 / Page initialization loading quantity, default is 10
480
- page_turning_number: 5 # 页面翻页加载数量,默认为5条 / Page turning loading quantity, default is 5
481
- angle: true # 鱼塘随机文章 / Fish pond random article
482
- appjs: https://cdn.cbd.int/solitude-source@1.0.3/js/fcircle.min.js # 鱼塘js / Fish pond js
483
- bundlejs: https://cdn.cbd.int/solitude-source/js/moment/bundle.min.js # 鱼塘js / Fish pond js
484
- randompostjs: https://cdn.cbd.int/solitude-source/js/moment/random_post.min.js # 鱼塘js / Fish pond js
485
-
486
- # 相册
487
- # album
488
- album:
489
- enable: false # 是否开启相册 / Whether to enable album
490
- limit: 6 # 单行显示图片数量 / Number of pictures displayed in a single line
491
-
492
395
  # -------------------------
493
396
  # 文章页、页面配置
494
397
  # post、page settings
@@ -563,35 +466,6 @@ post:
563
466
  api: https://img2color.wzsco.top/api?img= # api地址 / api address
564
467
  time: 43200000 # api取色间隔(毫秒),默认为12小时 / api color interval (milliseconds), default is 12 hours
565
468
 
566
- keyboard:
567
- enable: false # 是否开启键盘控制 / Whether to enable keyboard control
568
- # 键盘控制配置
569
- # Keyboard control configuration
570
- list:
571
- # name: 按键名称
572
- # name: Key name
573
- # key: 按键
574
- # key: Key
575
- # func: 方法
576
- # func: Function
577
- # sco: sco内置方法
578
- # sco: sco built-in method
579
- # url: 跳转链接
580
- # url: Jump link
581
- # - name: 关闭快捷键功能
582
- # key: K
583
- # func: keyboard
584
- # - name: 打开中控台
585
- # key: A
586
- # sco: showConsole
587
- # - name: 播放/暂停音乐
588
- # key: M
589
- # sco: musicToggle
590
- # - name: 打开友情链接
591
- # key: L
592
- # url: '/links/'
593
-
594
-
595
469
  # -------------------------
596
470
  # 自定义主题
597
471
 
@@ -619,6 +493,21 @@ display_mode:
619
493
  type: auto # auto: 自动切换 / dark: 暗色模式 / light: 亮色模式 / auto: automatic switching / dark: dark mode / light: light mode
620
494
  universe: true # 开启后暗色模式下会显示星空背景 / After opening, the dark mode will display the starry sky background
621
495
 
496
+ # 文章底部推荐文章
497
+ # Recommended articles at the bottom of the article
498
+ related_post:
499
+ enable: false
500
+ # 推荐文章数量
501
+ # Number of recommended articles
502
+ limit: 2
503
+ # 根据创建日期(created)或是更新日期(updated)
504
+ # According to the creation date (created) or the update date (updated)
505
+ date_type: created
506
+
507
+ # -------------------------
508
+ # 扩展配置
509
+ # extend settings
510
+
622
511
  # --------------------------------------
623
512
  # Footer Settings
624
513
  # 页脚配置
@@ -669,16 +558,142 @@ footer:
669
558
  # 隐私助手右侧弹窗,填写路径后开启
670
559
  # Privacy assistant right pop-up window, fill in the path to open
671
560
  privacy: # /privacy/
672
- # 订阅链接
673
- # Subscription link
674
- rss: # /rss/
675
561
  # 版权
676
562
  # Copyright
677
563
  license: # /license/
564
+ # 页脚右侧链接,例如:ICP备案号、公安备案号等
565
+ # Footer right link, such as: ICP filing number, public security filing number, etc.
566
+ links:
567
+ # 为了主题能够得到更多的支持,建议保留主题链接
568
+ # In order for the theme to get more support, it is recommended to keep the theme link
569
+ - name: 主题
570
+ url: https://github.com/wleelw/hexo-theme-solitude
571
+ # - name: 订阅
572
+ # url: /atom.xml
678
573
 
679
574
  # -------------------------
680
- # 扩展配置
681
- # extend settings
575
+ # 扩展页面配置
576
+ # extra page settings
577
+
578
+ # 404 页面
579
+ # 404 page
580
+ errorpage:
581
+ # 图片
582
+ # image
583
+ img: https://bu.dusays.com/2023/03/03/6401a7906aa4a.gif
584
+ # 文字
585
+ # text
586
+ text: =awa= 页面走丢了
587
+ # 推荐文章列表
588
+ # Recommended article list
589
+ recommendList: true
590
+
591
+ # 即刻说说页
592
+ # jike says page
593
+ # 前置要求:需配置即刻说说页面
594
+ # Pre-requirements: Jike says page needs to be configured
595
+ # 开启后将显示即刻页面
596
+ # After opening, the Jike page will be displayed
597
+ says:
598
+ enable: false
599
+ # 主页的即刻轮播条
600
+ # Jike carousel bar on the homepage
601
+ home_mini: false
602
+ # 1:张洪heo样式 / 2:Leonus样式
603
+ # 1: Zhang Hong heo style / 2: Leonus style
604
+ style: 1
605
+ # 即刻短文仅展示前n条
606
+ # Jike short text only shows the first n
607
+ strip: 30
608
+ # 模式选择。local:本地静态 / json:动态json / memos:动态Memos
609
+ # Mode selection. Local: local static/JSON: dynamic JSON/memory: dynamic Memos
610
+ mode: local
611
+ # 动态模式地址。如为json或memos模式,此项为必填。链接获取以及格式可查看主题文档。
612
+ # Dynamic mode address. If it is in JSON or Memos mode, this field is mandatory. The link acquisition and format can be viewed in the theme document.
613
+ mode_link: # https://example.com/api/v1/memo?creatorId=1&tag=says
614
+
615
+ # -------------------------
616
+ # meeting-api,用于界面中的音乐胶囊和音乐馆页,可自定义api,不会请勿动。
617
+ # meeting-api, used for music capsules and music halls in the interface, can customize api, do not move if you don't know.
618
+ meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" #自定义api
619
+ # 音乐馆页
620
+ # music hall
621
+ music:
622
+ enable: false
623
+ # 音乐ID:歌单ID / 专辑ID / 歌手ID
624
+ # Music ID: playlist ID / album ID / singer ID
625
+ id: 1994908354
626
+ # 播放列表的服务商。netease:网易云 / tencent:腾讯 / kugou:酷狗 / xiami:小米 / baidu:百度
627
+ # Music service provider. netease: Netease Cloud / tencent: Tencent / kugou: Kugou / xiaomi: Xiaomi / baidu: Baidu
628
+ server: netease
629
+ # 播放列表的类型。song:单曲 / playlist:歌单 / album:专辑 / artist:歌手
630
+ # Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
631
+ type: playlist
632
+ # 初始音量。0.8 = 80%,范围 0 到 1
633
+ # Initial volume. 0.8 = 80%, range 0 to 1
634
+ volume: 0.8
635
+ # 是否开启互斥模式,即同时只能有一个播放器播放
636
+ # Whether to enable mutex mode, that is, only one player can play at the same time
637
+ mutex: true
638
+
639
+ # 音乐胶囊
640
+ # capsule music
641
+ capsule:
642
+ enable: false
643
+ id: 8407304077 # 歌单id / playlist id
644
+ server: netease # 播放列表的服务商。netease:网易云 / tencent:腾讯 / kugou:酷狗 / xiami:小米 / baidu:百度 : Music service provider. netease: Netease Cloud / tencent: Tencent / kugou: Kugou / xiaomi: Xiaomi / baidu: Baidu
645
+ type: playlist # 播放列表的类型。song:单曲 / playlist:歌单 / album:专辑 / artist:歌手 : Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
646
+
647
+ # 友链鱼塘
648
+ # Links fish pond
649
+ moments:
650
+ enable: false # 是否开启鱼塘 / Whether to enable fish pond
651
+ api: # https://blog.wzsco.top/circle/ # api地址 / api address
652
+ error_img: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg # 加载失败显示图片 / Loading failed display image
653
+ sort_rule: created # 排序规则:created:按创建时间排序 / updated:按更新时间排序 : Sort rule: created: Sort by creation time / updated: Sort by update time
654
+ expire_days: 1 # 缓存过期时间(天),默认为1天 / Cache expiration time (days), default is 1 day
655
+ page_init_number: 10 # 页面初始化加载数量,默认为10条 / Page initialization loading quantity, default is 10
656
+ page_turning_number: 5 # 页面翻页加载数量,默认为5条 / Page turning loading quantity, default is 5
657
+ angle: true # 鱼塘随机文章 / Fish pond random article
658
+ appjs: https://cdn.cbd.int/solitude-source@1.0.3/js/fcircle.min.js # 鱼塘js / Fish pond js
659
+ bundlejs: https://cdn.cbd.int/solitude-source/js/moment/bundle.min.js # 鱼塘js / Fish pond js
660
+ randompostjs: https://cdn.cbd.int/solitude-source/js/moment/random_post.min.js # 鱼塘js / Fish pond js
661
+
662
+ # 相册
663
+ # album
664
+ album:
665
+ enable: false # 是否开启相册 / Whether to enable album
666
+ limit: 6 # 单行显示图片数量 / Number of pictures displayed in a single line
667
+
668
+ # 快捷菜单你
669
+ # quick menu
670
+ keyboard:
671
+ enable: false # 是否开启键盘控制 / Whether to enable keyboard control
672
+ # 键盘控制配置
673
+ # Keyboard control configuration
674
+ list:
675
+ # name: 按键名称
676
+ # name: Key name
677
+ # key: 按键
678
+ # key: Key
679
+ # func: 方法
680
+ # func: Function
681
+ # sco: sco内置方法
682
+ # sco: sco built-in method
683
+ # url: 跳转链接
684
+ # url: Jump link
685
+ # - name: 关闭快捷键功能
686
+ # key: K
687
+ # func: keyboard
688
+ # - name: 打开中控台
689
+ # key: A
690
+ # sco: showConsole
691
+ # - name: 播放/暂停音乐
692
+ # key: M
693
+ # sco: musicToggle
694
+ # - name: 打开友情链接
695
+ # key: L
696
+ # url: '/links/'
682
697
 
683
698
  # 懒加载
684
699
  # lazyload
@@ -725,7 +740,7 @@ lightbox: false
725
740
 
726
741
  # fancybox
727
742
  # https://fancyapps.com/fancybox/
728
- fancybox: true
743
+ fancybox: false
729
744
 
730
745
  # mediumZoom
731
746
  mediumZoom: false
@@ -753,17 +768,6 @@ opengraph:
753
768
  # fb_admins:
754
769
  # fb_app_id:
755
770
 
756
- # 文章底部推荐文章
757
- # Recommended articles at the bottom of the article
758
- related_post:
759
- enable: false
760
- # 推荐文章数量
761
- # Number of recommended articles
762
- limit: 2
763
- # 根据创建日期(created)或是更新日期(updated)
764
- # According to the creation date (created) or the update date (updated)
765
- date_type: created
766
-
767
771
  # 字数统计
768
772
  # word count
769
773
  # warning:开启前需要安装字数统计插件
@@ -781,7 +785,7 @@ busuanzi: false
781
785
  search:
782
786
  enable: false
783
787
  # algolia, local
784
- type: algolia
788
+ type: local
785
789
  # 推荐标签
786
790
  # Recommended tags
787
791
  tags:
@@ -908,7 +912,7 @@ CDN:
908
912
  # Dev version can only choose. ( dev版本只能为 local )
909
913
  internal: local
910
914
  # The CDN provider of third party scripts (第三方 js 的 cdn 配置)
911
- # option: local/jsdelivr/unpkg/cdnjs/custom
915
+ # option: jsdelivr/unpkg/cdnjs/custom
912
916
  third_party: custom
913
917
 
914
918
  # Add version number to url, true or false
@@ -75,7 +75,7 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: Please enable JavaScript to view the site
78
- console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.4.3 😄'
78
+ console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.4.4 😄'
79
79
 
80
80
  aside:
81
81
  postcount: 'Posts :'
@@ -75,7 +75,7 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: 开启JavaScript才能访问本站哦~
78
- console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.4.3 😄'
78
+ console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.4.4 😄'
79
79
 
80
80
  aside:
81
81
  postcount: '文章总数 :'
@@ -75,7 +75,7 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: 開啟JavaScript才能訪問本站哦~
78
- console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.4.3 😄'
78
+ console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.4.4 😄'
79
79
 
80
80
  aside:
81
81
  postcount: '文章數:'
@@ -49,11 +49,8 @@ div#footer-bar
49
49
  div.copyright © #{moment(theme.aside.siteinfo.runtime).year()} - #{new Date().getFullYear()} By 
50
50
  a.footer-bar-link(href="/")= config.author
51
51
  div.footer-bar-right
52
- if theme.footer.rss
53
- a.footer-bar-link(href=theme.footer.rss)= _p('footer.rss')
54
- a.footer-bar-link(href="https://github.com/wleelw/hexo-theme-solitude")= _p('footer.theme')
55
- if theme.site && theme.site.icp
56
- a.footer-bar-link(href=theme.site.icp_url || "https://beian.miit.gov.cn/#/Integrated/index")= theme.site.icp
52
+ each item in theme.footer.links
53
+ a.footer-bar-link(href=url_for(item.url), title=item.name)= item.name
57
54
  a.footer-bar-link.cc(href=theme.footer.license)
58
55
  i.scoicon.sco-copyright-line
59
56
  i.scoicon.sco-creative-commons-by-line
@@ -2,6 +2,7 @@
2
2
 
3
3
  div
4
4
  script(src=url_for(theme.cdn.main))
5
+ script(src=url_for(theme.cdn.utils))
5
6
 
6
7
  if theme.album.enable
7
8
  script(src=url_for(theme.cdn.macy_js))
@@ -12,7 +12,7 @@ if theme.capsule.enable || theme.music.enable
12
12
  if theme.says.home_mini
13
13
  link(rel="stylesheet", href=url_for(theme.cdn.swiper_css))
14
14
 
15
- if theme.fancybox
15
+ if theme.lightbox && theme.fancybox
16
16
  link(rel="stylesheet", href=url_for(theme.cdn.fancyapps_css))
17
17
 
18
18
  // Open Graph
@@ -79,9 +79,6 @@ script.
79
79
  "color: #fff; background: linear-gradient(-25deg, #a8edea, #fed6e3); padding: 8px 15px; border-radius: 8px; text-shadow: 2px 2px 4px white; color: black;"
80
80
  );
81
81
 
82
- div
83
- script(src=url_for(theme.cdn.utils))
84
-
85
82
  // custom inject
86
83
  if theme.extends.head
87
84
  each item in theme.extends.head
@@ -1,6 +1,6 @@
1
1
  div(id="loading-box" onclick="preloader.endLoading();" style="zoom:1")
2
2
  div.loading-bg
3
- img.loading-img(src=url_for(theme.site.icon), alt="loading image")
3
+ img.loading-img.nolazyload(src=url_for(theme.site.icon), alt="loading image")
4
4
 
5
5
  script.
6
6
  const preloader = {
@@ -1,7 +1,6 @@
1
1
  include ../widgets/page/banner
2
2
 
3
- - var gallery = site.data.gallery.gallery
4
- - var album = gallery.find(item => item.album === page.album)
3
+ - var album = page.album
5
4
  - var {limit} = theme.album
6
5
 
7
6
  if album
@@ -1,11 +1,11 @@
1
1
  include ../widgets/page/banner
2
2
 
3
- - var gallery = site.data.gallery.gallery
3
+ - var gallery = page.album
4
4
 
5
5
  if theme.album.enable && gallery
6
6
  #gallery
7
7
  each item in gallery
8
- .gallery-item(onclick="pjax.loadUrl('/" + item.album + "/')")
8
+ .gallery-item(onclick="pjax.loadUrl('/" + page.url + "/" + item.album + "/')")
9
9
  img.cover(src=item.cover)
10
10
  span.title= item.class_name
11
11
  span.desc= item.descr
@@ -11,7 +11,7 @@
11
11
  .author-info__description!= theme.aside.card.content
12
12
  .author-info__description2!= theme.aside.card.content2
13
13
  .author-info__bottom-group
14
- a.author-info__bottom-group-left(href=theme.about ? "/about/" : "/")
14
+ a.author-info__bottom-group-left(href=url_for(theme.aside.card.url))
15
15
  .author-info__name= config.author
16
16
  .author-info__desc!= config.subtitle
17
17
  .card-info-social-icons.is-center
@@ -1,7 +1,7 @@
1
1
  script.
2
2
  !async function () {
3
3
  const htmlTagRegex = /<[^>]+>/g;
4
-
4
+ document.querySelector('#bber-talk').innerHTML = '<div class="li-style swiper-slide"><i class="scoicon sco-loading-line"></i></div>';
5
5
  await fetch('!{theme.says.mode_link}')
6
6
  .then(res => res.json())
7
7
  .then(res => {
@@ -1,5 +1,6 @@
1
1
  script.
2
2
  !async function () {
3
+ document.querySelector('#bber-talk').innerHTML = '<div class="li-style swiper-slide"><i class="scoicon sco-loading-line"></i></div>'
3
4
  await fetch('!{theme.says.mode_link}')
4
5
  .then(response => response.json())
5
6
  .then(data => {
@@ -17,7 +18,7 @@ script.
17
18
  let video = item.content.match(playerRegex) ? '<i class="scoicon sco-video-fill"></i>' : item.content.match(bilibiliRegex) ? '<i class="scoicon sco-bilibili-line"></i>' : '';
18
19
  let link = item.content.match(linkRegex) ? `<i class="scoicon sco-link"></i>` : '';
19
20
 
20
- return `<div class="li-style swiper-slide">${content+aplayer+video+imageBox+link}</div>`
21
+ return `<div class="li-style swiper-slide">${content + aplayer + video + imageBox + link}</div>`
21
22
  }).join(' ')
22
23
  document.addEventListener('DOMContentLoaded', sco.initbbtalk)
23
24
  document.addEventListener('pjax:complete', sco.initbbtalk)
@@ -7,14 +7,17 @@ if site.data.about.rewardList
7
7
  .author-content-item-tips= _p('award.about.tip')
8
8
  span.author-content-item-title= _p('award.about.title')
9
9
  .author-content-item-description
10
- = award.description
10
+ = award.description
11
11
  .reward-list-all
12
12
  each reward in site.data.about.rewardList
13
13
  - sum += reward.money
14
14
  .reward-list-item
15
15
  .reward-list-item-name= reward.name
16
16
  .reward-list-bottom-group
17
- .reward-list-item-money(style=(reward.vip ? "background: var(--sco-vip);" : "")) ¥ #{reward.money}
17
+ .reward-list-item-money(style=(reward.vip ? "background: var(--sco-vip);" : ""))
18
+ if reward.icon
19
+ i.scoicon(class=reward.icon)
20
+ | ¥ #{reward.money}
18
21
  time.datatime.reward-list-item-time(datetime=moment(reward.time).format())
19
22
  if theme.post.award.enable
20
23
  .post-reward
@@ -33,4 +36,4 @@ if site.data.about.rewardList
33
36
  img.post-qr-code-img(alt=reward.description, src=reward.image)
34
37
  .post-qr-code-desc= reward.description
35
38
  .reward-list-tips
36
- p= award.tips.replace('{sum}', sum)
39
+ p= award.tips.replace('{sum}', sum.toFixed(2))
@@ -2,6 +2,7 @@ case theme.says.style
2
2
  when 1
3
3
  script.
4
4
  !async function () {
5
+ document.querySelector('#waterfall').innerHTML = '<li class="item"><div class="bber-content"><p class="datacont"><i class="scoicon sco-loading-line"></i></p></div></li>'
5
6
  await fetch('!{url_for(theme.says.mode_link)}')
6
7
  .then(res => res.json())
7
8
  .then(res => {
@@ -34,14 +35,16 @@ case theme.says.style
34
35
  </div>
35
36
  </li>`
36
37
  }).join('')
38
+ sco.reflashEssayWaterFall();
39
+ GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg();
40
+ GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
41
+ changeTimeFormat();
37
42
  })
38
- GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg()
39
- GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
40
- changeTimeFormat()
41
43
  }()
42
44
  when 2
43
45
  script.
44
46
  !async function () {
47
+ document.querySelector('#waterfall').innerHTML = '<li class="item"><div class="bber-content"><p class="datacont"><i class="scoicon sco-loading-line"></i></p></div></li>'
45
48
  await fetch('!{url_for(theme.says.mode_link)}')
46
49
  .then(res => res.json())
47
50
  .then(res => {
@@ -56,7 +59,7 @@ case theme.says.style
56
59
  imageBox = item.images ? `<div class="bber-content-img">${item.images.map(img => `<img src="${img}" title="即刻短文配图" />`).join('')}</div>` : null
57
60
  return `<li class="item">
58
61
  <div class="meta">
59
- <img class="no-lightbox no-lazyload avatar" src="!{theme.aside.card.author.img}">
62
+ <img class="no-lightbox nolazyload avatar" src="!{theme.aside.card.author.img}">
60
63
  <div class="info">
61
64
  <span class="bber_nick">#{config.author}</span>
62
65
  <time class="datetime bber_date" datetime="${item.date}"></time>
@@ -71,8 +74,9 @@ case theme.says.style
71
74
  ${aplayer || ''}
72
75
  </li>`
73
76
  }).join('')
74
- GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg()
77
+ sco.reflashEssayWaterFall();
78
+ GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg();
75
79
  GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
76
- changeTimeFormat()
80
+ changeTimeFormat();
77
81
  })
78
82
  }()
@@ -7,7 +7,9 @@ case theme.says.style
7
7
  let bilibiliRegex = /{bilibili,(.*?)}/g;
8
8
  let playerRegex = /{player,(.*?)}/g;
9
9
  let imageRegex = /!\[\]\((.*?)\)/g;
10
- let contentRegex = /#.*?\s([^{\n]*)/g
10
+ let contentRegex = /#.*?\s([^{\n]*)/g;
11
+
12
+ document.querySelector('#waterfall').innerHTML = '<i class="scoicon sco-loading-line"></i>'
11
13
 
12
14
  await fetch("!{url_for(theme.says.mode_link)}")
13
15
  .then(res => res.json())
@@ -49,11 +51,11 @@ case theme.says.style
49
51
  </div>
50
52
  </li>`;
51
53
  }).join('');
54
+ sco.reflashEssayWaterFall();
55
+ GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg();
56
+ GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
57
+ changeTimeFormat();
52
58
  }).catch(error => console.log(error));
53
- sco.reflashEssayWaterFall();
54
- GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg();
55
- GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
56
- changeTimeFormat();
57
59
  }();
58
60
  when 2
59
61
  script.
@@ -64,6 +66,8 @@ case theme.says.style
64
66
  let imageRegex = /!\[\]\((.*?)\)/g;
65
67
  let contentRegex = /#.*?\s([^{\n]*)/g
66
68
 
69
+ document.querySelector('#waterfall').innerHTML = '<i class="scoicon sco-loading-line"></i>'
70
+
67
71
  await fetch("!{url_for(theme.says.mode_link)}")
68
72
  .then(res => res.json())
69
73
  .then(data => {
@@ -84,7 +88,7 @@ case theme.says.style
84
88
  let content = item.content.match(contentRegex).map(item => item.replace(contentRegex, '$1'));
85
89
  return `<li class="item">
86
90
  <div class="meta">
87
- <img class="no-lightbox no-lazyload avatar" src="!{theme.aside.card.author.img}">
91
+ <img class="no-lightbox nolazyload avatar" src="!{theme.aside.card.author.img}">
88
92
  <div class="info">
89
93
  <span class="bber_nick">#{config.author}</span>
90
94
  <time class="datetime bber_date" datetime="${time}"></time>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the DuoSco team",
5
5
  "main": "package.json",
6
6
  "scripts": {
package/plugins.yml CHANGED
@@ -64,7 +64,7 @@ pace_js:
64
64
  file: pace.min.js
65
65
  version: 1.2.4
66
66
  lunr_js:
67
- name: lunr
67
+ name: lunr.js
68
68
  file: lunr.min.js
69
69
  version: 2.3.9
70
70
  swiper_css:
@@ -106,7 +106,6 @@ hexo.extend.filter.register('before_generate', () => {
106
106
  unpkg: `https://unpkg.com/${name}${verType}/${file}`,
107
107
  cdnjs: `https://cdnjs.cloudflare.com/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}`,
108
108
  custom: (CDN.custom_format || '').replace(/\$\{(.+?)\}/g, (match, $1) => value[$1]),
109
- custom_cdn: `${CDN.custom_cdn + cdnjs_file}`,
110
109
  cdncbd: `https://cdn.cbd.int/${name}${verType}/${file}`,
111
110
  }
112
111