hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 3dd949d956390478da83b44488b0a5f4a9ebeb86
parent a40d1f6ed2aedddc99725658993258cd557640ed
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Tue,  2 May 2017 23:46:36 +0200

tpl/urls: Make urlize return a string

Like it did in 0.20.

Diffstat:
Mtpl/urls/urls.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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 {