Try without subdir index
Anirudh Oppiliappan x@icyphox.sh
Sun, 19 Jan 2025 21:58:11 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
commands/build.go
→
commands/build.go
@@ -183,7 +183,7 @@ // Copy the post to the root if it's marked as such.
// ex: build/blog/foo-bar -> build/foo-bar if post.Meta["atroot"] == "true" { os.Mkdir(filepath.Join(types.BuildDir, slug), 0755) - dstFile := filepath.Join(types.BuildDir, slug, "index.html") + dstFile := filepath.Join(types.BuildDir, slug+".html") util.CopyFile(filepath.Join(dstDir, slug, "index.html"), dstFile) } }