hugolib: Deprecate _build front matter key in favor of build - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit d0ce94219049508e45c5a7c43a281ecde7778358
DIR parent 4fd7f3233ff753cb80466cc1fb5d70ed5d95d9db
HTML Author: Joe Mooring <joe.mooring@veriphor.com>
Date: Sun, 23 Feb 2025 20:17:04 -0800
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.
Diffstat:
M hugolib/page__meta.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git 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"]