Skip to content

1.9.0

Compare
Choose a tag to compare
@zkqiang zkqiang released this 18 May 03:40
· 106 commits to master since this release

⚠️公告

自 v1.9.0 版本开始,Fluid 主题项目的开源许可更换为 GPL-3.0 协议

🔧 配置变更

  • 由于文章页版权信息栏被更新,原配置项被移除:
post:
  copyright:
    enable: true
-   content: '...'
+   license: 'BY' 
  • highlightjs 高亮支持智能判断背景色,移除了手动指定的配置项:
code:
  highlight:
    highlightjs:
-     bg_color: false
  • 由于重写了多语言配置,很多带有文字的配置项被移到 languages/*.yml,但它们在 _config.yml 依然生效,不过不建议再使用它们,请在你的覆盖配置中弃用它们并使用语言配置

✨ 新功能

  • 代码高亮支持暗色样式:
code:
  highlight:
    highlightjs:
      style: "github gist"
+     style_dark: "dark"
    prismjs:
      style: "default"
+     style_dark: "tomorrow night"
  • 文章目录支持配置位于左侧或右侧
post:
  toc:
+   placement: right
  • 文章分类侧板栏,可以在文章页关联展示当前分类下的文章
post:
+ category_bar:
+   enable: true
  • 文章图片标题支持开关
post:
+ image_caption:
+   enable: true
  • 代码块支持显示代码语言
code:
+ language:
+   enable: true
+   default: "TEXT"
  • 打字机支持指定页面下开启
fun_features:
  typing:
+   scope: []  # Options: home | post | tag | category | about | links | page | 404
  • 增加配置 404 页面重定向到首页的延迟
page404:
+ redirect_delay: 5000
  • 增加了更多的颜色配置项:
color:
+ # 按钮类组件的背景色
+ button_bg_color: "transparent"
+ button_bg_color_dark: "transparent"
+ # 按钮类组件的悬浮背景色
+ button_hover_bg_color: "#f2f3f5"
+ button_hover_bg_color_dark: "#46647e"
  • 全新的文章页版权信息栏
  • 重写了多语言配置,并支持覆盖配置
  • 增加代码注入功能(使用说明),多种组件改为注入式加载
  • 增加 noscript 警告
  • 多语言增加西班牙语(感谢 @Eschiclers
  • 遵循"请勿追踪"功能

🎨 优化

  • 代码高亮等多个组件支持了暗色模式
  • 代码高亮选择 highlightjs 时,会判断在无背景色的样式中填充默认背景色
  • 默认的静态 CDN 修改为 baomitu
  • 文章分类显示父级关系,并略微调整分类和标签的样式(首页分类改为只显示一条)
  • 归档页日期改为左侧
  • Checkbox Tag 改为原生样式,并增加可勾选参数
  • 优化锚点的适配
  • 移除 Pandoc 渲染影响到的列表宽度
  • 重构引入 script 和 css 的逻辑
  • 升级 Waline 至 v2

🐛 修复

  • 修复 TOC 光标部分情况下偏移
  • 修复 Pandoc 渲染没有适配图片
  • 修复打开搜索框的抖动
  • 修复搜索按钮聚焦后变色
  • 修复分类层级判断
  • 修复 LeanCloud 国际版不支持 ServerUrl 的问题

⚠️ Notice

Since v1.9.0, the open source license for Fluid has been changed to GPL-3.0.

🔧 Configuration

  • The configuration was removed because the copyright information on the post page was updated:
post:
  copyright:
    enable: true
-   content: '...'
+   license: 'BY' 
  • highlightjs support intelligently judging background color, removes manually specified configuration items:
code:
  highlight:
    highlightjs:
-     bg_color: false
  • Due to the rewrite of the language configuration, many configuration items have been moved to languages/*.yml, and support override configuration

✨ Feature

  • Code highlight support dark styles:
code:
  highlight:
    highlightjs:
      style: "github gist"
+     style_dark: "dark"
    prismjs:
      style: "default"
+     style_dark: "tomorrow night"
  • New configuration of TOC on left or right:
post:
  toc:
+   placement: right
  • The sidebar of post category, can associate posts under the same category:
post:
+ category_bar:
+   enable: true
  • Switch of image caption:
post:
+ image_caption:
+   enable: true
  • Code blocks support code language:
code:
+ language:
+   enable: true
+   default: "TEXT"
  • Typing support is enabled under the specified page
fun_features:
  typing:
+   scope: []  # Options: home | post | tag | category | about | links | page | 404
  • The delay of 404 page redirection to the homepage:
page404:
+ redirect_delay: 5000
  • Add more color configuration items:
color:
+ button_bg_color: "transparent"
+ button_bg_color_dark: "transparent"
+ button_hover_bg_color: "#f2f3f5"
+ button_hover_bg_color_dark: "#46647e"
  • New copyright information on the post page
  • Rewritten language configuration,and support override configuration
  • Add code injector, some components are changed to injection loading
  • Add noscript warning
  • Spanish language (Thanks for @Eschiclers)
  • Follow "Do Not Track"

🎨 Enhancement

  • Some components such as code highlighting support dark mode
  • When highlightjs is selected for code highlight, it will be judged to fill the default background color in the style without background color
  • The default static CDN is modified to baomitu
  • Categories show parent relationships, and slightly adjust the styles of categories and tags
  • Archive page date changed to left
  • Checkbox Tag is changed to native style, and optional parameters are added
  • Optimized the adaptation of anchor points
  • Remove list width affected by Pandoc rendering
  • Refactor the logic of importing script and css
  • Upgrade Waline to v2

🐛 Fix

  • Fix TOC cursor partial case offset
  • Fix Pandoc rendering not adapting to images
  • Fix jitter when opening search box
  • Fix search button discoloration after focusing
  • Fix LeanCloud does not support ServerUrl