mirror of
https://git.sr.ht/~adnano/kiln
synced 2025-01-06 01:05:24 +00:00
Fix index page paths
This commit is contained in:
parent
540181648b
commit
5d3c3b55b8
2
dir.go
2
dir.go
|
@ -136,12 +136,12 @@ 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 {
|
||||||
var b strings.Builder
|
var b strings.Builder
|
||||||
|
|
Loading…
Reference in a new issue