From ec0209f928227f65493c4488af36e204f0fbf44b Mon Sep 17 00:00:00 2001 From: Adnan Maolood 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 }