mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-05 08:42:12 +00:00
Add UrlPath to the deprecated list
This commit is contained in:
parent
e39a258ec4
commit
49f20bbc9b
|
@ -14,10 +14,10 @@
|
||||||
package hugolib
|
package hugolib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/spf13/hugo/helpers"
|
||||||
"html/template"
|
"html/template"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
"github.com/spf13/hugo/helpers"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Node struct {
|
type Node struct {
|
||||||
|
@ -133,6 +133,18 @@ func (n *Node) Url() string {
|
||||||
return n.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.
|
// Scratch returns the writable context associated with this Node.
|
||||||
func (n *Node) Scratch() *Scratch {
|
func (n *Node) Scratch() *Scratch {
|
||||||
if n.scratch == nil {
|
if n.scratch == nil {
|
||||||
|
|
Loading…
Reference in a new issue