Releases: EvanNotFound/hexo-theme-redefine
v2.7.3
更新日志
更改项
- 修复:行内 Mathjax 公式渲染成行间公式 #447
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
新版本刚发布后,部分CDN 同步需要时间,如需使用,请等待几小时后,生成站点查看日志以确定 CDN 是否可用。
推荐使用 npmmirror
CDN,由阿里云官方提供,访问速度极快(国内与海外)。
本版本主要为 bug 修复,从上一版本升级,不需要迁移配置文件。
Release Notes
Improvements
- Fixed: Inline Mathjax formulas display issue. #447
Update Instructions
- NPM: Run
npm install hexo-theme-redefine@latest
- Git: Run
cd themes/redefine && git pull
For more details, see the Redefine documentation on updates.
Please note: It may take a few hours for some CDNs to sync after a new version is released. If you're using a CDN, generate your site and check the logs to verify availability.
Recommended CDN: npmmirror
, which is provided by Alibaba Cloud and offers very fast access speeds both domestically and internationally.
Configuration file migration is not required.
更多 🔥
想要使用 OpenAI ChatGPT-4o 以及 o1 系列模型,但不想每月支付 20 美元吗?可以来看看我的 GPT Plus Share,使用多达 100 个 ChatGPT Plus 账户,已稳定运行 1 年+
每月仅需 ¥24.99 元起步,使用优惠码 AUTUMN24
可立减三元。
v2.7.2
更新日志
新增(需迁移配置文件)
- 首页 SEO 副标题配置,需要迁移配置文件(#431)
更改项
- 优化:导航栏页面切换增加动画,更流畅
- 优化:页面预加载页面动画优化,缩短时间
- 修复:Essay 说说时区问题,改为动态显示(#367)
- 修复:较长的 Mathjax 行间公式出现遮挡(#422)
- 修复:Logo 大小过大问题(#438)
- 修复:404 页面翻译问题
- 修复:阅读进度中工具栏百分比出现 Infinity、 -Infinity 或 NaN(#432)
- 修复:代码块暗色某些主题无法显示的问题(#435,#437)
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
新版本刚发布后,部分CDN 同步需要时间,如需使用,请等待几小时后,生成站点查看日志以确定 CDN 是否可用。
推荐使用 npmmirror
CDN,由阿里云官方提供,访问速度极快(国内与海外)。
本版本需要迁移配置文件,如需使用新功能,需要你一一核对,详情请见:更新文档。
特别鸣谢
Release Notes
New Features (Configuration File Migration Required)
- SEO Subtitle Configuration for the homepage. Migration of the configuration file is required (#431).
Improvements
- Optimization: Added transition animations for smoother page navigation.
- Optimization: Improved preloading animations to shorten duration.
- Fixed: Time zone issues with the "Essay" feature, now displayed dynamically (#367).
- Fixed: Long Mathjax inline formulas being obstructed (#422).
- Fixed: Logo size being too large (#438).
- Fixed: Translation issues on the 404 page.
- Fixed: Reading progress toolbar showing Infinity, -Infinity, or NaN for percentage (#432).
- Fixed: Dark-themed code blocks not displaying correctly on some themes (#435, #437).
Update Instructions
- NPM: Run
npm install hexo-theme-redefine@latest
- Git: Run
cd themes/redefine && git pull
For more details, see the Redefine documentation on updates.
Please note: It may take a few hours for some CDNs to sync after a new version is released. If you're using a CDN, generate your site and check the logs to verify availability.
Recommended CDN: npmmirror
, which is provided by Alibaba Cloud and offers very fast access speeds both domestically and internationally.
Configuration file migration is required to use new features. Users should check the update documentation for details.
v2.7.1
更新日志
更改项
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
新版本刚发布后,部分CDN 同步需要时间,如需使用,请等待几小时后,生成站点查看日志以确定 CDN 是否可用。
推荐使用 npmmirror
CDN,由阿里云官方提供,访问速度极快(国内与海外)。
本版本主要为 bug 修复,不需要迁移配置文件。
关于 BootCDN 以及 Staticfile CDN 投毒
Staticfile 以及 Bootcdn 由于存在 CDN 投毒的安全风险,已经不再安全。因此,Redefine 主题的新版本 (2.7.0+) 已切换到 Cloudflare 的 CDNJS 作为 Twikoo 和 Gitalk 的脚本源,并且移除这两个 CDN 的支持。
如需进一步了解相关内容,请访问 【BootCDN/Staticfile投毒分析】供应链投毒后,我们的选择还剩下哪些?(来源:吾爱破解论坛)。
请及时更新主题版本到 2.7.0 即以上,并避免使用 bootCDN 和 staticfileCDN。
感谢您的理解与支持。
Release Notes
Changes
New Features (configuration file migration required)
- None.
Update Instructions
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
Configuration file migration is required to use new features. Users should check the update documentation for details.
The npmmirror
CDN is recommended for fast access speeds both domestically and internationally.
Security Note
BootCDN and Staticfile CDN support has been removed due to security risks. Users are advised to update to version 2.7.0 or higher and avoid using these CDNs.
v2.7.0
更新日志
新增(需迁移配置文件)
- 自定义代码高亮主题 (#380),预览可前往 highlightjs 官网演示,目前支持:
- 亮色主题:
github
,atom-one-light
,default
- 暗色主题:
github-dark
,monokai-sublime
,vs2015
,night-owl
,atom-one-dark
,nord
,tokyo-night-dark
,a11y-dark
,agate
- 亮色主题:
- 导航栏站点标题以及主页侧边栏站点标题自定义字体 #398
- Hitokoto 显示作者功能 #409
- 主题预加载页面自定义文字 #416
- 自定义首页文章摘要长度 #414
更改项
- 移除:
staticfile
以及bootcdn
两个 CDN。两者具有 CDN 投毒风险,详情请往下看 - 修复:文章加密与主题单页加载冲突导致无法加载图片 / 执行 js 代码问题 #405 #400
- 修复:
categories
以及tags
标签页自定义标题会空白页面问题 - 修复:标题单引号报错 #402 #403
- 修复:说说时间显示问题 #395
- 优化:国际化翻译 #389
- 优化:文章归档分类排序 #395
- 优化:404 页面显示问题 #389
- 优化:主题预加载页面默认关闭
- 优化:Twikoo 以及 Gitalk 使用 Cloudflare CDNJS 作为脚本提供源,移除原先的 Staticfile #415
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
新版本刚发布后,部分CDN 同步需要时间,如需使用,请等待几小时后,生成站点查看日志以确定 CDN 是否可用。
推荐使用 npmmirror
CDN,由阿里云官方提供,访问速度极快(国内与海外)。
本版本需要迁移配置文件,如需使用新功能,需要你一一核对,详情请见:更新文档。
特别鸣谢
- @feiju12138 代码优化
- @FrederickBun 代码贡献 + 主题文档
- @Smileslime47 代码贡献
- @RyouSY Bug 修复
- @jackgdn 新增功能
关于 BootCDN 以及 Staticfile CDN 投毒
Staticfile 以及 Bootcdn 由于存在 CDN 投毒的安全风险,已经不再安全。因此,Redefine 主题的新版本 (2.7.0+) 已切换到 Cloudflare 的 CDNJS 作为 Twikoo 和 Gitalk 的脚本源,并且移除这两者的支持。
如需进一步了解相关内容,请访问 【BootCDN/Staticfile投毒分析】供应链投毒后,我们的选择还剩下哪些?(来源:吾爱破解论坛)。
请及时更新主题版本到 2.7.0 即以上,并避免使用 bootCDN 和 staticfileCDN。
感谢您的理解与支持。
Release Notes
New Features (configuration file migration required)
- Custom code highlighting themes (#380). Preview available on the highlightjs website. Supported themes:
- Light themes:
github
,atom-one-light
,default
- Dark themes:
github-dark
,monokai-sublime
,vs2015
,night-owl
,atom-one-dark
,nord
,tokyo-night-dark
,a11y-dark
,agate
- Light themes:
- Custom fonts for navigation bar site title and homepage sidebar site title (#398)
- Display author for Hitokoto quotes (#409)
- Custom text for theme preload page (#416)
- Custom length for article excerpts on homepage (#414)
Changes
- Removed:
staticfile
andbootcdn
CDNs due to security risks - Fixed: Conflict between article encryption and theme single page loading causing images/JS not to load (#405 #400)
- Fixed: Blank page issue with custom titles for
categories
andtags
pages - Fixed: Error with single quotes in titles (#402 #403)
- Fixed: Time display issue for blog posts (#395)
- Improved: Internationalization translations (#389)
- Improved: Sorting of article archive categories (#395)
- Improved: 404 page display (#389)
- Improved: Theme preload page disabled by default
- Improved: Twikoo and Gitalk now use Cloudflare CDNJS as script source, removed Staticfile (#415)
Update Instructions
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
Configuration file migration is required to use new features. Users should check the update documentation for details.
The npmmirror
CDN is recommended for fast access speeds both domestically and internationally.
Security Note
BootCDN and Staticfile CDN support has been removed due to security risks. Users are advised to update to version 2.7.0 or higher and avoid using these CDNs.
v2.6.4
更新日志
新增
- ⭐️
npmmirror
CDN,访问速度极快,推荐使用此 CDN
修复
zstatic
CDN 调用错误问题
优化
- Waline 版本更新
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
新版本刚发布后,部分CDN 同步需要时间,如需使用,请等待几小时后,生成站点查看日志以确定 CDN 是否可用。推荐使用 npmmirror
CDN
本版本需要迁移配置文件,添加了新的 cdn 源,推荐使用 npmmirror
CDN,由阿里云官方提供,访问速度极快(国内与海外)
Release Notes
New Features
- ⭐️ Introducing the
npmmirror
CDN for faster access speeds. We highly recommend using this CDN.
Bug Fixes
- Fixed issue with
zstatic
CDN calls.
Improvements
- Updated Waline to improve functionality.
How to Update:
- NPM: Run
npm install hexo-theme-redefine@latest
- Git: Navigate to
themes/redefine
and rungit pull
For detailed instructions, visit: Redefine Documentation #Update
Please note, it may take a few hours for some CDN updates to sync after the release. We recommend generating your site later to confirm CDN availability. We recommend using the npmmirror
CDN from Alibaba Cloud, known for its fast speeds both locally and internationally.
This version requires migrating configuration files and introduces a new CDN source.
v2.6.3
更新日志
新增
修复
优化
- CDN 检测提示
- 移除默认中文
Noto Sans SC
字体 - Markdown 默认 Heading 大小调整
- Markdown 默认 Heading Spacing 调整
- Preloader 预加载增加模糊特效
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
新版本刚发布后,CDNJS 同步需要时间,如需使用,请等待几小时后,生成站点查看日志以确定 CDN 是否可用。推荐使用 zstatic
CDN
本版本需要迁移配置文件,推荐更换默认 headings_top_spacing
数值。
Release Notes
New Features
- Vercel's
Geist
andGeist Mono
are now the default fonts for English. - Added Waline article reactions #359 #376 @RyouSY
Bug Fixes
- Fixed the issue with tables not displaying in the Tabs plugin #379
- Optimized the style for inline code blocks #379
Improvements
- Added alerts for CDN detection
- Removed the default Chinese
Noto Sans SC
font - Adjusted the default sizes for Markdown headings
- Tweaked the spacing for Markdown headings
- Added a blur effect to the preloader
How to Update
- NPM:
npm install hexo-theme-redefine@latest
- Git:
cd themes/redefine && git pull
For more details, see the Redefine Documentation #Update
Please note, it takes some time for CDNJS to sync after a new version is released. If you plan to use it, wait a few hours, then generate your site and check the logs to see if the CDN is available. We recommend using the zstatic
CDN
This version requires migrating configuration files, and we recommend updating the default headings_top_spacing
value.
v2.6.2
更新日志
新增
- 新增
zstatic
以及sustech
CDN (#347)默认zstatic
- 引入新的 CSS 工具类用于边距和宽度,以增强布局灵活性
- 更新所有 README 文件,包括新的 git pull 命令指令,确保用户能轻松更新主题
修复
- 清理代码库,移除不必要的分号和尾随空格
- 提升各种脚本和样式配置,改进性能和可维护性
优化
- CI 改进
- 工作流优化
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
git clone https://github.com/EvanNotFound/hexo-theme-redefine.git themes/redefine
Staticfile 目前可能会导致 CORS 无法加载资源文件,推荐切换到 zstatic
CDN
本版本无需迁移配置文件。
Release Notes
New Features
- Added 'zstatic' as a new CDN provider to expand our distribution capabilities. Resolve [功能建议]:更新 CDN endpoint #347.
- Introduced new CSS utility classes for margin and width to enhance layout flexibility.
- Updated project version to 2.6.2 to mark the new enhancements.
- Documentation: Updated all README files to include new git pull command instructions, ensuring users can easily update the theme.
Fixes
- Cleaned up the codebase by removing unnecessary semicolons and trailing spaces.
- Enhanced various script and style configurations to improve performance and maintainability.
Improvements
- CI Improvements: Removed unnecessary CI condition and halted the automatic installation of Vercel CLI to streamline our workflows.
- Workflow Optimization: Updated preview workflow to trigger for all PRs and upgraded GitHub actions for more robust CI/CD processes.
v2.6.1
更新日志
新增
- 手机端侧边栏菜单 #331
- 首页社交链接可自定义样式(
居中
/正序
/逆序
)#316 - 默认站点为深色模式选项 #330
- 菜单栏自定义宽度 #324
- 自定义文章标题顶部间距 #272
- 站点页脚总文章数,总字数统计 #242
以上新增项目都需同步配置文件项
修复
- 关闭 preloader 后,页脚下出现空白 #322
- head 位置的 injector,实际注入的位置在 body #321
- 页面中的图片描述不居中问题 #323
- 非首页文章列表不显示背景图片 #317
优化
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
git clone https://github.com/EvanNotFound/hexo-theme-redefine.git themes/redefine
Staticfile 目前可能会导致 CORS 无法加载资源文件,请切换 CDNJS 或者我个人的 CDN aliyun
本版本需要迁移配置文件,请自行将自己的 _config.redefine.yml
和主题文件夹内的 _config.yml
进行比对,同步新增的配置项。
Release Notes
New Features
- Mobile sidebar menu #331
- Customizable style for homepage social links (
center
/default
/reverse
) #316 - Default site mode to dark #330
- Customizable menu bar width #324
- Custom top margin for article titles #272
- Site footer to display total number of articles and word count #242
All the above new features need to be synchronized with the configuration file.
Fixes
- Blank space appears under the footer after disabling the preloader #322
- The injector at the head position, actually injects at the body #321
- Image descriptions in pages are not centered #323
- Background images not displayed on article lists that are not on the homepage #317
Improvements
For update instructions, see: Redefine Documentation #Update
v2.6.0
更新日志
新增
- ⭐️ 新增网站加载页面,改善访问体验
- ⭐️ 全新移动端导航菜单
- 全新主题渲染图
- 首页社交链接风格更新
- Gitalk 新增 Proxy 选项 #277
- Waline 表情自定义选项,以及
RECAPTCHA_V3_KEY
和TURNSTILE_KEY
#266 - 首屏下拉提示箭头 #241
修复
- 解决Safari背景模糊闪烁问题
- 部分字体大小不一致问题解决
- 删除多余的脚本调用和类别,加快页面加载
优化
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
git clone https://github.com/EvanNotFound/hexo-theme-redefine.git themes/redefine
Staticfile 目前会导致 CORS 无法加载资源文件,请切换 CDNJS 或者我个人的 CDN aliyun
本版本需要迁移配置文件,请自行将自己的 _config.redefine.yml
和主题文件夹内的 _config.yml
进行比对,同步新增的配置项。
Release Notes
New Features
- Enhanced script loading sequence for improved page load performance.
- Added failsafe in preloader to hide after maximum delay, enhancing user experience on slower connections (#241).
- Implemented responsive design in preloader, improving visual appeal across devices.
- Revamped social links and navbar stylings, offering a more modern and user-friendly interface.
- Updated social links and QR styles in the home banner, ensuring a more engaging and interactive homepage.
Fixes
- Resolved multiple instances of background blur flickering issues with Safari, enhancing cross-browser compatibility.
- Fixed duplicate background image issue, streamlining the visual experience.
- Addressed font size inconsistencies in the statistics section for better readability.
- Eliminated redundant script calls and classes to optimize page performance and loading times.
Optimizations
- Reduced font sizes and improved styling in various sections for a more cohesive and attractive design.
- Enhanced mobile responsiveness in tagcloud, category list, and article layouts, ensuring a seamless experience on all devices.
- Updated the homepage banner styles and classes for a more visually appealing and intuitive user interface.
- Improved UI responsiveness and code efficiency, leading to faster page loads and a smoother user experience.
- Refactored home-sidebar for increased modularity, allowing for easier customization and maintenance.
- Enhanced article layout and style adjustments for an improved reading experience.
For update instructions, see: Redefine Documentation #Update
v2.5.6
更新日志
修复
- 网络不通导致无法部署问题
更新方法:
- NPM:
npm install hexo-theme-redefine@latest
- Git:
git clone https://github.com/EvanNotFound/hexo-theme-redefine.git themes/redefine
国内用户推荐使用 Staticfile CDN,由七牛云提供,速度特别快。
Bug 修复,无需迁移配置文件,推荐所有用户更新。
Release Notes
Fixes
- An issue with network disruption preventing deployment
For update instructions, see: Redefine Documentation #Update