all repos — homestead @ 83369daabc06fafd62316d611baed63fb2900d95

Code for my website

domain/web/templates/error.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package templates

import (
	"strconv"

	g "alin.ovh/gomponents"
	. "alin.ovh/gomponents/html"
	"alin.ovh/homestead/shared/http"
)

func Error(site SiteSettings, err http.Error) g.Node {
	return Layout(site, PageSettings{
		Title: "Error",
	}, Div(
		H1(g.Text(strconv.Itoa(err.StatusCode())+" "+err.Message())),
		H2(g.Text("ʕノ•ᴥ•ʔノ ︵ ┻━┻")),
	))
}