From 6e896ae0e108eef385b46c26e770dc191ae936ba Mon Sep 17 00:00:00 2001 From: ewy Date: Thu, 9 Apr 2026 21:01:59 +0200 Subject: add more css --- pages/landing.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pages/landing.go') 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)) +} -- cgit v1.3