调整

对于一些功能的调整与删除

  1. 删除右键菜单
    右键菜单是一个冗余的存在,替代品(侧边栏工具)将在下一次更新。
  2. 删除匿名评论功能。
  3. 调整评论配置
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    # 评论
    # comment
    comment:
    enable: false
    type: # waline, twikoo
    commentBarrage: false # 热评开关 / Hot comment switch
    - newComment: false # 最新评论开关 / Latest comment switch
    - # 匿名评论前部分随机信息 / Anonymous comment front random information
    - randomInfoStart:
    - - "聪敏的"
    - - "可爱的"
    - - "美丽的"
    - # 匿名评论后部分随机信息 / Anonymous comment after random information
    - randomInfoEnd:
    - - "白菜"
    - - "小可爱"
    - - "小仙女"
    + lazyload: true # 懒加载
    + count: true # 评论数展示
    + newest_comment:
    + enable: false
    + storage: 421000 # 缓存时间
  4. 文章摘要配置项调整
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    # 文章摘要AI
    # post abstract AI
    - ai:
    + post_ai:
    enable: false
    # 右侧显示的模型名称
    # Model name displayed on the right
    modelName: GPT 4
    # key
    # 具体获取方法见文档
    # Specific acquisition method, see the document
    key:
    # 自介
    # talk
    talk: # 我是 Efu 开发的摘要生成助理EfuGPT,EfuGPT在静态部署时进行摘要的撰写,并且在访客访问时通过EfuCorrection转译后的文本摘要实现工具。我在这里只负责已经生成的摘要显示,你无法与我直接沟通,但我可以回答一些预设的问题。
    # 随机文章按钮
    # Random post button
    randomPost: false
    # 举报链接,不填不显示
    # Report link, do not fill in and do not display
    report: https://efu.me/
    # 底部提示
    # Bottom tip
    tips: # 此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结
  5. 音乐胶囊配置项改名
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    # 音乐胶囊
    # capsule music
    capsule:
    enable: false
    # 歌单id / playlist id
    id: 8407304077
    # 播放列表的服务商。netease:网易云 / tencent:腾讯 / kugou:酷狗 / xiami:小米 / baidu:百度
    # Music service provider. netease: Netease Cloud / tencent: Tencent / kugou: Kugou / xiaomi: Xiaomi / baidu: Baidu
    server: netease
    # 播放列表的类型。song:单曲 / playlist:歌单 / album:专辑 / artist:歌手
    # Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
    type: playlist
  6. 适配 Heo 首页顶部样式,修改配置文件
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    # 首页顶部样式
    # Home top style
    hometop:
    enable: false # 是否打开 / if enable
    # banner display
    banner:
    # 左上角显示大文字
    # Large text displayed in the upper left corner
    # tip:可使用html标签
    # tip: html tags be used
    title: 宁静致远<br>热爱生活
    # 左上角显示小文字
    # Small text displayed in the upper left corner
    url: Hexo Theme Solitude
    # 轮播icon
    # Carousel icon
    # tip: 76x76 size
    icon:
    # HTML: # 名字 / Name
    # img: https://7.isyangs.cn/34/65f2e42921677-34.png # 图片 / Image
    # color: "#e9572b" # 背景色 / Background color
    # JS:
    # img: https://7.isyangs.cn/34/65f2e43ceddda-34.png
    # color: "#f7cb4f"
    # Docker:
    # img: https://7.isyangs.cn/34/65f2e45462045-34.png
    # color: "#57b6e6"
    # Flutter:
    # img: https://7.isyangs.cn/34/65f2e47acbe98-34.png
    # color: "#ffffff"
    # WebPack:
    # img: https://7.isyangs.cn/34/65f2e488bf8ed-34.png
    # color: "#2e3a41"
    # Git:
    # img: https://7.isyangs.cn/34/65f2e499066fa-34.png
    # color: "#df5b40"

    # 左下跳转按钮
    # Banner lower left jump button
    group:
    # 热门: /tags/热门/ || st-fire-fill || linear-gradient(to right,#f65,#ffbf37)
    # 教程: /tags/教程/ || st-book-mark-fill || linear-gradient(to right,#358bff,#15c6ff)
    # 精选: /tags/精选/ || st-star-smile-fill || linear-gradient(to right,#18e7ae,#1eebeb)

    # 右侧置顶列表(在文章的front matter中添加“recommend: true”)
    # Right top list (add "recommend: true" in the front matter of the article)
    recommendList:
    # 左上角显示文字
    # Large text displayed in the upper left corner
    sup: 置顶
    # 左下角大字
    # Large text in the lower left corner
    title: Solitude 主题文档
    # 点击跳转链接
    # Click the jump link
    url: https://solitude-docs.efu.me/
    # 显示背景图片
    # Display background image
    img: /img/default.png
    # 阴影颜色
    # Shadow color
    color: "none"

