about summary refs log tree commit diff stats
path: root/examples/simple/simple.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple/simple.go')
-rw-r--r--examples/simple/simple.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple/simple.go b/examples/simple/simple.go
index 529cf18..c872512 100644
--- a/examples/simple/simple.go
+++ b/examples/simple/simple.go
@@ -64,7 +64,7 @@ func navbar(props navbarProps) g.Node {
 	lis := g.Map(len(items), func(i int) g.Node {
 		item := items[i]
 		return h.Li(
-			h.A(item.path, c.Classes(map[string]bool{"is-active": props.path == item.path}), g.Text(item.text)),
+			h.A(h.Href(item.path), c.Classes(map[string]bool{"is-active": props.path == item.path}), g.Text(item.text)),
 		)
 	})
 	return h.Ul(h.Class("nav"), g.Group(lis))