diff --git a/internal/handler/views/layout.templ b/internal/handler/views/layout.templ index 0441799..58062c3 100644 --- a/internal/handler/views/layout.templ +++ b/internal/handler/views/layout.templ @@ -42,7 +42,7 @@ templ base(m Meta) { - @navbar() + @navbar(m.Identifier)
{ children... }
diff --git a/internal/handler/views/layout_templ.go b/internal/handler/views/layout_templ.go index fcd4ec4..c3e083e 100644 --- a/internal/handler/views/layout_templ.go +++ b/internal/handler/views/layout_templ.go @@ -193,7 +193,7 @@ func base(m Meta) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = navbar().Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = navbar(m.Identifier).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/handler/views/partial_navbar.templ b/internal/handler/views/partial_navbar.templ index 5d971d4..f460c8e 100644 --- a/internal/handler/views/partial_navbar.templ +++ b/internal/handler/views/partial_navbar.templ @@ -1,6 +1,6 @@ package views -templ navbar() { +templ navbar(pageIdentifier string) {