summaryrefslogtreecommitdiffstats
path: root/helpers/url.go
diff options
context:
space:
mode:
authorPhil Davis <phil@jankaritech.com>2020-12-16 16:56:32 +0545
committerGitHub <noreply@github.com>2020-12-16 12:11:32 +0100
commit04b89857e104ac7dcbf9fc65d8d4f1a1178123e6 (patch)
tree585bf761f0a1cfc69dffcd8afd22e94ca9da7c07 /helpers/url.go
parent21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 (diff)
downloadhugo-04b89857e104ac7dcbf9fc65d8d4f1a1178123e6.tar.gz
hugo-04b89857e104ac7dcbf9fc65d8d4f1a1178123e6.zip
all: Fix minor typos
Diffstat (limited to 'helpers/url.go')
-rw-r--r--helpers/url.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/url.go b/helpers/url.go
index 6f4242b09..8c39bc4fa 100644
--- a/helpers/url.go
+++ b/helpers/url.go
@@ -105,7 +105,7 @@ func (p *PathSpec) URLize(uri string) string {
return p.URLEscape(p.MakePathSanitized(uri))
}
-// URLizeFilename creates an URL from a filename by esacaping unicode letters
+// URLizeFilename creates an URL from a filename by escaping unicode letters
// and turn any filepath separator into forward slashes.
func (p *PathSpec) URLizeFilename(filename string) string {
return p.URLEscape(filepath.ToSlash(filename))
@@ -280,7 +280,7 @@ func AddContextRoot(baseURL, relativePath string) string {
newPath := path.Join(url.Path, relativePath)
- // path strips traling slash, ignore root path.
+ // path strips trailing slash, ignore root path.
if newPath != "/" && strings.HasSuffix(relativePath, "/") {
newPath += "/"
}