diff options
-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) } |