diff --git a/pages/frontpage.go b/pages/frontpage.go index 325f600..66fcbb4 100644 --- a/pages/frontpage.go +++ b/pages/frontpage.go @@ -10,5 +10,8 @@ func FrontpageHandler(c *fiber.Ctx) error { c.Set("Cache-Control", "public,max-age=31557600") c.Set("Content-Security-Policy", "default-src 'none'; style-src 'self'; img-src 'self'; font-src 'self'; block-all-mixed-content") - return c.Render("frontpage", fiber.Map{}) + return c.Render("frontpage", fiber.Map{ + "proto": c.Protocol(), + "domain": c.Hostname(), + }) } \ No newline at end of file diff --git a/views/frontpage.hbs b/views/frontpage.hbs index 480f006..d7bd354 100644 --- a/views/frontpage.hbs +++ b/views/frontpage.hbs @@ -47,7 +47,7 @@
^https?://(i|).?imgur.com(/.*)?$
https://[INSTANCE DOMAIN]$2
https://{{domain}}$2