rename layout with #, otherwise the initial output.css doesn't include it for some reason

This commit is contained in:
0ceanSlim 2024-05-23 07:28:03 -04:00
parent a3d91e7304
commit d7cb0d06f4
3 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ func ExampleHandler(w http.ResponseWriter, r *http.Request) {
Title: "Example Page",
}
tmpl, err := template.ParseFiles("web/views/.layout.html", "web/views/example.html")
tmpl, err := template.ParseFiles("web/views/#layout.html", "web/views/example.html")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return

View File

@ -14,7 +14,7 @@ func RootHandler(w http.ResponseWriter, r *http.Request) {
Title: "Home Page",
}
tmpl, err := template.ParseFiles("web/views/.layout.html", "web/views/index.html")
tmpl, err := template.ParseFiles("web/views/#layout.html", "web/views/index.html")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return