diff --git a/main.go b/main.go index 8fb8b2d..193dd22 100644 --- a/main.go +++ b/main.go @@ -37,14 +37,7 @@ func main() { pages, err := template.New("").Funcs(template.FuncMap{ "hasPrefix": strings.HasPrefix, - }).ParseFiles( - "templates/home.html", - "templates/header.html", - "templates/upload.html", - "templates/tos.html", - "templates/privacy.html", - "templates/faq.html", - ) + }).ParseGlob("templates/*.html") if err != nil { log.Fatal(err) }