Merge remote-tracking branch 'origin/main' into LPM-56

This commit is contained in:
Robin Olsen
2026-02-16 22:12:00 +01:00
49 changed files with 1403 additions and 702 deletions

View File

@@ -27,9 +27,20 @@ type LayoutProps struct {
Footer FooterProps
}
templ Head(props HeadProps) {
for _, link := range props.Links {
<link href={ link.Href } rel={ link.Rel } as={ link.As }/>
}
for _, script := range props.Scripts {
<script src={ script.Src } defer={ script.Defer }></script>
}
}
type HeadProps struct {
Links []Link
Scripts []Script
Links []Link
Scripts []Script
}
type Link struct {
@@ -40,6 +51,8 @@ type Link struct {
type Script struct {
Src string
Defer bool
Src string
Defer bool
}
templ Head(props HeadProps) {
@@ -128,15 +141,20 @@ type HeaderProps struct {
CreateHref string
SearchPlaceholder string
Routes []NavRoute
Routes []NavRoute
}
type NavRoute struct {
Name string
Path string
Name string
Path string
}
templ Footer(props FooterProps) {
templ Footer(props FooterProps) {
}
type FooterProps struct {
}