diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-29 13:52:04 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-29 13:52:04 +0100 |
commit | adfd4370b67fd7181178bd6b3b1d07356beaac71 (patch) | |
tree | a962de047626ab9795d837bf03a36cbb73756d06 | |
parent | 25d691daff57d7c6d7d0f63af3991d22e3f788fe (diff) |
hugolib: Deprecate useModTimeAsFallback
Fixes #4351
-rw-r--r-- | hugolib/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hugolib/config.go b/hugolib/config.go index c30e93f15..ce9711cfd 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -250,5 +250,11 @@ func loadDefaultSettingsFor(v *viper.Viper) error { v.SetDefault("debug", false) v.SetDefault("disableFastRender", false) + // Remove in Hugo 0.37 + if v.GetBool("useModTimeAsFallback") { + helpers.Deprecated("Site config", "useModTimeAsFallback", "Try --enableGitInfo or set lastMod in front matter", false) + + } + return loadLanguageSettings(v, nil) } |