1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-06-03 07:26:04 +02:00

page: Fix output path for index pages

This commit is contained in:
Adnan Maolood 2021-10-02 18:31:22 -04:00
parent 9ffb7c0b72
commit ec0209f928

View File

@ -242,7 +242,7 @@ func (p *Page) write(dstDir string, task *Task) error {
}
// Write index page
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 {
return err
}