package layouts import ( "git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/components/translate" "git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/pkg/config" "git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/pkg/templer" "strings" ) templ head(cfg config.Cfg, title string) { { title } if cfg.Tracking.RecorderSrc != "" { } for _, h := range templer.GetHeader(ctx) { @templ.Raw(h) } } templ Base(cfg config.Cfg, title string) { @head(cfg, title) @body() { { children... } } } templ Page(cfg config.Cfg, title string) { @head(cfg, title) @body() { { children... } } } templ Component() { for _, h := range templer.GetHeader(ctx) { @templ.Raw(h) } { children... } } templ body() {
schreifuchs.ch
{ children... }
}