all repos — vite @ 39b8d08cf911e22d238d5b30f18434a346c02733

a fast (this time, actually) and minimal static site generator

Try without subdir index
Anirudh Oppiliappan x@icyphox.sh
Sun, 19 Jan 2025 21:58:11 +0200
commit

39b8d08cf911e22d238d5b30f18434a346c02733

parent

96a6bc1beff5862b46f9a7157dd53b8a64e11fff

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M commands/build.gocommands/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) } }