From c5b42f424376017d8bc00ce29b3cf292c4e483a0 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Fri, 15 Apr 2016 17:23:31 -0700 Subject: [PATCH] fix 404 --- bin/compile.sh | 10 +++++++++- public/404.md | 2 +- public/missing.md | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) mode change 100644 => 120000 public/404.md create mode 100644 public/missing.md diff --git a/bin/compile.sh b/bin/compile.sh index c38cf84..f76cce6 100755 --- a/bin/compile.sh +++ b/bin/compile.sh @@ -54,7 +54,15 @@ function compile_rss() { function munge_html() { for FILE in "$TARGET"/*.html "$TARGET"/posts/*/*/*.html "$TARGET"/posts/drafts/*.html "$TARGET"/projects/*.html; do - [[ "${FILE##*/}" = "index.html" ]] && continue + FILENAME="${FILE##*/}" + case "$FILENAME" in + index.html) + continue + ;; + missing.html) + continue + ;; + esac # make posts available without an .html extension FILE_DIR="${FILE%.html}" diff --git a/public/404.md b/public/404.md deleted file mode 100644 index 7c57d9e..0000000 --- a/public/404.md +++ /dev/null @@ -1 +0,0 @@ -

four oh four

diff --git a/public/404.md b/public/404.md new file mode 120000 index 0000000..45159c0 --- /dev/null +++ b/public/404.md @@ -0,0 +1 @@ +missing.md \ No newline at end of file diff --git a/public/missing.md b/public/missing.md new file mode 100644 index 0000000..7c57d9e --- /dev/null +++ b/public/missing.md @@ -0,0 +1 @@ +

four oh four