发布日期: 2025-10-22
版本号: v0.152.1

这些修复均与Hugo v0.152.0版本中的YAML库升级相关,主要解决了以下问题:扩展了数值转换至模板函数/方法、修复了uint64类型的使用场景、确保YAML整数类型能在期望Go整数类型的位置正常使用、修正了uint64类型的比较与排序逻辑,以及解决了空YAML配置文件可能导致的“向空map赋值”错误。

更新内容 (中文)

所有修复均与v0.152.0中的YAML库升级相关:

  • 将数字转换扩展至模板函数/方法 e08278d16 @bep #14079
  • 修复uint64相关的问题 df4f80d54 @bep #14081
  • 使YAML整数类型可在需要Go int类型的位置使用 d4c78885a @bep #14079
  • tpl/compare:修复uint64的比较/排序功能 29e2c2fa9 @bep #14078
  • 修复空YAML配置文件导致的"向空映射赋值"问题 0579afc3c @bep #14074

更新内容 (原始)

These fixes are are all related to the YAML library upgrade in v0.152.0.

  • Expand the numeric conversions to template funcs/methods e08278d16 @bep #14079
  • Fix where with uint64 df4f80d54 @bep #14081
  • Fix it so YAML integer types can be used where Go int types are expected d4c78885a @bep #14079
  • tpl/compare: Fix compare/sort of uint64s 29e2c2fa9 @bep #14078
  • Fix “assignment to entry in nil map” on empty YAML config files 0579afc3c @bep #14074

下载链接