summaryrefslogtreecommitdiff
path: root/source/_posts/custom-404-page.md
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-02-17 19:59:15 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-02-17 19:59:15 +0000
commit498913806182905cc0c14bd12a61f9af26fa16b4 (patch)
tree0c36a6df72900c184e900b274bad14aa5114fc5d /source/_posts/custom-404-page.md
parent12b052b1f480c5a95acd1477e28ce76f84ff7932 (diff)
Switch over to Jigsaw
Diffstat (limited to 'source/_posts/custom-404-page.md')
-rw-r--r--source/_posts/custom-404-page.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/_posts/custom-404-page.md b/source/_posts/custom-404-page.md
new file mode 100644
index 0000000..d091fd0
--- /dev/null
+++ b/source/_posts/custom-404-page.md
@@ -0,0 +1,34 @@
+---
+extends: _layouts.post
+section: content
+title: Custom 404 Pages
+date: 2018-12-23
+description: Add a custom 404 page is easy with Jigsaw
+categories: [configuration, feature]
+---
+
+This starter template includes a custom __404 Not Found__ error page, located at `/source/404.blade.php`. [To preview the 404 page](/404), you can visit `/404` in your browser.
+
+```html
+<!-- source/404.blade.php -->
+
+@extends('_layouts.master')
+
+@section('body')
+ <div class="flex flex-col items-center text-gray-700 mt-32">
+ <h1 class="text-6xl font-light leading-none mb-2">404</h1>
+
+ <h2 class="text-3xl">Page not found.</h2>
+
+ <hr class="block w-full max-w-sm mx-auto border my-8">
+
+ <p class="text-xl">
+ Need to update this page? See the <a title="404 Page Documentation" href="https://jigsaw.tighten.co/docs/custom-404-page/">Jigsaw documentation</a>.
+ </p>
+ </div>
+@endsection
+```
+
+---
+
+Depending on where your site is hosted, you may need to configure your server to use the custom 404 page. For more details, visit the [Jigsaw documentation about configuring a custom 404 page](https://jigsaw.tighten.co/docs/custom-404-page/).