list_item() {
local name path length width height tags comment n
name="$(HTML "$1")"
- path="$(HTML "$ITEM/$1")"
+ path="$(URL "${ITEM}/${1}")"
if [ -d "$_DATA/$ITEM/$1" ]; then
printf '[a .list .dir href="%s?%s" %s]' \
"$_EXEC/cgilite/html-sh.sed" <<-EOF
[!DOCTYPE HTML]
[html [head [title Listing]
+ [meta name="viewport" content="width=device-width"]
[link rel=stylesheet href="/style.css" ]
] [body
[div #navigation
[a #t_prefs href="#prefs" ⚙]
]
$(w_prefs)
+ $(w_advsearch)
[form method=POST action="?a=multitag"
$(list_items \