tangled
alpha
login
or
join now
anirudh.fi
/
vite
5
fork
atom
fast and minimal static site generator
ssg
5
fork
atom
overview
issues
1
pulls
pipelines
Try without subdir index
anirudh.fi
1 year ago
39b8d08c
96a6bc1b
verified
This commit was signed with the committer's
known signature
.
anirudh.fi
SSH Key Fingerprint:
SHA256:FQUiBXeyBQT4WKOm7EKh6hLkHjBh9MdfkV3my0dueGE=
+1
-1
1 changed file
expand all
collapse all
unified
split
commands
build.go
+1
-1
commands/build.go
···
183
183
// ex: build/blog/foo-bar -> build/foo-bar
184
184
if post.Meta["atroot"] == "true" {
185
185
os.Mkdir(filepath.Join(types.BuildDir, slug), 0755)
186
186
-
dstFile := filepath.Join(types.BuildDir, slug, "index.html")
186
186
+
dstFile := filepath.Join(types.BuildDir, slug+".html")
187
187
util.CopyFile(filepath.Join(dstDir, slug, "index.html"), dstFile)
188
188
}
189
189
}