Add privacy policy and terms of service pages

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 15:17:16 -04:00
parent d005080aca
commit 1f0effb902
5 changed files with 90 additions and 1 deletions
+5 -1
View File
@@ -124,7 +124,7 @@ func main() {
// Parse each page with layout + shared partials
pageTmpl = make(map[string]*template.Template)
shared := []string{"templates/layout.html", "templates/slots.html"}
for _, page := range []string{"home", "event", "login", "dashboard", "name"} {
for _, page := range []string{"home", "event", "login", "dashboard", "name", "privacy", "terms"} {
files := append([]string{"templates/" + page + ".html"}, shared...)
pageTmpl[page] = template.Must(
template.New("").Funcs(funcMap).ParseFS(templateFS, files...),
@@ -172,6 +172,10 @@ func main() {
})
}
// Legal
r.Get("/privacy", srv.handlePrivacy)
r.Get("/terms", srv.handleTerms)
// Home / create event
r.Get("/", srv.handleHome)
if features.Auth {