Skip to content

Commit

Permalink
hugolib: Deprecate useModTimeAsFallback
Browse files Browse the repository at this point in the history
Fixes #4351
  • Loading branch information
bep committed Jan 29, 2018
1 parent 25d691d commit adfd437
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hugolib/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit adfd437

Please sign in to comment.