diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md index 5a8a954..31f0101 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ func Navbar(currentPath string) g.Node { } func NavbarLink(href, name, currentPath string) g.Node { - return A(href, c.Classes{"is-active": currentPath == href}, g.Text(name)) + return A(Href(href), c.Classes{"is-active": currentPath == href}, g.Text(name)) } ``` @@ -129,7 +129,7 @@ func Navbar(currentPath string) g.Node { } func NavbarLink(href, name, currentPath string) g.Node { - return A(href, c.Classes{"is-active": currentPath == href}, g.Text(name)) + return A(Href(href), c.Classes{"is-active": currentPath == href}, g.Text(name)) } ``` |