aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-02-24 15:06:01 -0500
committerXe Iaso <me@xeiaso.net>2024-02-24 15:06:01 -0500
commitb541840126b67a8c0fc4fd2aefbba9253ecd1b29 (patch)
treeebe27a2b360897f63a4382382806795cc0553dd1
parent1e2d398efe2e21ddc53a3d94b7357a91b975cfeb (diff)
downloadxesite-b541840126b67a8c0fc4fd2aefbba9253ecd1b29.tar.xz
xesite-b541840126b67a8c0fc4fd2aefbba9253ecd1b29.zip
internal/lume: don't nuke the repo
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--cmd/xesite/main.go4
-rw-r--r--internal/lume/lume.go4
2 files changed, 0 insertions, 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
}