Fix index page paths

This commit is contained in:
adnano 2021-05-12 15:29:13 -04:00
parent 540181648b
commit 5d3c3b55b8

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) path = "/" + strings.TrimSuffix(path, name)
} else { } else {
path = "/" + strings.TrimSuffix(path, ext) path = "/" + strings.TrimSuffix(path, ext)
} if task.UglyURLs {
if task.UglyURLs { path += task.OutputExt
path += task.OutputExt } else {
} else { path += "/"
path += "/" }
} }
page.Path = path page.Path = path
if permalink, ok := cfg.permalinks[d.Path]; ok { if permalink, ok := cfg.permalinks[d.Path]; ok {