diff options
author | Markus Wüstenberg | 2021-05-05 09:53:19 +0200 |
---|---|---|
committer | GitHub | 2021-05-05 09:53:19 +0200 |
commit | eb1d1f22b4a8b59d12e05b813eafcfa629a90df7 (patch) | |
tree | 0868babef86ad0a8c4c9d380d1f5c065f1209237 /README.md | |
parent | 6f3eea403af34faa3e87d617c73fb916b6a5f3c9 (diff) | |
download | gomponents-eb1d1f22b4a8b59d12e05b813eafcfa629a90df7.tar.lz gomponents-eb1d1f22b4a8b59d12e05b813eafcfa629a90df7.tar.zst gomponents-eb1d1f22b4a8b59d12e05b813eafcfa629a90df7.zip |
Fix code in readme (#69)
Broken in #66.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
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)), }, }) |