anubis/web/index.go
eerielili acce3604a4
Add variable WEBMASTER_EMAIL and if present, display it on error page (#235)
* 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>
2025-04-07 19:44:00 +00:00

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()
}