From f7685d76c4c2e61899e87072881446dff69a380f Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Sun, 17 Jan 2016 20:42:56 -0300 Subject: [PATCH] Provide a working 404 by using markdown In order for the 404 to be picked up by jekyll/github pages, it has to be in a 404.html file on the root. However, if the file is named exactly '404.html', it won't be processed by jekyll. Rather, you have to provide a 404.md file, and specify its permalink to be 404.html, which fixes the issue. Working version at http://www.cazzulino.com/wrong-url.html. --- 404.html | 10 ---------- 404.md | 8 ++++++++ 2 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 404.html create mode 100644 404.md diff --git a/404.html b/404.html deleted file mode 100644 index 9703ba819b7..00000000000 --- a/404.html +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -title: "404: Page not found" -permalink: 404.html ---- - -
-

404: Page not found

-

Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.

-
diff --git a/404.md b/404.md new file mode 100644 index 00000000000..d27f5915b48 --- /dev/null +++ b/404.md @@ -0,0 +1,8 @@ +--- +layout: default +title: "404: Page not found" +permalink: 404.html +--- + +# 404: Page not found +Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. [Head back home]({{ site.url }}) to try finding it again. \ No newline at end of file