page: Fix output path for index pages

This commit is contained in:
adnano 2021-10-02 18:31:22 -04:00
parent 5f16ca42d5
commit 762fe469c4

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
}