v0.6.0
修复
- 修复了
KaTeX
客户端渲染在 PJAX 模式下Waline
等评论报错的 bug - 修复了
Valine
、Gitalk
和Twikoo
评论系统在 PJAX 模式下抛出异常的 bug - 优化了
Waline
和Gitalk
评论系统的样式 - 优化了 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