发布日期: 2024-10-15
版本号: v0.136.0

本次Hugo版本更新主要包含以下内容:Dockerfile和镜像得到显著优化,使用方法略有调整,详细文档即将补充。修复了配置文件中uglyurls映射解析问题。新增多项功能改进,包括支持转义固定链接中的冒号、优化命令行子命令描述风格、增强日期字段验证、新增"hugo build"作为"hugo"命令别名、调整表格默认对齐方式等。同时更新了多个依赖库,包括wazero、goldmark-emoji、esbuild等工具库。文档方面优化了CircleCI的Docker镜像配置,并重新生成命令行文档。

更新内容 (中文)

注意 我们在本版本中对 Dockerfile镜像 进行了大幅改进。但这也意味着需要稍微不同的配置方式。改进后的文档即将发布,请参考 41f69a725 #12920 #12885 #12921。

错误修复

  • config: 修复uglyurls映射解析 ea633dd80 @akkuman #12926

改进

  • resources/page: 调整永久链接冒号实现方式 6e1c5b61b @bep #12918
  • resources/page: 允许转义永久链接中的冒号 e7d0757f9 @n1xx1 #12918
  • commands: 子命令描述使用统一风格 6b5e117a1 @Hasaber8 #12897
  • config: 改进uglyurls章节测试 21366e041 @bep #12926
  • create/skeletons: 创建默认原型时遵循–format标志 57151a5e9 @jmooring #12666
  • hugolib: 优化.Site.Author弃用警告提示 5bb22b6b4 @jvns #12269
  • ci: 通过交叉编译构建多平台镜像 4a7995627 @dvdksn
  • tpl/tplimpl: 使用trim替代chomp处理描述 039845804 @chalin
  • tailwind: 将Tailwind 4测试固定为alpha 26及以上版本 5b0b663ec @jmooring
  • resources/page: 将null日期视为零值日期 3f6830914 @jmooring #12906
  • resources/page: 改进Front Matter日期验证 ab03588db @jmooring #12898
  • commands: 添加"hugo build"作为"hugo"的别名 0450d69fc @bep #11391
  • markup/goldmark: 更改表格渲染钩子的默认单元格对齐方式 1158e6307 @jmooring #12886
  • tests: 处理弃用警告和错误 d1ba52f3c @jmooring

依赖更新

  • build(deps): 升级github.com/tetratelabs/wazero从1.8.0到1.8.1 4985be1a4 @dependabot[bot]
  • build(deps): 升级golang.org/x/image从0.20.0到0.21.0 db653a848 @dependabot[bot]
  • build(deps): 升级github.com/yuin/goldmark-emoji从1.0.3到1.0.4 05bbd2c51 @dependabot[bot]
  • build(deps): 升级golang.org/x/tools从0.23.0到0.26.0 9b635522e @dependabot[bot]
  • build(deps): 升级github.com/rogpeppe/go-internal从1.12.0到1.13.1 3223a65c9 @dependabot[bot]
  • build(deps): 升级github.com/evanw/esbuild从0.23.1到0.24.0 bc6fc4772 @dependabot[bot]
  • build(deps): 升级github.com/hairyhenderson/go-codeowners ffb41d111 @dependabot[bot]

文档

  • circleci: 使用默认docker镜像 5db27b19c @bep
  • docs: 重新生成CLI文档 b7d62d76c @bep

更新内容 (原始)

Note that we have much improved the Dockerfile and image this release. But this also means a slightly different way of setting it up. Improved documentation will come soon, but see 41f69a725 #12920 #12885 #12921.

Bug fixes

  • config: Fix uglyurls map parse ea633dd80 @akkuman #12926

Improvements

  • resources/page: Adjust the permalinks colon implementation a little 6e1c5b61b @bep #12918
  • resources/page: Allow colons in permalinks to be escaped e7d0757f9 @n1xx1 #12918
  • commands: Use consistent style when describing subcommands 6b5e117a1 @Hasaber8 #12897
  • config: Imrove uglyurls section test 21366e041 @bep #12926
  • create/skeletons: Honor –format flag when creating default archetype 57151a5e9 @jmooring #12666
  • hugolib: Make .Site.Author deprecation warning clearer 5bb22b6b4 @jvns #12269
  • ci: Build multi-platform image with cross-compilation 4a7995627 @dvdksn
  • tpl/tplimpl: Trim descriptions rather than just chomp 039845804 @chalin
  • tailwind: Pin Tailwind 4 test to alpha 26 or later 5b0b663ec @jmooring
  • resources/page: Treat null dates as zero dates 3f6830914 @jmooring #12906
  • resources/page: Improve front matter date validation ab03588db @jmooring #12898
  • commands: Add “hugo build” as an alias for “hugo” 0450d69fc @bep #11391
  • markup/goldmark: Change default cell alignment in table render hook 1158e6307 @jmooring #12886
  • tests: Address deprecation warnings and errors d1ba52f3c @jmooring

Dependency Updates

  • build(deps): bump github.com/tetratelabs/wazero from 1.8.0 to 1.8.1 4985be1a4 @dependabot[bot]
  • build(deps): bump golang.org/x/image from 0.20.0 to 0.21.0 db653a848 @dependabot[bot]
  • build(deps): bump github.com/yuin/goldmark-emoji from 1.0.3 to 1.0.4 05bbd2c51 @dependabot[bot]
  • build(deps): bump golang.org/x/tools from 0.23.0 to 0.26.0 9b635522e @dependabot[bot]
  • build(deps): bump github.com/rogpeppe/go-internal from 1.12.0 to 1.13.1 3223a65c9 @dependabot[bot]
  • build(deps): bump github.com/evanw/esbuild from 0.23.1 to 0.24.0 bc6fc4772 @dependabot[bot]
  • build(deps): bump github.com/hairyhenderson/go-codeowners ffb41d111 @dependabot[bot]

Documentation

  • circleci: Use default docker image 5db27b19c @bep
  • docs: Regen CLI docs b7d62d76c @bep

下载链接