mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-05 08:42:12 +00:00
Unexport internal path helper
This commit is contained in:
parent
4c04d7101a
commit
5619fe52d3
|
@ -430,10 +430,10 @@ func PathPrep(ugly bool, in string) string {
|
||||||
// /section/name/ becomes /section/name/index.html
|
// /section/name/ becomes /section/name/index.html
|
||||||
// /section/name/index.html becomes /section/name/index.html
|
// /section/name/index.html becomes /section/name/index.html
|
||||||
func PrettifyPath(in string) string {
|
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) == "" {
|
if filepath.Ext(in) == "" {
|
||||||
// /section/name/ -> /section/name/index.html
|
// /section/name/ -> /section/name/index.html
|
||||||
if len(in) < 2 {
|
if len(in) < 2 {
|
||||||
|
|
|
@ -244,7 +244,7 @@ func PrettifyURL(in string) string {
|
||||||
// /section/name/ becomes /section/name/index.html
|
// /section/name/ becomes /section/name/index.html
|
||||||
// /section/name/index.html becomes /section/name/index.html
|
// /section/name/index.html becomes /section/name/index.html
|
||||||
func PrettifyURLPath(in string) string {
|
func PrettifyURLPath(in string) string {
|
||||||
return PrettiyPath(in, pb)
|
return prettiyPath(in, pb)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Uglify does the opposite of PrettifyURLPath().
|
// Uglify does the opposite of PrettifyURLPath().
|
||||||
|
|
Loading…
Reference in a new issue