@BookCover(book, true)
-
diff --git a/views/pages.templ b/views/pages.templ index 20e9da7..6a41724 100644 --- a/views/pages.templ +++ b/views/pages.templ @@ -5,7 +5,7 @@ import ( "github.com/arnef/ebooks/internal/library" ) -templ Layout(title string) { +templ Layout(title string, backHref string) {
@@ -16,7 +16,14 @@ templ Layout(title string) {Titel, Autor und Cover auf einen Blick.
@@ -65,13 +72,12 @@ templ IndexPage(books []library.Book) { } templ BookPage(book library.Book) { - @Layout(book.Title) { + @Layout(book.Title, "/") {