Compare commits

..

No commits in common. "9333574de256a953bdec8f8eb107a220878aef1f" and "2ae702adc231a2549a4e61376e24005a4c44d1b8" have entirely different histories.

3 changed files with 15 additions and 24 deletions

2
.gitignore vendored
View file

@ -2,5 +2,3 @@
tmp
indir
indir-*
.zed
index.html

View file

@ -172,13 +172,6 @@ func main() {
return
}
// serve index.html if present (case-sensitive)
indexPath := filepath.Join(fpath, "index.html")
if _, err := os.Stat(indexPath); err == nil {
http.ServeFile(w, r, indexPath)
return
}
// embeded readme
var readmeHTML template.HTML
entries, err := os.ReadDir(fpath)