Hexo Theme Fluid Versions Save

:ocean: 一款 Material Design 风格的 Hexo 主题 / An elegant Material-Design theme for Hexo

v1.9.0-beta.5

2 years ago

:wrench: 配置变更

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

:sparkles: 新功能

  • 代码高亮支持暗色样式:
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
  • 代码块支持显示代码语言
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 警告

:art: 优化

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

:bug: 修复

  • 修复 TOC 光标部分情况下偏移
  • 修复 Pandoc 渲染没有适配图片

v1.9.0-beta.3

2 years ago

:wrench: 配置变更

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

:sparkles: 新功能

  • 代码高亮支持暗色样式:
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
  • 代码块支持显示代码语言
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 警告

:art: 优化

  • 代码高亮等多个组件支持了暗色模式
  • 代码高亮选择 highlightjs 时,会判断在无背景色的样式中填充默认背景色
  • 默认的静态 CDN 修改为 staticfile
  • 文章分类显示父级关系,并略微调整分类和标签的样式
  • 归档页日期改为左侧
  • Checkbox Tag 改为原生样式,并增加可勾选参数
  • 优化锚点的适配
  • 重构引入 script 和 css 的逻辑

:bug: 修复

  • 修复 TOC 光标部分情况下偏移
  • 修复 Pandoc 渲染没有适配图片

v1.8.14

2 years ago

:warning:公告

对于正在使用 MathJax 的老用户,建议将原 kramed 渲染器更换为 pandoc,步骤如下:

  1. npm uninstall hexo-renderer-kramed --save
  2. npm install hexo-renderer-pandoc --save
  3. 根据操作系统安装 Pandoc

:wrench: 配置变更

  • hint 库(用于关于页里图标悬浮框)修改为使用公共 CDN:
static_prefix:
- hint: /lib/hint/
+ hint: https://cdn.jsdelivr.net/npm/hint.css@2/

:sparkles: 新功能

  • 增加对滚动条颜色的配置项:
color:
+ scrollbar_color: "#c4c6c9"
+ scrollbar_color_dark: "#687582"
+ scrollbar_hover_color: "#a6a6a6"
+ scrollbar_hover_color_dark: "#9da8b3"

:art: 优化

  • TOC 增加光标样式
  • 表格适配暗色模式
  • 代码高亮适配缩进代码块
  • 固定 highlight 代码行数

:bug: 修复

  • 修复上个版本中关于页头像在移动端会被隐藏的问题
  • 暂时移除代码块在暗色模式下变暗(会导致复制按钮偏移)

:warning: Notice

For the users who are using MathJax, it is recommended to replace kramed renderer to pandoc, the steps are as follows:

  1. npm uninstall hexo-renderer-kramed --save
  2. npm install hexo- renderer-pandoc --save
  3. Install Pandoc according to your os system

:wrench: Configuration

  • hint (for the icon hover in the about page) was modified to jsdelivrCDN:
static_prefix:
- hint: /lib/hint/
+ hint: https://cdn.jsdelivr.net/npm/hint.css@2/

:sparkles: Feature

  • Add config item for scrollbar color:
color:
+ scrollbar_color: "#c4c6c9"
+ scrollbar_color_dark: "#687582"
+ scrollbar_hover_color: "#a6a6a6"
+ scrollbar_hover_color_dark: "#9da8b3"

:art: Enhancement

  • TOC add cursor style
  • <table> is adapted to dark mode
  • Indented code block is adapted to highlight
  • Stick line-number of code

:bug: Fix

  • Fix the about avatar being hidden on mobile in the previous version
  • Temporarily remove code blocks to darken in dark mode (causes the copy button to shift)

v1.8.13

2 years ago

:sparkles: 新功能

  • LeanCloud 增加忽略本地路径的配置项
web_analytics:
  leancloud:
+   ignore_local: false
  • OpenGraph 增加开关配置项
open_graph:
+ enable: true
  • FrontMatter 可通过 og_img 字段单独设置 OpenGraph 图片(默认等同于 index_img):
---
title: 文章标题
index_img: /img/index.png
og_img: /img/og.png
---

:art: 优化

  • 文章可自动生成 description 属性
  • 修改阅读时长的默认值和计算
  • 更新 iconfonthint 的 CDN 链接

:bug: 修复

  • 修复首页打字机从 API 嵌套取值无效的情况
  • 修复文章面板在部分情况下会超出

:sparkles: Feature

  • LeanCloud adds a configuration item that ignores localhost:
web_analytics:
  leancloud:
+   ignore_local: false
  • OpenGraph add switch configuration item:
open_graph:
+ enable: true
  • Set the OpenGraph image separately through the og_img field in FrontMatter (the default is equivalent to index_img):
---
title: Post Tile
index_img: /img/index.png
og_img: /img/og.png
---

