diff --git a/server/templates/cake.templ b/server/templates/cake.templ index 9a7cc07..f13d6cc 100644 --- a/server/templates/cake.templ +++ b/server/templates/cake.templ @@ -7,7 +7,7 @@ import ( ) templ CakePage(cake models.Cake) { - @Layout(cakeTitle(cake), CakeForm(cake)) + @Layout(cakeTitle(cake), nil, CakeForm(cake)) } templ CakeForm(cake models.Cake) { diff --git a/server/templates/cakes.templ b/server/templates/cakes.templ index 6adfafe..a1091dd 100644 --- a/server/templates/cakes.templ +++ b/server/templates/cakes.templ @@ -7,7 +7,7 @@ import ( ) templ CakesPage(cakes []models.Cake) { - @Layout("Katalog", CakesMain(cakes)) + @Layout("Katalog", nil, CakesMain(cakes)) } templ CakesMain(cakes []models.Cake) { diff --git a/server/templates/confirmation.templ b/server/templates/confirmation.templ index bc5dbcc..d8851b0 100644 --- a/server/templates/confirmation.templ +++ b/server/templates/confirmation.templ @@ -3,7 +3,7 @@ package templates import "strconv" templ Confirmation(title string, id int) { - @Layout(title, ConfirmationBody(id)) + @Layout(title, nil, ConfirmationBody(id)) } templ ConfirmationBody(id int) { diff --git a/server/templates/layout.templ b/server/templates/layout.templ index 03f7ef5..1706b1c 100644 --- a/server/templates/layout.templ +++ b/server/templates/layout.templ @@ -1,15 +1,15 @@ package templates -templ Layout(title string, main templ.Component) { - +templ Layout(title string, header, main templ.Component) { +
- - + +