新增

对于一些功能的添加

  1. 新增新评论(valine)支持
    1
    2
    3
    4
    5
    6
    7
    8
    9
    # valine 配置信息
    # valine settings
    valine:
    appId: # leancloud application app id
    appKey: # leancloud application app key
    serverURLs: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
    avatar:
    visitor: false
    option: # options list
  2. 支持自定义字体
    1
    2
    3
    4
    5
    6
    7
    # Font 字体
    # Font
    font:
    font-size: 16px
    code-font-size: 16px
    font-family: 'PingFang SC,Hiragino Sans GB,Microsoft YaHei'
    code-font-family: 'monospace, monospace'
  3. 支持自定义复制功能
    1
    2
    3
    4
    5
    6
    7
    # 复制
    # Copy
    copy:
    enable: true
    copyright: # Turn on Link copyright information after copying.(开启后将在默认增加版权信息)
    enable: false
    limit: 50 # word count. (字数)
  4. 自定义中控台扩展
    1
    2
    # 中控台扩展 : 最新评论 + 标签 + 文章
    console_plus: false
  5. 支持谷歌广告
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    # 谷歌广告 (Google Adsense)
    google_adsense:
    enable: false
    auto_ads: false # 自动广告关闭后则为手动广告 / After auto ads are turned off, it is manual ads
    enable_page_level_ads: true # 页面级广告 / Page-level ads
    js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js # 谷歌广告js / Google Adsense js
    # client id
    # 无论是否开启自动广告,都需要填写 client id
    # Whether to enable auto ads or not, you need to fill in the client id
    client: # ca-pub-XXXXXXXXXXXXXX
    # slot id
    # 只有关闭自动广告时才需要填写 slot id,可以在谷歌广告后台 按广告单元中创建广告位后获取
    # Only when auto ads are turned off, you need to fill in the slot id, which can be obtained after creating an ad space in the Google Adsense background according to the ad unit
    slot: # 4236388782
  6. 支持首页文章列表样式切换
    1
    2
    3
    4
    5
    6
    7
    # 首页文章配置信息
    # Configure information on the home page
    index_post_list:
    direction: column # row / column
    content: false # 1: post.description / 2: 自动获取description或截取内容(Automatically get descriptions or screenshots) / 3: 只使用截取内容(Use only screenshots) / false: 不显示内容(No content is displayed)
    length: 500 # 截取内容的长度 : The length of the screenshot content
    cover: both # left: 在左侧 : left / right: 在右侧 : right / both: 两侧 : both
  7. prismjs 代码高亮支持
    1
    2
    - syntax_highlighter: highlight.js
    + syntax_highlighter: prismjs
  8. 新增评论表情包放大功能
    此项无需配置,默认开启。

无感优化

  1. GLOBAL_CONFIG 配置项优化。
  2. main.js 优化。
  3. utils.js 优化。
  4. Efu AI(原Sco AI) 优化。
  5. 中控台调整为 Span,取消a标签(原a标签为空方法,导致SEO下降)。
  6. 代码规范化。