:art: Enhancement

  • Post can automatically generate the description meta
  • Modify the default value and calculation of wordcount
  • Upgrade the CDN links of iconfont and hint

:bug: Fix

  • Fix the slogan from the nested value of the API is invalid
  • Fix post pages will exceed in some cases

v1.8.12

2 years ago

:wrench: 配置变更

  • 文章阅读时长的配置项因功能优化发生变更
min2read:
- words: 100
+ awl: 2
+ wpm: 160

:sparkles: 新功能

  • 增加 OpenGraph 配置项
+ open_graph:
+   twitter_card: summary_large_image
+   twitter_id:
+   twitter_site:
+   google_plus:
+   fb_admins:
+   fb_app_id:
  • 增加字间距的配置项
font:
+ letter_spacing: 0.02em
  • LeanCloud 增加配置项用于指定统计路径
web_analytics:
  leancloud:
+   path: window.location.pathname

:art: 优化

  • 暗色模式按钮悬停动效
  • 字体在苹果系统下抗锯齿
  • 优化文章阅读时长的计算
  • MathJax 支持懒加载(需要 3.2.0+ 版本)
  • 评论图片支持缩放功能
  • 备案信息不再强制对称居中
  • 优化无障碍条件
  • 默认静态 CDN 地址不再锁定版本
  • Waline 评论插件升级新版本

:bug: 修复

  • 修复博客二级目录下一些路径错误
  • 修复畅言评论在移动端报错
  • 修复 Safari 不支持的正则语法
  • 修复多级分类无法折叠
  • 修复圆角图片有白色描边
  • 修复部分特殊字符的转义

:wrench: Configuration

  • The config items of reading time have changed due to feature enhanced
min2read:
- words: 100
+ awl: 2
+ wpm: 160

:sparkles: Feature

  • Add OpenGraph:
+ open_graph:
+   twitter_card: summary_large_image
+   twitter_id:
+   twitter_site:
+   google_plus:
+   fb_admins:
+   fb_app_id:
  • Add the config items of word spacing
font:
+ letter_spacing: 0.02em
  • Add the config items to specify the leancloud statistical path
web_analytics:
  leancloud:
+   path: window.location.pathname

:art: Enhancement

  • Hover animation of dark mode button
  • Font anti-aliasing in Apple system
  • Optimize the calculation of reading time
  • MathJax supports lazy loading (requires version 3.2.0+)
  • Comment images support zoom
  • Optimize accessibility
  • The default static CDN no longer locks the version
  • Waline comment plugin upgrade to the new version

:bug: Fix

  • Fix some path errors in the secondary directory
  • Fix regular syntax not supported in Safari
  • Fix multi-level category cannot be folded
  • Fix the rounded corners of the image with white shadow
  • Fix the escape of some special characters

v1.8.11-beta.5

2 years ago

:wrench: 配置变更

  • 文章阅读时长的配置项因功能优化发生变更
min2read:
- words: 100
+ awl: 2
+ wpm: 160

:sparkles: 新功能

  • 增加 OpenGraph 配置项
+ open_graph:
+   twitter_card: summary_large_image
+   twitter_id:
+   twitter_site:
+   google_plus:
+   fb_admins:
+   fb_app_id:
  • 增加字间距的配置项
font:
+ letter_spacing: 0.02em
  • LeanCloud 增加配置项用于指定统计路径
web_analytics:
  leancloud:
+   path: window.location.pathname

:art: 优化

  • 暗色模式按钮悬停动效
  • 字体在苹果系统下抗锯齿
  • 优化文章阅读时长的计算
  • MathJax 支持懒加载(需要 3.2.0+ 版本)
  • 评论图片支持缩放功能
  • 备案信息不再强制对称居中
  • 优化无障碍条件
  • 默认静态 CDN 地址不再锁定版本
  • Waline 评论插件升级新版本

:bug: 修复

  • 修复博客二级目录下一些路径错误
  • 修复畅言评论在移动端报错
  • 修复 Safari 不支持的正则语法
  • 修复多级分类无法折叠
  • 修复圆角图片有白色描边
  • 修复部分转义防止特殊字符

v1.8.12-beta.2

2 years ago

:wrench: 配置变更

  • 文章阅读时长的配置项因功能优化发生变更
min2read:
- words: 100
+ awl: 2
+ wpm: 160

:sparkles: 新功能

  • 增加 OpenGraph 配置项
+ open_graph:
+   twitter_card: summary_large_image
+   twitter_id:
+   twitter_site:
+   google_plus:
+   fb_admins:
+   fb_app_id:
  • 增加字间距的配置项
font:
+ letter_spacing: 0.02em
  • LeanCloud 增加配置项用于指定统计路径
web_analytics:
  leancloud:
+   path: window.location.pathname

