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
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-10-14 22:34:34 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-10-14 22:34:34 +0300
commit5619fe52d3b87f6f5f3a9e1c85107ea91b7a80f3 (patch)
treee528b5a081fb14da8b98f1a4bc3c4e30f6556af2 /helpers
parent4c04d7101add03f85b770b8bf7ee3fd3398cb7c0 (diff)
Unexport internal path helper
Diffstat (limited to 'helpers')
-rw-r--r--helpers/path.go4
-rw-r--r--helpers/url.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/helpers/path.go b/helpers/path.go
index fc3262473..a6717cb37 100644
--- a/helpers/path.go
+++ b/helpers/path.go
@@ -430,10 +430,10 @@ func PathPrep(ugly bool, in string) string {
// /section/name/ becomes /section/name/index.html
// /section/name/index.html becomes /section/name/index.html
func PrettifyPath(in string) string {
- return PrettiyPath(in, fpb)
+ return prettiyPath(in, fpb)
}
-func PrettiyPath(in string, b filepathPathBridge) string {
+func prettiyPath(in string, b filepathPathBridge) string {
if filepath.Ext(in) == "" {
// /section/name/ -> /section/name/index.html
if len(in) < 2 {
diff --git a/helpers/url.go b/helpers/url.go
index c3365d0b8..c42bc6450 100644
--- a/helpers/url.go
+++ b/helpers/url.go
@@ -244,7 +244,7 @@ func PrettifyURL(in string) string {
// /section/name/ becomes /section/name/index.html
// /section/name/index.html becomes /section/name/index.html
func PrettifyURLPath(in string) string {
- return PrettiyPath(in, pb)
+ return prettiyPath(in, pb)
}
// Uglify does the opposite of PrettifyURLPath().