diff options
Diffstat (limited to 'web/index.templ')
| -rw-r--r-- | web/index.templ | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/index.templ b/web/index.templ index 01d12b6..4eb1d45 100644 --- a/web/index.templ +++ b/web/index.templ @@ -5,7 +5,7 @@ import ( "github.com/TecharoHQ/anubis/xess" ) -templ base(title string, body templ.Component, ogTags map[string]string) { +templ base(title string, body templ.Component, challenge any, ogTags map[string]string) { <!DOCTYPE html> <html lang="en"> <head> @@ -56,6 +56,9 @@ templ base(title string, body templ.Component, ogTags map[string]string) { } </style> @templ.JSONScript("anubis_version", anubis.Version) + if challenge != nil { + @templ.JSONScript("anubis_challenge", challenge) + } </head> <body id="top"> |
