aboutsummaryrefslogtreecommitdiff
path: root/web/index.go
diff options
context:
space:
mode:
authoreerielili <lionel@les-miquelots.net>2025-04-07 21:44:00 +0200
committerGitHub <noreply@github.com>2025-04-07 19:44:00 +0000
commitacce3604a4ccaa13be2ecb148c919f33d4383d5e (patch)
treee6b4d7377afa3dd172f69fd91b809226ca3b62c3 /web/index.go
parent0928c3c8307425834921e786e17181702e845eb6 (diff)
downloadanubis-acce3604a4ccaa13be2ecb148c919f33d4383d5e.tar.xz
anubis-acce3604a4ccaa13be2ecb148c919f33d4383d5e.zip
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>
Diffstat (limited to 'web/index.go')
-rw-r--r--web/index.go4
1 files changed, 2 insertions, 2 deletions
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 {