about summary refs log tree commit diff stats
path: root/templates/error.templ
blob: 2da7bef708ba38dd931106f59b5e30fb479e0f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package templates

import (
	"website/internal/config"
	"website/internal/http"
	"strconv"
)

templ Error(config config.Config, path string, err *http.Error) {
	@Page(config, PageSettings{
		Title: "Error",
		Path:  path,
	}) {
		<h1>{ strconv.Itoa(err.Code) } { err.Message }</h1>
		<h2>ʕノ•ᴥ•ʔノ ︵ ┻━┻</h2>
	}
}