From: Joe Mooring Date: Mon, 24 Feb 2025 04:17:04 +0000 (-0800) Subject: hugolib: Deprecate _build front matter key in favor of build X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d0ce94219049508e45c5a7c43a281ecde7778358;p=brevno-suite%2Fhugo hugolib: Deprecate _build front matter key in favor of build We effectively aliased "_build" to "build" in v0.123.0, and removed "_build" from the documentation at the same time. --- diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go index 20ce1aa59..56bc1d96f 100644 --- a/hugolib/page__meta.go +++ b/hugolib/page__meta.go @@ -430,6 +430,7 @@ func (p *pageState) setMetaPostParams() error { var buildConfig any var isNewBuildKeyword bool if v, ok := pm.pageConfig.Params["_build"]; ok { + hugo.Deprecate("The \"_build\" front matter key", "Use \"build\" instead. See https://gohugo.io/content-management/build-options.", "0.145.0") buildConfig = v } else { buildConfig = pm.pageConfig.Params["build"]