all repos — homestead @ 4034ac2a849b499364d82b902896ca899d946c3a

Code for my website

templates/error.templ (view raw)

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

import (
	"go.alanpearce.eu/homestead/internal/http"
	"strconv"
)

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