qry=$(HTML "$QUERY_STRING")
if [ -d "$_DATA/$ITEM/$1" ]; then
printf '[a .list .dir href="%s" %s]' "${path}?${qry}" "$name"
qry=$(HTML "$QUERY_STRING")
if [ -d "$_DATA/$ITEM/$1" ]; then
printf '[a .list .dir href="%s" %s]' "${path}?${qry}" "$name"
read -r length width height tags comment n <<-EOF
$(meta_info "$_DATA/$ITEM/$1")
EOF
printf '[div .list .file
[a href="%s" [img src="%s?a=thumbnail"][label %s]]
[span .time %i:%imin] [span .dim %ix%i] %s
read -r length width height tags comment n <<-EOF
$(meta_info "$_DATA/$ITEM/$1")
EOF
printf '[div .list .file
[a href="%s" [img src="%s?a=thumbnail"][label %s]]
[span .time %i:%imin] [span .dim %ix%i] %s
"$((length / 60))" "$((length % 60))" \
"$width" "$height" \
"$(UNSTRING "${tags#tags=}" |tr , '\0' |xargs -r0 printf ' [span .tag %s]')" \
"$path" "$path" "$path"
"$((length / 60))" "$((length % 60))" \
"$width" "$height" \
"$(UNSTRING "${tags#tags=}" |tr , '\0' |xargs -r0 printf ' [span .tag %s]')" \
"$path" "$path" "$path"
- file="$(printf '%s' "$_DATA/$ITEM/$base/${fn%${CR}}".*)"
- file="${file##*/}"
- [ -e "$_DATA/$ITEM/$base/${file}" ] \
- && printf '%s\n' "${base}/${file}"
- done
+ printf '%s\n' "${base}/${fn%${CR}}"
+ done | tee .index/debug
- list_filemeta . \
- | xargs -rd'\n' stat -c '%Y %n' \
- | sort -rn |cut -d/ -f2-
+ list_filemeta . |list_dateorder
+ elif [ "$mode" = index -a "$ORDER" = Date ]; then
+ list_index |list_dateorder
printf '[div .pagination'
for n in $( seq 1 $((c / LISTSIZE + 1)) ); do
printf '[a .page href="%s" %s]' \
printf '[div .pagination'
for n in $( seq 1 $((c / LISTSIZE + 1)) ); do
printf '[a .page href="%s" %s]' \