summaryrefslogtreecommitdiff
path: root/pages/landing.go
diff options
context:
space:
mode:
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))
+}