From 762fe469c48a3cd1e0a114c8698d86ef30945bfa Mon Sep 17 00:00:00 2001 From: adnano Date: Sat, 2 Oct 2021 18:31:22 -0400 Subject: [PATCH] page: Fix output path for index pages --- page.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }