Commit 4e2c81b6 authored by Jamie Tanna's avatar Jamie Tanna

Add support for 404 page

Via Anna's awesome post[0], set up the ability to use a custom 404 page
on Netlify.

And as usual, announce via a blog post.

Closes #448.

[0]: https://annadodson.co.uk/blog/2019/09/07/custom-404/
parent 5d105ac2
Pipeline #80892874 passed with stages
in 8 minutes and 19 seconds
---
title: '404: Page Not Found'
---
I'm really sorry but unfortunately the link you've followed hasn't been found.
If you feel like it should be there, please [raise an issue](https://gitlab.com/jamietanna/jvt.me/new).
You may be able to find what you're looking for by [searching for it](/search/).
---
title: "Adding a 404 page for www.jvt.me on Netlify, with Hugo"
description: "Announcing a swanky new 404 page for www.jvt.me."
tags:
- blogumentation
- www.jvt.me
- hugo
- netlify
license_code: Apache-2.0
license_prose: CC-BY-NC-SA-4.0
date: 2019-09-07T23:23:09+0100
slug: "netlify-404-hugo"
---
[In April](https://gitlab.com/jamietanna/jvt.me/issues/448) I realised that my 404 page wasn't working on Netlify, which meant that when someone hit an invalid link on my site, they'd get a default Netlify error page, rather than anything branded on my site.
Now, I make a large amount of effort to make sure that my site never returns a 404 - I verify that my blog posts always stick around (as I receive a lot of traffic from external sources) as well as performing HTMLProofer checks on the site to verify that anything I've personally linked in the site resolves correctly.
I used <span class="h-card"><a class="u-url" href="https://annadodson.co.uk">Anna</a></span>'s awesome post [Custom 404 page in Hugo on Netlify](https://annadodson.co.uk/blog/2019/09/07/custom-404/) to get this working - plus adding a custom content page [/404/](/404/).
[[redirects]]
from = "/*"
to = "/404/"
status = 404
---
posts:
- https://www.jvt.me/posts/2019/09/07/netlify-404-hugo/
- https://www.jvt.me/posts/2019/09/07/ruby-override-merge-nested-array-hash/
- https://www.jvt.me/posts/2019/09/07/ruby-hash-keys-string-symbol/
- https://www.jvt.me/posts/2019/09/02/newlines-all-git-files/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment