From b993482b852eccd6684f14ea1d7dd3b2df150c7c Mon Sep 17 00:00:00 2001 From: Thomas Cravey Date: Sun, 17 Aug 2025 13:12:29 -0500 Subject: [PATCH] fix(webui): render correct page at / (dashboard), use base template execution; footer centering, navbar layout via CSS --- internal/httpapi/templates.go | 2 +- internal/httpapi/templates/layout.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/httpapi/templates.go b/internal/httpapi/templates.go index 8f3fbe8..c28f46e 100644 --- a/internal/httpapi/templates.go +++ b/internal/httpapi/templates.go @@ -43,5 +43,5 @@ func (s *Server) render(w http.ResponseWriter, name string, data map[string]any) data["Title"] = strings.Title(base) } w.Header().Set("Content-Type", "text/html; charset=utf-8") - _ = tpl.ExecuteTemplate(w, name, data) + _ = tpl.ExecuteTemplate(w, base, data) } diff --git a/internal/httpapi/templates/layout.tmpl b/internal/httpapi/templates/layout.tmpl index d9a8b39..ce2f8bd 100644 --- a/internal/httpapi/templates/layout.tmpl +++ b/internal/httpapi/templates/layout.tmpl @@ -19,7 +19,7 @@ - {{ block "content" . }}{{ end }} + {{ template .Content . }}