mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
58ac033b97
closes #11932 - as per the issue, there is no need to output a <link> tag if the favicon is the default /favicon.ico, as all browsers automatically check for this - instead the favicon <link> is only output if a custom favicon has been set, telling the browser to look somewhere different to its default location - some of the tests expected 3 links in the html head, but through the favicon change there are often only 2. Co-authored-by: RenCloud <rencloud@pop-os.localdomain>
59 lines
2.3 KiB
Handlebars
59 lines
2.3 KiB
Handlebars
<!doctype html>
|
|
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
|
|
<!--[if (gte IE 9)| IEMobile |!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
|
|
<title>{{statusCode}} — {{message}}</title>
|
|
|
|
<meta name="HandheldFriendly" content="True">
|
|
<meta name="MobileOptimized" content="320">
|
|
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
|
|
<meta http-equiv="cleartype" content="on">
|
|
|
|
<link rel="stylesheet" href="{{asset "public/ghost.css" hasMinFile="true"}}"/>
|
|
|
|
</head>
|
|
<body>
|
|
<main role="main" id="main">
|
|
<div class="gh-app">
|
|
<div class="gh-viewport">
|
|
<div class="gh-view">
|
|
<section class="error-content error-404 js-error-container">
|
|
<section class="error-details">
|
|
<section class="error-message">
|
|
<h1 class="error-code">{{statusCode}}</h1>
|
|
<h2 class="error-description">{{message}}</h2>
|
|
<a class="error-link" href="{{@site.url}}">Go to the front page →</a>
|
|
</section>
|
|
</section>
|
|
</section>
|
|
|
|
{{#if errorDetails}}
|
|
<section class="error-stack">
|
|
<h3>Theme errors</h3>
|
|
|
|
<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>
|
|
</section>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|