diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-30 10:07:28 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-30 20:12:03 +0100 |
commit | afee781f03df4305698bf4b6991cd10e996515c5 (patch) | |
tree | 032a56da49d959991f9d0c8e6321a0adac0a21ce /common | |
parent | 4e84f57efb57f5c8a850e4c1d562a0bcc7bd1700 (diff) | |
download | hugo-afee781f03df4305698bf4b6991cd10e996515c5.tar.gz hugo-afee781f03df4305698bf4b6991cd10e996515c5.zip |
Emit a warning that can be turned off when overwriting built-in .Params values
Fixes #11941
Diffstat (limited to 'common')
-rw-r--r-- | common/constants/constants.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/constants/constants.go b/common/constants/constants.go index e4f5a63a2..f8f057e05 100644 --- a/common/constants/constants.go +++ b/common/constants/constants.go @@ -13,12 +13,14 @@ package constants -// Error IDs. +// Error/Warning IDs. // Do not change these values. const ( // IDs for remote errors in tpl/data. ErrRemoteGetJSON = "error-remote-getjson" ErrRemoteGetCSV = "error-remote-getcsv" + + WarnFrontMatterParamsOverrides = "warning-frontmatter-params-overrides" ) // Field/method names with special meaning. |