mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
@@ -33,6 +33,7 @@ func init() {
|
||||
{`{{ "http://gohugo.io/" | relURL }}`, `http://gohugo.io/`},
|
||||
{`{{ "mystyle.css" | relURL }}`, `/hugo/mystyle.css`},
|
||||
{`{{ mul 2 21 | relURL }}`, `/hugo/42`},
|
||||
{`{{ "Bat Man" | urlize }}`, `bat-man`},
|
||||
}
|
||||
|
||||
return &internal.TemplateFuncsNamespace{
|
||||
@@ -45,6 +46,7 @@ func init() {
|
||||
"relURL": ctx.RelURL,
|
||||
"relLangURL": ctx.RelLangURL,
|
||||
"relref": ctx.RelRef,
|
||||
"urlize": ctx.URLize,
|
||||
},
|
||||
Examples: examples,
|
||||
}
|
||||
|
Reference in New Issue
Block a user