diff --git a/hugolib/config.go b/hugolib/config.go index c30e93f15ca..ce9711cfd6b 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) }