{{statusCode}}
+{{message}}
+From b9d85f1f39fa9156bcfcc203bfef2f75d1cc57d6 Mon Sep 17 00:00:00 2001
From: Bastien <57838962+bst1n@users.noreply.github.com>
Date: Sun, 24 May 2026 17:43:40 +0200
Subject: [PATCH 1/5] Add default error.hbs and error-404.hbs templates
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Source currently doesn't ship any error templates, so Ghost falls back
to an unbranded default. This adds two minimal, on-brand error pages
following the same convention as Casper:
- error.hbs (standalone, lightweight): handles all non-404 errors (500,
etc.). No partials or API calls so it stays renderable when something
on the server is degraded.
- error-404.hbs (extends default.hbs): keeps the visitor inside the
theme chrome and suggests 3 recent posts to help them re-engage.
Both templates use only existing translation keys ('Go to the front
page →', 'Recent posts', 'Theme errors'), so no locale changes are
required.
---
error-404.hbs | 42 ++++++++++++++++++++++++++++++++
error.hbs | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 108 insertions(+)
create mode 100644 error-404.hbs
create mode 100644 error.hbs
diff --git a/error-404.hbs b/error-404.hbs
new file mode 100644
index 00000000..d5bc5bf0
--- /dev/null
+++ b/error-404.hbs
@@ -0,0 +1,42 @@
+{{!< default}}
+
+{{!--
+ 404 page. Inherits the default layout so visitors keep the theme's
+ navigation, footer, and overall look while they figure out where to go.
+--}}
+
+ {{message}}{{statusCode}}
+ {{t "Recent posts"}}
+
{{message}}
+{{ref}}: {{message}}
+ {{/foreach}} +{{message}}
+{{t "Page not found"}}