:art: 优化

  • 暗色模式按钮悬停动效
  • 字体在苹果系统下抗锯齿
  • 优化文章阅读时长的计算
  • MathJax 支持懒加载(需要 3.2.0+ 版本)
  • 评论图片支持缩放功能
  • 备案信息不再强制对称居中
  • 优化无障碍条件
  • 默认静态 CDN 地址不再锁定版本

:bug: 修复

  • 修复次级目录下路径错误
  • 修复 Safari 不支持的正则语法
  • 修复多级分类无法折叠
  • 修复圆角图片有白色描边
  • 修复部分转义防止特殊字符

v1.8.11

3 years ago

:wrench: 配置变更

  • Valine 评论插件的配置字段名与官方统一
valine:
- appid:
- appkey
+ appId:
+ appKey:

:sparkles: 新功能

  • 支持 Cusdis 评论插件
  • 多语言增加世界语(Esperanto)

:art: 优化

  • 大部分评论插件的配置项现在可以自行追加(与官方提供的字段名一致即可)
  • 升级第三方库默认版本
  • 优化搜索框代码

:bug: 修复

  • 修复 font:font_family 配置项没有生效
  • 修复 LeanCloud 统计 PV 时静态路径的判断
  • 修复搜索框不显示结果的情况

:wrench: Configuration

  • The config item name of the Valine comment plugin is unified with the official
valine:
- appid:
- appkey
+ appId:
+ appKey:

:sparkles: Feature

  • Support Cusdis comment plugin
  • i18n add Esperanto language

:art: Enhancement

  • The config items of most comment plugins can be added by yourself (just the same as the field name of the original config)
  • Upgrade the default version of the third-party library
  • Improve search dialog code

:bug: Fix

  • Fix font:font_family doesn't work
  • Fix the judgment of static path when LeanCloud counts PV
  • Fix search dialog not showing results in some cases

v1.8.10

3 years ago

:wrench: 配置变更

  • 移除主题的版本检测功能及配置(由于 GitHub API 有请求限制)
- version:
-   check: false

:sparkles: 新功能

  • 增加文章图片放大后可加载原图片的配置
post:
  image_zoom:
+   img_url_replace: ['', '']

:art: 优化

  • 升级依赖库版本
  • 优化放大字号后的样式
  • 优化懒加载代码

:bug: 修复

  • 修复配置项 onerror_avatar 在某些情况下未生效
  • 修复配置项 post_url_target 在某些情况下未生效
  • 修复 <a> 标签可能跳转空页面

:wrench: Configuration

  • Remove theme version detection (because GitHub API limits requests)
- version:
-   check: false

:sparkles: Feature

  • Add new config item of the zoom image that can be used to replace the compressed image to the original image:
post:
  image_zoom:
+   img_url_replace: ['', '']

:art: Enhancement

  • Upgrade dependent library version
  • Optimize the styles after enlarged font-size
  • Optimize lazyload code

:bug: Fix

  • Fix the config item onerror_avatar doesn't work in some cases
  • Fix the config item post_url_target doesn't work in some cases
  • Fix <a> tag may be directed to a blank page

v1.8.9

3 years ago

:sparkles: 新功能

  • 重构懒加载代码,并新增配置项:
lazyload:
# 触发加载的偏移倍数
+ offset_factor: 2
# 指定加载时的占位图片
+ loading_img: /img/loading.gif
  • FrontMatter 可以设置 keywords 参数:
---
title: 文章标题
keywords: [关键词1, 关键词2]
---
  • 增加分类文章排序字段:
category:
+ post_order_by: "-date"
  • 根据 Waline 官方新增配置项:
waline:
+ avatarCDN:
+ anonymous:
  • 根据 Twikoo 官方新增配置项:
twikoo:
- env_id:
+ envId:
+ region: ap-shanghai
+ path: window.location.pathname

:bug: 修复

  • 修复部分图片样式异常,如关于页的悬浮二维码
  • 修复分类没有同时显示文章与子分类
  • 修复懒加载在 PWA 中报错以及在友链页未生效
  • 修复分类锚点每次生成会变更的问题

:sparkles: Feature

  • Refactor Lazyload code and add new config items:
lazyload:
# The factor of viewport height that triggers loading
+ offset_factor: 2
# The placeholder image when loading
+ loading_img: /img/loading.gif
  • keywords can be set in FrontMatter:
---
title: The introduction of Fluid
keywords: [hexo, theme, blog]
---
  • Config of the category page added new item:
category:
+ post_order_by: "-date"
  • Config of Waline added new items:
waline:
+ avatarCDN:
+ anonymous:

:bug: Fix

  • Fix some images anomalies, such as QR code on the about page
  • Fix that category doesn't contain both posts and subcategories
  • Fix lazyload doesn't work in some cases
  • Fix an issue where the category anchor would change each time it was generated