htmgo/templates/starter/pages/root.go

33 lines
866 B
Go
Raw Normal View History

2024-09-23 15:57:59 +00:00
package pages
2024-09-11 00:52:18 +00:00
import (
2024-09-14 00:05:55 +00:00
"github.com/maddalax/htmgo/framework/h"
2024-09-11 00:52:18 +00:00
)
func RootPage(children ...h.Ren) h.Ren {
2024-09-11 00:52:18 +00:00
return h.Html(
2024-10-10 22:00:20 +00:00
h.HxExtensions(h.BaseExtensions()),
2024-09-11 00:52:18 +00:00
h.Head(
h.Meta("viewport", "width=device-width, initial-scale=1"),
h.Link("/public/favicon.ico", "icon"),
h.Link("/public/apple-touch-icon.png", "apple-touch-icon"),
h.Meta("title", "htmgo template"),
h.Meta("charset", "utf-8"),
h.Meta("author", "htmgo"),
h.Meta("description", "this is a template"),
h.Meta("og:title", "htmgo template"),
h.Meta("og:url", "https://htmgo.dev"),
h.Link("canonical", "https://htmgo.dev"),
h.Meta("og:description", "this is a template"),
2024-09-13 01:42:18 +00:00
h.Link("/public/main.css", "stylesheet"),
2024-09-14 00:05:55 +00:00
h.Script("/public/htmgo.js"),
2024-09-11 00:52:18 +00:00
),
h.Body(
2024-09-11 17:31:40 +00:00
h.Div(
h.Class("flex flex-col gap-2 bg-white h-full"),
2024-09-11 00:52:18 +00:00
h.Fragment(children...),
),
),
)
}