chore: add more to html head

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2024-01-20 19:03:23 -06:00
parent 6e497c3b7a
commit b039da654c
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 4 additions and 2 deletions

View File

@ -9,6 +9,8 @@ templ base(bc BaseContext) {
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{ bc.Title }</title>
<link rel="icon" href="/_/favicon.svg"/>
<link rel="stylesheet" href="/_/tailwind.css"/>

View File

@ -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("<!doctype html><html><head><title>")
_, 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 {