From f13cd0ba640f0d4d4db7e2d18fcc37c94c61fab6 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 25 Sep 2021 15:24:29 -0500 Subject: [PATCH] Remove newlines and show the actual hostname in the embed in error page --- errors/index.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/errors/index.html b/errors/index.html index d62e16b..1faf6b3 100644 --- a/errors/index.html +++ b/errors/index.html @@ -1,6 +1,7 @@ -{{ $code := placeholder "http.error.status_code" }} -{{ $text := placeholder "http.error.status_text" }} -{{ $img_url := (printf "https://errors.boba.best/%s.jpg" $code) }} +{{ $code := placeholder "http.error.status_code" -}} +{{ $text := placeholder "http.error.status_text" -}} +{{ $host := placeholder "http.request.host" -}} +{{ $img_url := (printf "https://errors.boba.best/%s.jpg" $code) -}} {{ $code }} {{ $text }} @@ -11,7 +12,7 @@ - +