diff --git a/page.go b/page.go index 18d2343..0b50c09 100644 --- a/page.go +++ b/page.go @@ -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 }