mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-08-03 17:59:24 -04:00

* Add variable WEBMASTER_EMAIL and if present, display it on error page - Adresses issue https://github.com/TecharoHQ/anubis/issues/115 * web: regenerate templates Signed-off-by: Xe Iaso <me@xeiaso.net> * update docs Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net> Co-authored-by: Xe Iaso <me@xeiaso.net>
26 lines
473 B
Go
26 lines
473 B
Go
package web
|
|
|
|
import (
|
|
"github.com/a-h/templ"
|
|
)
|
|
|
|
func Base(title string, body templ.Component) templ.Component {
|
|
return base(title, body, nil)
|
|
}
|
|
|
|
func BaseWithOGTags(title string, body templ.Component, ogTags map[string]string) templ.Component {
|
|
return base(title, body, ogTags)
|
|
}
|
|
|
|
func Index() templ.Component {
|
|
return index()
|
|
}
|
|
|
|
func ErrorPage(msg string, mail string) templ.Component {
|
|
return errorPage(msg, mail)
|
|
}
|
|
|
|
func Bench() templ.Component {
|
|
return bench()
|
|
}
|