Emit a warning that can be turned off when overwriting built-in .Params values

Fixes #11941
This commit is contained in:
Bjørn Erik Pedersen
2024-01-30 10:07:28 +01:00
parent 4e84f57efb
commit afee781f03
3 changed files with 29 additions and 1 deletions

View File

@@ -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.