mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Unexport FileAndExt
If needed outside helpers, create an exported file path (FilePathAndExt?) and/or a url version.
This commit is contained in:
@@ -260,7 +260,7 @@ func Uglify(in string) string {
|
||||
return path.Clean(in) + ".html"
|
||||
}
|
||||
|
||||
name, ext := FileAndExt(in, pb)
|
||||
name, ext := fileAndExt(in, pb)
|
||||
if name == "index" {
|
||||
// /section/name/index.html -> /section/name.html
|
||||
d := path.Dir(in)
|
||||
|
Reference in New Issue
Block a user