{{.Board.Name}}
+{{.Board.Description}}
+diff --git a/main.go b/main.go index affde63..6c738f2 100644 --- a/main.go +++ b/main.go @@ -356,9 +356,8 @@ func main() { log.Fatal("Error getting working directory:", err) } - // Parse base and partial templates + // Parse partial templates tmpl := template.Must(template.ParseFiles( - filepath.Join(dir, "templates/base.html"), filepath.Join(dir, "templates/partials/navbar.html"), filepath.Join(dir, "templates/partials/cookie_banner.html"), )) diff --git a/templates/pages/chat.html b/templates/pages/chat.html index d1f5e52..ebbd606 100644 --- a/templates/pages/chat.html +++ b/templates/pages/chat.html @@ -1,60 +1,78 @@ -{{define "chat"}}{{template "base" .}}{{end}} - -{{define "chat-content"}} -
{{.Board.Description}}
-