X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=list.sh;h=6c09a43ad4983c216666384e77445f0b241d802f;hb=73d0e4b9634f96f45a7d86a2b3f78a671e087d3c;hp=e7b856c81346cf3d96488de569dd3d36f768ad53;hpb=24132f70197388d7dc44965d1812c9228acfb642;p=serve0 diff --git a/list.sh b/list.sh index e7b856c..6c09a43 100644 --- a/list.sh +++ b/list.sh @@ -35,8 +35,8 @@ list_item() { "$link" "$link" "${name##/}" \ "$((length / 60))" "$((length % 60))" \ "$width" "$height" \ - "$(printf '%s\n' "${tags#tags=}" \ - | sed -r "$UNSTRING"' s;^;,;; s;,+;,;g; s;,$;;; + "$(UNSTRING "${tags#tags=}" \ + | sed -r 's;^;,;; s;,+;,;g; s;,$;;; :X s;,-?([^,]+)(,|$); [span .tag\n \1]\2;; tX;' )" "$name" "$link" "$link" else @@ -207,13 +207,13 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n' printf ' by %s]' "$ORDER" printf ' [meta name="viewport" content="width=device-width"] + [link rel=stylesheet href="/cgilite/common.css" ] [link rel=stylesheet href="/style.css" ] ] [body [div #navigation [a #t_bookmarks href="#bookmarks" ★]' w_search printf ' - [a #t_avsearch href="#advsearch" Advanced] [a #t_prefs href="#prefs" ⚙] ]' w_bookmarks