From e3f3bc1cf2c9833073baf90b03f236cf05cde8c9 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 23 Aug 2018 17:50:54 -0500 Subject: [PATCH] Adds 404 page. --- 404.md | 12 ++++++++++++ index.njk | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 404.md diff --git a/404.md b/404.md new file mode 100644 index 0000000..a5465e4 --- /dev/null +++ b/404.md @@ -0,0 +1,12 @@ +--- +layout: layouts/home.njk +permalink: 404.html +--- +# Content not found. + +{% comment %} +This will work for both GitHub pages and Netlify: + +* https://help.github.com/articles/creating-a-custom-404-page-for-your-github-pages-site/ +* https://www.netlify.com/docs/redirects/#custom-404 +{% endcomment %} diff --git a/index.njk b/index.njk index 70159be..9a30ce5 100644 --- a/index.njk +++ b/index.njk @@ -4,7 +4,5 @@ tags: - nav navtitle: Home --- - {% set postslist = collections.posts %} {% include "postslist.njk" %} -