fix(webui): render correct page at / (dashboard), use base template execution; footer centering, navbar layout via CSS

This commit is contained in:
Thomas Cravey 2025-08-17 13:12:29 -05:00
parent 0e0d0ea824
commit b993482b85
2 changed files with 2 additions and 2 deletions

View file

@ -43,5 +43,5 @@ func (s *Server) render(w http.ResponseWriter, name string, data map[string]any)
data["Title"] = strings.Title(base) data["Title"] = strings.Title(base)
} }
w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Header().Set("Content-Type", "text/html; charset=utf-8")
_ = tpl.ExecuteTemplate(w, name, data) _ = tpl.ExecuteTemplate(w, base, data)
} }

View file

@ -19,7 +19,7 @@
</ul> </ul>
</nav> </nav>
</header> </header>
{{ block "content" . }}{{ end }} {{ template .Content . }}
<footer><small>{{ .Version }} ({{ .Commit }})</small></footer> <footer><small>{{ .Version }} ({{ .Commit }})</small></footer>
</body> </body>
</html> </html>