From 387c31dcc5c5a59684a59a2868f3a23ade637227 Mon Sep 17 00:00:00 2001 From: maddalax Date: Tue, 24 Sep 2024 13:23:38 -0500 Subject: [PATCH] dont defer --- htmgo-site/pages/base/root.go | 2 +- htmgo-site/partials/navbar.go | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/htmgo-site/pages/base/root.go b/htmgo-site/pages/base/root.go index 53e26d6..a51c4e5 100644 --- a/htmgo-site/pages/base/root.go +++ b/htmgo-site/pages/base/root.go @@ -16,7 +16,7 @@ func RootPage(children ...h.Ren) *h.Element { h.LinkWithVersion("/public/main.css", "stylesheet", Version), h.ScriptWithVersion("/public/htmgo.js", Version), h.Raw(` - + `), h.Style(` html { diff --git a/htmgo-site/partials/navbar.go b/htmgo-site/partials/navbar.go index d3b19fe..dae4e7e 100644 --- a/htmgo-site/partials/navbar.go +++ b/htmgo-site/partials/navbar.go @@ -21,17 +21,21 @@ var navItems = []NavItem{ {Name: "Examples", Url: "/examples"}, } -func Star() *h.RawContent { - return h.Raw(` +func Star() *h.Element { + return h.Div( + h.Id("github-star"), + h.Class("min-w-[100px]"), + h.Raw(` - `) + `), + ) } func NavBar(expanded bool) *h.Element { @@ -49,7 +53,6 @@ func NavBar(expanded bool) *h.Element { h.Div( h.Class("flex items-center"), h.A( - h.Boost(), h.Class("text-2xl"), h.Href("/"), h.Text("htmgo"), @@ -60,7 +63,6 @@ func NavBar(expanded bool) *h.Element { return h.Div( h.Class("flex items-center"), h.A( - h.Boost(), h.Class(""), h.Href(item.Url), h.Text(item.Name),