refactor: add Page suffix to page templates
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M templates/errors.go → templates/errors.go
@@ -5,7 +5,7 @@ g "go.alanpearce.eu/gomponents" . "go.alanpearce.eu/gomponents/html" ) -func NotFound(data PageData) g.Node { +func NotFoundPage(data PageData) g.Node { return Page(data, []g.Node{ Main( H3(g.Text("404 — nothing like that here.")),@@ -13,7 +13,7 @@ ), }) } -func ServerError(data PageData) g.Node { +func ErrorPage(data PageData) g.Node { return Page(data, []g.Node{ Main( H3(g.Text("500 — something broke!")),