Remove newlines and show the actual hostname in the embed in error page
This commit is contained in:
		| @@ -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) -}} | ||||
| <html> | ||||
|     <head> | ||||
|         <title>{{ $code }} {{ $text }}</title> | ||||
| @@ -11,7 +12,7 @@ | ||||
|         <meta property="og:title" content="{{ $code }} {{ $text }}" /> | ||||
|         <meta property="og:description" content="{{ $code }} {{ $text }}" /> | ||||
|         <meta property="og:image" content="{{ $img_url }}"/> | ||||
|         <meta property="og:site_name" content="boba.best" /> | ||||
|         <meta property="og:site_name" content="{{ $host }}" /> | ||||
|  | ||||
|         <meta name="twitter:card" content="summary"/> | ||||
|         <meta name="twitter:image" content="{{ $img_url }}"/> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user