mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
page: Fix output path for index pages
This commit is contained in:
parent
5f16ca42d5
commit
762fe469c4
2
page.go
2
page.go
|
@ -242,7 +242,7 @@ func (p *Page) write(dstDir string, task *Task) error {
|
||||||
}
|
}
|
||||||
// Write index page
|
// Write index page
|
||||||
if p.index {
|
if p.index {
|
||||||
dstPath := pathpkg.Join(dirPath, p.Permalink, "index"+task.OutputExt)
|
dstPath := pathpkg.Join(dstDir, p.Permalink, "index"+task.OutputExt)
|
||||||
if err := p.writeTo(dstPath, task); err != nil {
|
if err := p.writeTo(dstPath, task); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue