Skip to content

v2.8.4

Choose a tag to compare

@evannotfound evannotfound released this 05 Jul 20:23
· 115 commits to main since this release
2dac003

更新日志

新增

  • Note 组件增强:支持动态图标与标题,观感更一致 #514
  • 折叠与按钮模块升级:改进 {% folding %} / {% button %} 的参数解析与 HTML 生成,使用更灵活
  • 文章导航优化:上下篇按钮在标题过长时自动截断 #499
  • 侧边工具栏:新增齿轮旋转动画开关并支持自动展开 #525 (新增 global.side_tools 配置项)
  • Tailwind CSS:升级至 v4.1.11,并重构构建脚本 #531
  • Waline:升级至 v3.5.7 并简化评论系统配置 #531
  • 社交链接:现可使用本地图标 #522 @Wandering233

更改项/修复

  • 修复:404 页面无法正常显示 @xzadudu179
  • 修复:说说时间异常(自动 +8 小时)及文章日期时区错误 #515 #465 @Freshwlnd @chanwj
  • 修复:自定义图标 note 块英文支持及排版问题 #513 @wavky
  • 修复:深色模式下刷新页面闪白 #510 @ChocoFleece
  • 修复:繁体中文翻译错别字 #507 @JacKooDesu
  • 其他若干样式与布局优化

更新方法:

  • NPM: npm install hexo-theme-redefine@latest
  • Git: cd themes/redefine && git pull

详见:[Redefine 文档 #更新](https://redefine-docs.ohevan.com/getting-started#%E6%9B%B4%E6%96%B0)

新版本刚发布后,部分 CDN 同步需要时间,如需使用,请等待几小时后生成站点查看日志以确定 CDN 是否可用。
推荐使用 npmmirror CDN,由阿里云官方提供,访问速度极快(国内与海外)。

本版本需要迁移配置文件。


Release Notes

New Features

  • Theme Switching: Added light/dark theme toggle with Critical CSS to prevent flash of wrong theme #511 @evannotfound (new globals.theme_switch and related options)
  • Enhanced Note Blocks: Dynamic icons and titles for better readability #514 @evannotfound
  • Improved Folding & Button Short-codes: More flexible argument parsing and HTML generation @evannotfound
  • Post Navigation: Automatically truncates over-long titles in previous/next buttons #499 @evannotfound
  • Side Tools Panel: Added rotating-gear animation and auto-expand capability #525 @evannotfound
  • Tailwind CSS upgraded to v4.1.11 with refactored build scripts #531 @evannotfound
  • Waline updated to v3.5.7 with streamlined configuration #531 @evannotfound
  • Social Links can now use local icons #522 @Wandering233

Fixes

  • Fixed: 404 page not displaying correctly @xzadudu179
  • Fixed: Incorrect +8 h time offset in “Sayings” and wrong timezone in post dates #515 #465
  • Fixed: Misaligned icons and poor English support in custom note blocks #513
  • Fixed: Flash of white when refreshing in dark mode #510
  • Fixed: Misspellings in zh-TW translations #507
  • Various style and layout improvements

Update Instructions

  • NPM: Run npm install hexo-theme-redefine@latest
  • Git: Run cd themes/redefine && git pull

For detailed instructions, visit the [Redefine Documentation – Updates](https://redefine-docs.ohevan.com/getting-started#%E6%9B%B4%E6%96%B0).

This version requires configuration file migration.