1
0

Fix code in readme (#69)

Broken in #66.
This commit is contained in:
Markus Wüstenberg 2021-05-05 09:53:19 +02:00 committed by GitHub
parent 6f3eea403a
commit eb1d1f22b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,12 +58,12 @@ func Page(title, currentPath string) g.Node {
HTML(
Lang("en"),
Head(
TitleEl(title),
TitleEl(g.Text(title)),
StyleEl(Type("text/css"), g.Raw(".is-active{ font-weight: bold }")),
),
Body(
Navbar(currentPath),
H1(title),
H1(g.Text(title)),
P(g.Textf("Welcome to the page at %v.", currentPath)),
),
),
@ -115,7 +115,7 @@ func Page(title, currentPath string) g.Node {
},
Body: []g.Node{
Navbar(currentPath),
H1(title),
H1(g.Text(title)),
P(g.Textf("Welcome to the page at %v.", currentPath)),
},
})