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