hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 0bc4b0246dd6b7d71f8676a52644077a4f70ec8f
parent faeb55c1d827f0ea994551a103ff4f7448786d39
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu,  1 Nov 2018 21:14:30 +0100

hugolib: Remove deprecated useModTimeAsFallback

Diffstat:
Mhugolib/config.go | 14--------------
1 file changed, 0 insertions(+), 14 deletions(-)
diff --git a/hugolib/config.go b/hugolib/config.go
@@ -473,7 +473,6 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
 	v.SetDefault("hasCJKLanguage", false)
 	v.SetDefault("enableEmoji", false)
 	v.SetDefault("pygmentsCodeFencesGuessSyntax", false)
-	v.SetDefault("useModTimeAsFallback", false)
 	v.SetDefault("defaultContentLanguage", "en")
 	v.SetDefault("defaultContentLanguageInSubdir", false)
 	v.SetDefault("enableMissingTranslationPlaceholders", false)
@@ -484,18 +483,5 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
 	v.SetDefault("disableFastRender", false)
 	v.SetDefault("timeout", 10000) // 10 seconds
 
-	// Remove in Hugo 0.50
-
-	if v.GetBool("useModTimeAsFallback") {
-
-		helpers.Deprecated("Site config", "useModTimeAsFallback", `Replace with this in your config.toml:
-    
-[frontmatter]
-date = [ "date",":fileModTime", ":default"]
-lastmod = ["lastmod" ,":fileModTime", ":default"]
-`, true)
-
-	}
-
 	return nil
 }