Add privacy policy and terms of service pages
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user