templates/error.go (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | package templates
import (
"strconv"
"go.alanpearce.eu/homestead/internal/http"
g "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)
func Error(site SiteSettings, err *http.Error) g.Node {
return Layout(site, PageSettings{
Title: "Error",
}, Div(
H1(g.Text(strconv.Itoa(err.Code)+" "+err.Message)),
H2(g.Text("ʕノ•ᴥ•ʔノ ︵ ┻━┻")),
))
}
|