Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl/urls
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-03 00:46:36 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-03 00:46:36 +0300
commit3dd949d956390478da83b44488b0a5f4a9ebeb86 (patch)
tree14d7112376a3f45a7c59f482e1c9e8bd8adbbe22 /tpl/urls
parenta40d1f6ed2aedddc99725658993258cd557640ed (diff)
tpl/urls: Make urlize return a string
Like it did in 0.20.
Diffstat (limited to 'tpl/urls')
-rw-r--r--tpl/urls/urls.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/urls/urls.go b/tpl/urls/urls.go
index 5d1077785..ee4457e76 100644
--- a/tpl/urls/urls.go
+++ b/tpl/urls/urls.go
@@ -54,12 +54,12 @@ func (ns *Namespace) RelURL(a interface{}) (template.HTML, error) {
return template.HTML(ns.deps.PathSpec.RelURL(s, false)), nil
}
-func (ns *Namespace) URLize(a interface{}) (template.URL, error) {
+func (ns *Namespace) URLize(a interface{}) (string, error) {
s, err := cast.ToStringE(a)
if err != nil {
return "", nil
}
- return template.URL(ns.deps.PathSpec.URLize(s)), nil
+ return ns.deps.PathSpec.URLize(s), nil
}
type reflinker interface {