Add embed to error page & use variables
This commit is contained in:
parent
8e4eedc8b3
commit
aaef37882b
@ -1,11 +1,26 @@
|
|||||||
|
{{ $code := placeholder "http.error.status_code" }}
|
||||||
|
{{ $text := placeholder "http.error.status_text" }}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>{{placeholder "http.error.status_code"}} {{placeholder "http.error.status_text"}}</title>
|
<title>{{ $code }} {{ $text }}</title>
|
||||||
|
|
||||||
|
<meta name="title" content="{{ $code }} {{ $text }}" />
|
||||||
|
<meta name="description" content="{{ $code }} {{ $text }}" />
|
||||||
|
|
||||||
|
<meta property="og:title" content="{{ $code }} {{ $text }}" />
|
||||||
|
<meta property="og:description" content="{{ $code }} {{ $text }}" />
|
||||||
|
<meta property="og:image" content="https://boba.best/img/boba_mochi.gif"/>
|
||||||
|
<meta property="og:site_name" content="boba.best" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary"/>
|
||||||
|
<meta name="twitter:image" content="https://boba.best/img/boba_mochi.gif"/>
|
||||||
|
<meta name="twitter:title" content="{{ $code }} {{ $text }}" />
|
||||||
|
<meta name="twitter:description" content="{{ $code }} {{ $text }}" />
|
||||||
</head>
|
</head>
|
||||||
<body bgcolor="black" text="white">
|
<body bgcolor="black" text="white">
|
||||||
<center>
|
<center>
|
||||||
<h1>{{placeholder "http.error.status_code"}} {{placeholder "http.error.status_text"}}</h1>
|
<h1>{{ $code }} {{ $text }}</h1>
|
||||||
<img src='https://errors.boba.best/{{placeholder "http.error.status_code"}}.jpg' alt="cat" />
|
<img src='https://errors.boba.best/{{ $code }}.jpg' alt="cat" />
|
||||||
</center>
|
</center>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user