From: Paul Hänsch Date: Wed, 18 May 2022 20:30:57 +0000 (+0200) Subject: link to attached files X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=a813ef1a99c1fac2ae7aaa5711622e58f4eb16e6;p=shellwiki link to attached files --- diff --git a/macros/attachments b/macros/attachments index aecacfb..bcd6722 100755 --- a/macros/attachments +++ b/macros/attachments @@ -20,9 +20,10 @@ for file in "$_EXEC/pages/$page/#attachments"/* "$_DATA/pages/$page/#attachments stat="$(stat -c '%s %Y' -- "$file" 2>&-)" || continue size="${stat% *}" date="${stat#* }" - printf '
  • %s + printf '
  • %s %s%s
  • ' \ - "$(HTML "${file##*/}")" "$(size_human "$size")" "$(date -d @"$date" +"%F %T")" + "$(HTML "${file##*/}")" "$(HTML "${file##*/}")" \ + "$(size_human "$size")" "$(date -d @"$date" +"%F %T")" done printf %s\\n ''