Custom 404 Pages with Jekyll markdown style
- It’s very easy. Just create a file named
404.htmlon the root directory of your homepage.
- Surely, we need to make it more interesting:
- Here, I use my template “page” layout for it, similar to my homepage.
- You can change
window.history.back(), which could be back to the previous site.
- Below it’s something you want to say~
Hey, see the result here: My 404
Ref2 Yi Zeng also told you a method to create a 404.html page and use redirection in head of html. You can read it. But I recommand my method, it’s easy and could retain you homepage style easily :)