diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-01-04 13:07:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-01-04 17:10:39 +0100 |
commit | 2b6063c3e388056597af88709ff017d15f53c962 (patch) | |
tree | a86d4dde3cd5b7df5bb5738a248a0da0c5f640fd /hugolib/config.go | |
parent | 56ab83a59712725e1ce0dd3fd516cc7c190c8478 (diff) | |
download | hugo-2b6063c3e388056597af88709ff017d15f53c962.tar.gz hugo-2b6063c3e388056597af88709ff017d15f53c962.zip |
Misc depreation updates
* Deprecate .Page.Path when backed by a file
* site.Permalinks
* --ignoreVendor (use --ignoreVendorPaths)
Closes #9348
Closes #9349
Diffstat (limited to 'hugolib/config.go')
-rw-r--r-- | hugolib/config.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/hugolib/config.go b/hugolib/config.go index e79899b94..dffecd9a3 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -53,7 +53,6 @@ var ErrNoConfigFile = errors.New("Unable to locate config file or config directo // LoadConfig loads Hugo configuration into a new Viper and then adds // a set of defaults. func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provider) error) (config.Provider, []string, error) { - if d.Environment == "" { d.Environment = hugo.EnvironmentProduction } @@ -110,15 +109,8 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid } // Config deprecations. - // We made this a Glob pattern in Hugo 0.75, we don't need both. - if l.cfg.GetBool("ignoreVendor") { - helpers.Deprecated("--ignoreVendor", "Use --ignoreVendorPaths \"**\"", true) - l.cfg.Set("ignoreVendorPaths", "**") - } - if l.cfg.GetString("markup.defaultMarkdownHandler") == "blackfriday" { helpers.Deprecated("markup.defaultMarkdownHandler=blackfriday", "See https://gohugo.io//content-management/formats/#list-of-content-formats", false) - } // Some settings are used before we're done collecting all settings, |