From b039da654c21994ef23b218c635e0dc17494f3ae Mon Sep 17 00:00:00 2001 From: jolheiser Date: Sat, 20 Jan 2024 19:03:23 -0600 Subject: [PATCH] chore: add more to html head Signed-off-by: jolheiser --- internal/html/base.templ | 2 ++ internal/html/base_templ.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/html/base.templ b/internal/html/base.templ index 5d2e3b9..d20e71d 100644 --- a/internal/html/base.templ +++ b/internal/html/base.templ @@ -9,6 +9,8 @@ templ base(bc BaseContext) { + + { bc.Title } diff --git a/internal/html/base_templ.go b/internal/html/base_templ.go index d5f04c2..31cb400 100644 --- a/internal/html/base_templ.go +++ b/internal/html/base_templ.go @@ -28,14 +28,14 @@ func base(bc BaseContext) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html><html><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(bc.Title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `base.templ`, Line: 11, Col: 20} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `base.templ`, Line: 13, Col: 20} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil {