summaryrefslogtreecommitdiff
path: root/article
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-12-07 18:31:51 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-12-07 18:31:51 +0300
commitc06e5865c3772ef0988d0ac10ec2fe221f8cfb4d (patch)
tree7f4abe679806074c38d6f27ce32ae83f8cbfe75c /article
parentda2dae416b9ce10c0925e7ca95027b6ffde14f1e (diff)
downloadvsvs-c06e5865c3772ef0988d0ac10ec2fe221f8cfb4d.tar
vsvs-c06e5865c3772ef0988d0ac10ec2fe221f8cfb4d.tar.xz
vsvs-c06e5865c3772ef0988d0ac10ec2fe221f8cfb4d.zip
.
Diffstat (limited to 'article')
-rw-r--r--article/entry4
1 files changed, 2 insertions, 2 deletions
diff --git a/article/entry b/article/entry
index 8b21831..f47e3ce 100644
--- a/article/entry
+++ b/article/entry
@@ -9,8 +9,8 @@ then
if test -n "$(after / $1)"
then cat $base/data/404.html
else
- export title="$(vsvs-extract 'echo "$value"' "list/${1%%/*}/title")"
- export content="$(vsvs-extract 'echo "$value"' "list/${1%%/*}/content")"
+ export title="$(vsvs-extract 'test "$key" == "title" && echo "$value"' "list/${1%%/*}")"
+ export content="$(vsvs-extract 'test "$key" == "content" && echo "$value"' "list/${1%%/*}")"
vsvs-extract 'echo "$value"' "template/page" | shelter
fi
else cat $base/data/404.html