commit f119dac1fce2af9f0afee23e0d0640c699f504a7 parent 34b52ffcf5ad100e1f1a1fcf935fbcf45d86e830 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 13 Jan 2020 16:31:04 +0100 Put dir name as subheading Diffstat:
M | .local/bin/html_gallery_newest.sh | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.local/bin/html_gallery_newest.sh b/.local/bin/html_gallery_newest.sh @@ -62,8 +62,9 @@ generate_html() { for _dir in "$@"; do _dir="${_dir%/}" _i="$(get_newest_image "$_dir")" - printf " <a href=\"%s.html\"><img src=\"%s/%s\" alt=\"%s\"/>%s</a><br>\n" \ - "$_dir" "$_dir" "$_i" "$_dir" "$_dir" + printf " <h2>%s</h2>\n" "$_dir" + printf " <a href=\"%s.html\"><img src=\"%s/%s\" alt=\"%s\"/></a>\n" \ + "$_dir" "$_dir" "$_i" "$_dir" done generate_html_footer }