diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-05 17:05:33 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-05 17:28:14 +0100 |
commit | d4830fc4fd765d38fd0d7e3d8297eebbe6fca011 (patch) | |
tree | 6275b92abc52ca211afc519224a246cc6e651e24 /helpers/url.go | |
parent | 72156e403c3e83b0091c764111ce6a75bd40c08e (diff) |
helpers: Golint fixes
Diffstat (limited to 'helpers/url.go')
-rw-r--r-- | helpers/url.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers/url.go b/helpers/url.go index 3c178f0ff..922d4aa80 100644 --- a/helpers/url.go +++ b/helpers/url.go @@ -288,10 +288,13 @@ func AddContextRoot(baseURL, relativePath string) string { return newPath } +// URLizeAndPrep applies misc sanitation to the given URL to get it in line +// with the Hugo standard. func (p *PathSpec) URLizeAndPrep(in string) string { return URLPrep(p.uglyURLs, p.URLize(in)) } +// URLPrep applies misc sanitation to the given URL. func URLPrep(ugly bool, in string) string { if ugly { x := Uglify(SanitizeURL(in)) |