summaryrefslogtreecommitdiff
path: root/entry
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-12-07 18:24:01 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-12-07 18:24:01 +0300
commit816d965b42588ffbf8b07e4026c039c8c86dcad9 (patch)
tree45e66758430227a4b2d01214602f30046958254c /entry
parent30cff0f11149ea2a85b025d143aa4a46369c87f0 (diff)
downloadvsvs-816d965b42588ffbf8b07e4026c039c8c86dcad9.tar
vsvs-816d965b42588ffbf8b07e4026c039c8c86dcad9.tar.xz
vsvs-816d965b42588ffbf8b07e4026c039c8c86dcad9.zip
.
Diffstat (limited to 'entry')
-rw-r--r--entry4
1 files changed, 2 insertions, 2 deletions
diff --git a/entry b/entry
index b42d378..d5c02a8 100644
--- a/entry
+++ b/entry
@@ -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