mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-12-04 19:08:22 +01:00
Fix index page paths
This commit is contained in:
parent
540181648b
commit
5d3c3b55b8
10
dir.go
10
dir.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user