summaryrefslogtreecommitdiff
path: root/pages/landing.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-09 21:01:59 +0200
committerewy <ewy0@protonmail.com>2026-04-09 21:01:59 +0200
commit6e896ae0e108eef385b46c26e770dc191ae936ba (patch)
tree3f34ba405833fd08b2b9396ca50d0cb454126b53 /pages/landing.go
parent4b082851542cf8b546e3fbacaf0b27a7db5b80eb (diff)
add more css
Diffstat (limited to 'pages/landing.go')
-rw-r--r--pages/landing.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/pages/landing.go b/pages/landing.go
index d8c4f54..d2c2fc3 100644
--- a/pages/landing.go
+++ b/pages/landing.go
@@ -8,12 +8,15 @@ import (
//go:embed landing.gohtml
var landContent string
-var landTmpl = template.Must(template.New("delayed.link").Parse(landContent))
func Land(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
- err := landTmpl.Execute(w, nil)
+ err := tmpl.ExecuteTemplate(w, "land", nil)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
}
+
+func init() {
+ template.Must(tmpl.New("land").Parse(landContent))
+}