shithub: hugo

Download patch

ref: 5619fe52d3b87f6f5f3a9e1c85107ea91b7a80f3
parent: 4c04d7101add03f85b770b8bf7ee3fd3398cb7c0
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Oct 14 17:34:34 EDT 2015

Unexport internal path helper

--- a/helpers/path.go
+++ b/helpers/path.go
@@ -430,10 +430,10 @@
 //     /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 {
--- a/helpers/url.go
+++ b/helpers/url.go
@@ -244,7 +244,7 @@
 //     /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().