Fix index page paths

This commit is contained in:
Adnan Maolood 2021-05-12 15:29:13 -04:00
parent 3571ef67c1
commit b250f9e4c5

10
dir.go
View file

@ -136,11 +136,11 @@ func (d *Dir) _read(srcDir, path string, task *Task, cfg *Config) error {
path = "/" + strings.TrimSuffix(path, name)
} else {
path = "/" + strings.TrimSuffix(path, ext)
}
if task.UglyURLs {
path += task.OutputExt
} else {
path += "/"
if task.UglyURLs {
path += task.OutputExt
} else {
path += "/"
}
}
page.Path = path
if permalink, ok := cfg.permalinks[d.Path]; ok {