From acce3604a4ccaa13be2ecb148c919f33d4383d5e Mon Sep 17 00:00:00 2001 From: eerielili Date: Mon, 7 Apr 2025 21:44:00 +0200 Subject: 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 * update docs Signed-off-by: Xe Iaso --------- Signed-off-by: Xe Iaso Co-authored-by: Xe Iaso --- web/index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/index.go') diff --git a/web/index.go b/web/index.go index 0dc8b7f..5d2957b 100644 --- a/web/index.go +++ b/web/index.go @@ -16,8 +16,8 @@ func Index() templ.Component { return index() } -func ErrorPage(msg string) templ.Component { - return errorPage(msg) +func ErrorPage(msg string, mail string) templ.Component { + return errorPage(msg, mail) } func Bench() templ.Component { -- cgit v1.2.3