all repos — homestead @ 20dd619b8605660dac67fa435d711e5f22da3174

Code for my website

ensure reasonable ordering of declarations in source

Alan Pearce
commit

20dd619b8605660dac67fa435d711e5f22da3174

parent

6f41d182abaf1af16fd0cc697abf0f2e9ce54c5c

1 file changed, 7 insertions(+), 7 deletions(-)

changed files
M domain/web/templates/layout.godomain/web/templates/layout.go
@@ -28,6 +28,13 @@ BodyAttrs Attrs
HeadExtra []g.Node } +var LiveReload = Script(Defer(), g.Raw(` + new EventSource("/_/reload").onmessage = event => { + console.log("got message", event) + window.location.reload() + }; +`)) + func ExtendAttrs(base Attrs, attrs Attrs) g.Node { m := base for key, value := range attrs {
@@ -99,13 +106,6 @@ ),
), ))) } - -var LiveReload = Script(Defer(), g.Raw(` - new EventSource("/_/reload").onmessage = event => { - console.log("got message", event) - window.location.reload() - }; -`)) func MenuLink(item config.MenuItem) g.Node { return A(