ref: 49f20bbc9bf4eb9ecedfa0fd9dde484256ae91d1
parent: e39a258ec409f7072e82342bb50e8ac2ed15a994
author: bep <[email protected]>
date: Wed Mar 18 07:30:23 EDT 2015
Add UrlPath to the deprecated list
--- a/hugolib/node.go
+++ b/hugolib/node.go
@@ -14,10 +14,10 @@
package hugolib
import (
+ "github.com/spf13/hugo/helpers"
"html/template"
"sync"
"time"
- "github.com/spf13/hugo/helpers"
)
type Node struct {
@@ -131,6 +131,18 @@
func (n *Node) Url() string {
helpers.Deprecated("Node", ".Url", ".URL")
return n.URL
+}
+
+// UrlPath is deprecated. Will be removed in 0.15.
+func (n *Node) UrlPath() URLPath {
+ helpers.Deprecated("Node", ".UrlPath", ".URLPath")
+ return n.URLPath
+}
+
+// Url is deprecated. Will be removed in 0.15.
+func (up URLPath) Url() string {
+ helpers.Deprecated("URLPath", ".Url", ".URL")
+ return up.URL
}
// Scratch returns the writable context associated with this Node.