all repos — site @ f27e52f97df1680b1cc9cf3e7899b1a0ee0e7127

source for my site, found at icyphox.sh

bin/photos.sh (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
#!/usr/bin/env bash
#
# usage: printf "<bunch of photos>" | ./bin/photos.sh >> pages/photos.md

prefix="$1"
printf '<div class="image-grid">\n'
while IFS=$'\n' read -r line; do
    printf '  <a href="https://cdn.icyphox.sh/film/%s">\n' "$prefix/$line"
    printf '    <img src="https://cdn.icyphox.sh/fit?file=%s&width=1000&height=1000" />\n' "$prefix/$line"
    printf '  </a>\n'
done < /dev/stdin
printf '</div>'