shithub: hugo

Download patch

ref: 544f0a6394b0e085d355e8217fc5bb3d96c12a98
parent: 5794a265b41ffdeebfd8485eecf65cf4088d49d6
author: Bjørn Erik Pedersen <[email protected]>
date: Wed May 10 16:05:52 EDT 2017

hugolib: The deprecated Extension, Now and TargetPath will now ERROR

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -749,7 +749,7 @@
 
 func (p *Page) Extension() string {
 	// Remove in Hugo 0.22.
-	helpers.Deprecated("Page", "Extension", "See OutputFormats with its MediaType", false)
+	helpers.Deprecated("Page", "Extension", "See OutputFormats with its MediaType", true)
 	return p.extension
 }
 
@@ -1510,7 +1510,7 @@
 
 func (p *Page) Now() time.Time {
 	// Delete in Hugo 0.22
-	helpers.Deprecated("Page", "Now", "Use now (the template func)", false)
+	helpers.Deprecated("Page", "Now", "Use now (the template func)", true)
 	return time.Now()
 }
 
--- a/hugolib/page_paths.go
+++ b/hugolib/page_paths.go
@@ -251,6 +251,6 @@
 
 func (p *Page) TargetPath() (outfile string) {
 	// Delete in Hugo 0.22
-	helpers.Deprecated("Page", "TargetPath", "This method does not make sanse any more.", false)
+	helpers.Deprecated("Page", "TargetPath", "This method does not make sanse any more.", true)
 	return ""
 }