From 0a33eae1fc733c25236f4d58f95c8e7db66bd7c0 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 19 Nov 2021 17:33:05 -0600 Subject: [PATCH] Improve errors template --- errors/index.html | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/errors/index.html b/errors/index.html index ec9ee1d..3aa4ca1 100644 --- a/errors/index.html +++ b/errors/index.html @@ -1,27 +1,28 @@ {{ $code := placeholder "http.error.status_code" -}} {{ $text := placeholder "http.error.status_text" -}} +{{ $full_text := printf "%s %s" (placeholder "http.error.status_code") (placeholder "http.error.status_text") -}} {{ $host := placeholder "http.request.host" -}} {{ $img_url := (printf "https://errors.bbaovanc.com/%s.jpg" $code) -}} - {{ $code }} {{ $text }} + {{ $full_text }} - - + + - - + + - - + +
-

{{ $code }} {{ $text }}

+

{{ $full_text }}

cat