mirror of
https://github.com/Damillora/Yuika
synced 2024-11-22 17:27:32 +00:00
Change generic error page to one that doesn't uses theme helpers
This commit is contained in:
parent
cb95c1a663
commit
7360bcf294
13
error-404.hbs
Normal file
13
error-404.hbs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{{!< default}}
|
||||||
|
<div class="h-screen relative">
|
||||||
|
{{> header-background background=@site.cover_image}} {{!--Special header-image.hbs partial to generate the background image--}}
|
||||||
|
<div class="h-full opacity-50 bg-black">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="h-full flex flex-col justify-center items-begin absolute top-0 mx-12">
|
||||||
|
<h1 class="text-white text-6xl">{{statusCode}}</h1>
|
||||||
|
<p class="text-white text-xl">{{message}}</p>
|
||||||
|
<a class="text-white text-base" href="{{@site.url}}">Go to the front page →</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
61
error.hbs
61
error.hbs
@ -1,13 +1,50 @@
|
|||||||
{{!< default}}
|
<!DOCTYPE html>
|
||||||
<div class="h-screen relative">
|
<html>
|
||||||
{{> header-background background=@site.cover_image}} {{!--Special header-image.hbs partial to generate the background image--}}
|
<head>
|
||||||
<div class="h-full opacity-50 bg-black">
|
<meta charset="utf-8" />
|
||||||
</div>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
</div>
|
|
||||||
<div class="h-full flex flex-col justify-center items-begin absolute top-0 mx-12">
|
|
||||||
<h1 class="text-white text-6xl">{{statusCode}}</h1>
|
|
||||||
<p class="text-white text-xl">{{message}}</p>
|
|
||||||
<a class="text-white text-base" href="{{@site.url}}">Go to the front page →</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<title>{{statusCode}} - {{message}}</title>
|
||||||
|
<meta name="HandheldFriendly" content="True" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin />
|
||||||
|
|
||||||
|
<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap" />
|
||||||
|
<link rel="preload" as="style" href="{{asset "built/styles.css"}}" />
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{asset "built/styles.css"}}" />
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="w-full h-full">
|
||||||
|
<div class="h-screen relative">
|
||||||
|
<div class="h-full no-image"></div>
|
||||||
|
<div class="h-full opacity-50 bg-black">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="h-full flex flex-col justify-center items-begin absolute top-0 mx-12">
|
||||||
|
<h1 class="text-white text-6xl">{{statusCode}}</h1>
|
||||||
|
<p class="text-white text-xl">{{message}}</p>
|
||||||
|
<div>
|
||||||
|
{{#if errorDetails}}
|
||||||
|
<ul class="error-stack-list">
|
||||||
|
{{#foreach errorDetails}}
|
||||||
|
<li>
|
||||||
|
<em class="error-stack-function">{{{rule}}}</em>
|
||||||
|
{{#foreach failures}}
|
||||||
|
<p><span class="error-stack-file">Ref: {{ref}}</span></p>
|
||||||
|
<p><span class="error-stack-file">Message: {{message}}</span></p>
|
||||||
|
{{/foreach}}
|
||||||
|
</li>
|
||||||
|
{{/foreach}}
|
||||||
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "yuika",
|
"name": "yuika",
|
||||||
"description": "nanao.moe's blog theme",
|
"description": "nanao.moe's blog theme",
|
||||||
"version": "2.2.2",
|
"version": "2.2.3",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost-api": "v3"
|
"ghost-api": "v3"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user