ref: 6a3aced15a402183b7c92817a259c44d890cf7be
parent: 5619fe52d3b87f6f5f3a9e1c85107ea91b7a80f3
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Oct 15 06:15:26 EDT 2015
Rename prettiyPath to prettifyPath
--- 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 prettifyPath(in, fpb)
}
-func prettiyPath(in string, b filepathPathBridge) string {
+func prettifyPath(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 prettifyPath(in, pb)
}
// Uglify does the opposite of PrettifyURLPath().