发布日期: 2024-11-04
版本号: v0.137.0

Hugo 已不再在标准版和扩展版构建文件中内置部署功能,需下载文件名含 withdeploy 的版本以使用该功能,具体安装说明可参考官方文档。此调整使二进制文件体积减少约40%。本次更新包含多项错误修复:修复了短引用重建时的页面缓存问题、渲染短代码错误及动态缓存潜在死锁问题。改进方面,优化了目录监控逻辑、调整了Goldmark对原始HTML的警告提示方式、修复了Dart Sass内置函数弃用问题,并默认禁用部署功能以减少构建体积。依赖项更新包括升级 godartsasslazycache 库版本。文档部分更新了README文件内容。

更新内容 (中文)

请注意,我们不再在标准版和扩展版归档文件中内置部署功能。如需使用该功能,请下载文件名包含 withdeploy 的归档文件。具体说明请参阅安装指南。您可通过 #12994 了解此调整背后的动机,其中一项原因是该调整使二进制文件体积缩减约40%。

错误修复

  • 修复 GetPage 使用短引用时重建导致的页面过期问题 30d9aea86 @bep #13004
  • 修复部分 RenderShortcodes 错误场景 1f23b4949 @bep #12854 #12998
  • dynacache: 修复 GetOrCreate 方法中潜在的死锁问题 e10915f80 @bep

功能改进

  • 避免监视未挂载文件的目录 fcdc454cc @bep #12912 #13007
  • markup/goldmark: 仅在进入块级元素时记录原始 HTML 被忽略的警告 6cf23bf88 @bep #12997
  • markup/goldmark: 对 Goldmark 的 <!-- raw HTML omitted --> 添加告警(使用 Warnidf) 62a96cef7 @bep #12997
  • resources: 适配 Dart Sass 弃用全局内置函数的行为 889308dd8 @jmooring #12961
  • github: 调整测试工作流程以安装 Dart Sass v1.80.3 72352f205 @jmooring
  • 默认构建不包含部署功能 89bd025eb @bep #12994 #12994

依赖更新

  • deps: 升级 github.com/bep/godartsass/v2 v2.1.0 => v2.2.0 e3304db61 @bep
  • deps: 升级 github.com/bep/lazycache v0.6.0 => v0.7.0 62567d382 @bep

文档更新

  • 更新 README.md 5fc163903 @jmooring
  • 更新 README.md 1ec6fa36c @bep

更新内容 (原始)

Note that we have no longer build the deploy feature in the standard and extended archives. If you need that, download archives with withdeploy in the filename. See instalation for details. You can read #12994 for more on the motivation behind this, but for one, it shaves off about 40% of the binary size.

Bug fixes

  • Fix stale pages on rebuilds in GetPage with short refs 30d9aea86 @bep #13004
  • Fix some RenderShortcodes error cases 1f23b4949 @bep #12854 #12998
  • dynacache: Fix potential deadlocks on panics in GetOrCreate e10915f80 @bep

Improvements

  • Do not watch directories with no mounted files in it fcdc454cc @bep #12912 #13007
  • markup/goldmark: Only log Raw HTML omitted WARN on block entering 6cf23bf88 @bep #12997
  • markup/goldmark: Add warning (using Warnidf) on Goldmark 62a96cef7 @bep #12997
  • resources: Address Dart Sass deprecation of global built-in functions 889308dd8 @jmooring #12961
  • github: Adjust test workflow to install Dart Sass v1.80.3 72352f205 @jmooring
  • Build without the deploy feature by default 89bd025eb @bep #12994 #12994

Dependency Updates

  • deps: Upgrade github.com/bep/godartsass/v2 v2.1.0 => v2.2.0 e3304db61 @bep
  • deps: Upgrade github.com/bep/lazycache v0.6.0 => v0.7.0 62567d382 @bep

Documentation

  • Update README.md 5fc163903 @jmooring
  • Update README.md 1ec6fa36c @bep

下载链接