mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Rename prettiyPath to prettifyPath
This commit is contained in:
@@ -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 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 {
|
||||
|
@@ -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 prettifyPath(in, pb)
|
||||
}
|
||||
|
||||
// Uglify does the opposite of PrettifyURLPath().
|
||||
|
Reference in New Issue
Block a user