From 4430cd5e78258bf44baa7a09ad4a5afdb3328ca5 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Tue, 8 Dec 2020 12:57:20 +0300 Subject: . --- article/entry | 5 ++++- article/template | 15 +++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'article') diff --git a/article/entry b/article/entry index 231da40..9bccfbd 100644 --- a/article/entry +++ b/article/entry @@ -3,7 +3,10 @@ after () { test -z "${2##*$1*}" && echo -n "${2#*$1}"; } if test -z "$1" then # TODO: deep dark magic of constructing a list of articles - echo "Artciles

Artciles

" + cd list + export articles="$(vsvs-archive)" + cd .. + vsvs-extract 'test "$key" == "list" && echo "$value"' "template" | shelter elif test -e "list/${1%%/*}" then if test -n "$(after / $1)" diff --git a/article/template b/article/template index fec42d7..ee49943 100644 --- a/article/template +++ b/article/template @@ -1,12 +1,11 @@ list - page - List of articles - -

Here are some articles for you:

- - - - item
  • $title
  • + + List of articles + +

    Here are some articles for you:

    + + + page $title $content -- cgit v1.2.3