From b541840126b67a8c0fc4fd2aefbba9253ecd1b29 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 24 Feb 2024 15:06:01 -0500 Subject: internal/lume: don't nuke the repo Signed-off-by: Xe Iaso --- cmd/xesite/main.go | 4 ---- internal/lume/lume.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go index 65ffbf7..c470855 100644 --- a/cmd/xesite/main.go +++ b/cmd/xesite/main.go @@ -91,10 +91,6 @@ func main() { http.Redirect(w, r, "/blog.rss", http.StatusMovedPermanently) }) - // NOTE(Xe): Had to rename this page because of a Lume/Go embed bug. - mux.HandleFunc(`/blog/%F0%9F%A5%BA`, func(w http.ResponseWriter, r *http.Request) { - http.Redirect(w, r, "/blog/xn--ts9h/", http.StatusMovedPermanently) - }) mux.HandleFunc(`/blog/🥺`, func(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "/blog/xn--ts9h/", http.StatusMovedPermanently) }) diff --git a/internal/lume/lume.go b/internal/lume/lume.go index dd12cf1..2118188 100644 --- a/internal/lume/lume.go +++ b/internal/lume/lume.go @@ -81,10 +81,6 @@ func (f *FS) Close() error { cl.Close() } - if f.repo != nil { - os.RemoveAll(f.repoDir) - } - return nil } -- cgit v1.2.3