| 18 | ) |
| 19 | |
| 20 | func base(title string, body templ.Component, impressum *config.Impressum, challenge any, ogTags map[string]string, localizer *localization.SimpleLocalizer) templ.Component { |
| 21 | return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { |
| 22 | templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context |
| 23 | if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { |
| 24 | return templ_7745c5c3_CtxErr |
| 25 | } |
| 26 | templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) |
| 27 | if !templ_7745c5c3_IsBuffer { |
| 28 | defer func() { |
| 29 | templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) |
| 30 | if templ_7745c5c3_Err == nil { |
| 31 | templ_7745c5c3_Err = templ_7745c5c3_BufErr |
| 32 | } |
| 33 | }() |
| 34 | } |
| 35 | ctx = templ.InitializeContext(ctx) |
| 36 | templ_7745c5c3_Var1 := templ.GetChildren(ctx) |
| 37 | if templ_7745c5c3_Var1 == nil { |
| 38 | templ_7745c5c3_Var1 = templ.NopComponent |
| 39 | } |
| 40 | ctx = templ.ClearChildren(ctx) |
| 41 | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"") |
| 42 | if templ_7745c5c3_Err != nil { |
| 43 | return templ_7745c5c3_Err |
| 44 | } |
| 45 | var templ_7745c5c3_Var2 string |
| 46 | templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(localizer.GetLang()) |
| 47 | if templ_7745c5c3_Err != nil { |
| 48 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 14, Col: 33} |
| 49 | } |
| 50 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) |
| 51 | if templ_7745c5c3_Err != nil { |
| 52 | return templ_7745c5c3_Err |
| 53 | } |
| 54 | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "\"><head><title>") |
| 55 | if templ_7745c5c3_Err != nil { |
| 56 | return templ_7745c5c3_Err |
| 57 | } |
| 58 | var templ_7745c5c3_Var3 string |
| 59 | templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(title) |
| 60 | if templ_7745c5c3_Err != nil { |
| 61 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 16, Col: 17} |
| 62 | } |
| 63 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) |
| 64 | if templ_7745c5c3_Err != nil { |
| 65 | return templ_7745c5c3_Err |
| 66 | } |
| 67 | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "</title><link rel=\"stylesheet\" href=\"") |
| 68 | if templ_7745c5c3_Err != nil { |
| 69 | return templ_7745c5c3_Err |
| 70 | } |
| 71 | var templ_7745c5c3_Var4 templ.SafeURL |
| 72 | templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinURLErrs(anubis.BasePrefix + xess.URL) |
| 73 | if templ_7745c5c3_Err != nil { |
| 74 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 17, Col: 61} |
| 75 | } |
| 76 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) |
| 77 | if templ_7745c5c3_Err != nil { |