From eb1d1f22b4a8b59d12e05b813eafcfa629a90df7 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Wed, 5 May 2021 09:53:19 +0200 Subject: Fix code in readme (#69) Broken in #66.--- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d0f51e8..58f8b1d 100644 --- a/README.md +++ b/README.md @@ -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)), }, }) -- cgit 1.4.1