62 lines
4.8 KiB
Go
62 lines
4.8 KiB
Go
// Code generated by templ - DO NOT EDIT.
|
|
|
|
// templ: version: v0.2.793
|
|
package web
|
|
|
|
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
|
|
|
import "github.com/a-h/templ"
|
|
import templruntime "github.com/a-h/templ/runtime"
|
|
|
|
func Base(title string) templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var1 == nil {
|
|
templ_7745c5c3_Var1 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html><html lang=\"de\"><head><title>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
var templ_7745c5c3_Var2 string
|
|
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/web/base.templ`, Line: 7, Col: 19}
|
|
}
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</title><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><meta name=\"description\" content=\"Consulting & Support zu IT-Sicherheit, Linux, Hosting, Entwicklung und mehr\"><meta name=\"keywords\" content=\"linux,it,consulting,security,hosting,development,jmbit,johannes bülow\"><meta name=\"robots\" content=\"noodp\"><link rel=\"stylesheet\" href=\"/themestyles.css\"><link rel=\"stylesheet\" href=\"https://www.jmbit.de/terminal.css\"><link rel=\"shortcut icon\" href=\"https://www.jmbit.de/favicon.png\"><link rel=\"apple-touch-icon\" href=\"https://www.jmbit.de/apple-touch-icon.png\"><meta name=\"twitter:card\" content=\"summary\"><meta property=\"og:locale\" content=\"de\"><meta property=\"og:type\" content=\"website\"><meta property=\"og:title\" content><meta property=\"og:description\" content=\"Consulting & Support zu IT-Sicherheit, Linux, Hosting, Entwicklung und mehr\"><meta property=\"og:url\" content=\"https://www.jmbit.de/\"><meta property=\"og:site_name\" content><meta property=\"og:image\" content=\"https://www.jmbit.de/og-image.png\"><meta property=\"og:image:width\" content=\"1200\"><meta property=\"og:image:height\" content=\"627\"><link href=\"/index.xml\" rel=\"alternate\" type=\"application/rss+xml\" title></head><body><div class=\"container center\"><header class=\"header\"><div class=\"header__inner\"><div class=\"header__logo\"><a href=\"/\"><div class=\"logo\">JMB IT</div></a></div><ul class=\"menu menu--mobile\"><li class=\"menu__trigger\">Menu ▾</li><li><ul class=\"menu__dropdown\"><li><a href=\"/blog/\">Blog</a></li><li><a href=\"/consulting/\">Consulting</a></li><li><a href=\"/expertise.html\">Expertise</a></li><li><a href=\"/tools/\">Tools</a></li><li><a href=\"/about/\">Über mich</a></li></ul></li></ul></div><nav class=\"navigation-menu\"><ul class=\"navigation-menu__inner menu--desktop\"><li><a href=\"/blog/\">Blog</a></li><li><a href=\"/consulting/\">Consulting</a></li><li><a href=\"/expertise.html\">Expertise</a></li><li><a href=\"/tools/\">Tools</a></li><li><a href=\"/about/\">Über mich</a></li></ul></nav></header><div class=\"content\">")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templ_7745c5c3_Var1.Render(ctx, templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div><footer class=\"footer\"><div class=\"footer__inner\"><div class=\"copyright\"><span>© 2024 Johannes Bülow :: Powered by <a href=\"http://gohugo.io\">Hugo</a></span> <span>:: <a href=\"/impressum/index.html\">Impressum</a></span> <span>:: <a href=\"https://github.com/panr/hugo-theme-terminal\" target=\"_blank\">Theme</a> made by <a href=\"https://github.com/panr\" target=\"_blank\">panr</a></span></div></div></footer><script type=\"text/javascript\" src=\"/bundle.min.js\"></script></div></body></html>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
return templ_7745c5c3_Err
|
|
})
|
|
}
|
|
|
|
var _ = templruntime.GeneratedTemplate
|