refactor: make templates take a more specific struct
1 file changed, 2 insertions(+), 3 deletions(-)
changed files
M templates/error.templ → templates/error.templ
@@ -1,13 +1,12 @@ package templates import ( - "go.alanpearce.eu/homestead/internal/config" "go.alanpearce.eu/homestead/internal/http" "strconv" ) -templ Error(config *config.Config, path string, err *http.Error) { - @Layout(config, PageSettings{ +templ Error(site SiteSettings, path string, err *http.Error) { + @Layout(site, PageSettings{ Title: "Error", Path: path, }) {