flounder

A simple gemini site builder
git clone git://git.alexwennerberg.com/flounder
Log | Files | Refs | README | LICENSE

commit a43757c46df739c78c6ce63803692f4521e7220c
parent 17a218f58587529ebd4f5365a9d0e890e849baaf
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun,  3 Apr 2022 16:01:24 -0700

fixy fix

Diffstat:
Mgemini.go | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gemini.go b/gemini.go @@ -99,7 +99,10 @@ func gmiPage(_ context.Context, w gmi.ResponseWriter, r *gmi.Request) { fullPath := path.Join(c.FilesDirectory, userName, fileName) // hack if c.Hack && userName == "lists" { - fullPath = "/www/crabmail" + if fileName == "" { // mess + fileName = "/" + } + gmi.ServeFile(w, os.DirFS("/www/crabmail", fileName)) } if fileName == "/gemlog" { // temp hack _, err := os.Stat(path.Join(fullPath, "index.gmi"))