Skip to content

v0.6.0

Compare
Choose a tag to compare
@D-Sketon D-Sketon released this 09 Feb 07:05
· 113 commits to main since this release

修复

  • 修复了 KaTeX 客户端渲染在 PJAX 模式下 Waline 等评论报错的 bug
  • 修复了 ValineGitalkTwikoo 评论系统在 PJAX 模式下抛出异常的 bug
  • 优化了 WalineGitalk 评论系统的样式
  • 优化了 sticky Tag 的样式
  • 优化了 PJAX 模式下 script 标签的执行逻辑

特性

  • vendor 现在支持使用链接,现在以下配置均合法
    js:
      katex: webcache|katex@0.16.11/dist/katex.min.css # 使用指定 CDN
      katex: https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css # 使用链接
      katex: /vendor/katex.min.css # 使用本地文件
  • 现在支持在首页展示分类卡片,用来代替 widget 的 categories,默认关闭
    home_categories:
      enable: false # true | false
      content:
        - categories:  # 目录名称,字符串类型
          cover:  # 卡片封面,不填则使用随机封面

Fixes

  • Fixed a bug where KaTeX client-side rendering caused errors with Waline and other comments in PJAX mode.
  • Fixed bugs where Valine, Gitalk, and Twikoo comment systems threw exceptions in PJAX mode.
  • Optimized the styles for the Waline and Gitalk comment systems.
  • Optimized the styles for the sticky tag.
  • Optimized the script tag execution logic in PJAX mode.

Features

  • Vendor now supports using links, and the following configurations are valid:
    js:
      katex: webcache|katex@0.16.11/dist/katex.min.css # Use a specified CDN
      katex: https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css # Use an absolute URL
      katex: /vendor/katex.min.css # Use a local file
  • Added support to display category cards on the homepage, replacing the categories widget. Disabled by default.
    home_categories:
      enable: false # true | false
      content:
        - categories: # Category name, string type
          cover:  # Card cover image, if not provided, a random one is used

Full Changelog: v0.5.2...v0.6.0