all repos — homestead @ e4e8173ab6124daa84ef012e73c111f111d4a8cf

Code for my website

refactor: make templates take a more specific struct

Alan Pearce
commit

e4e8173ab6124daa84ef012e73c111f111d4a8cf

parent

a9f47f4e4ed3223e86dc1d5c3edd005b8d9ce589

1 file changed, 2 insertions(+), 3 deletions(-)

changed files
M templates/error.templtemplates/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, }) {