diff options
Diffstat (limited to 'entry')
-rw-r--r-- | entry | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,10 +9,10 @@ after () { test -z "${2##*$1*}" && echo -n "${2#*$1}"; } startswith() { case $2 in "$1"*) true;; *) false;; esac; } if test -z "$1" -then cat index.html +then cat data/index.html elif startswith "article/" "$1" then cd article; ./entry "$(after / $1)" elif startswith "admin/" "$1" then cd admin; ./entry "$(after / $1)" -else cat 404.html +else cat data/404.html fi |