From 55728948b94a17b99fabeb1c61d20c5ef18c7f73 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 24 Sep 2024 09:48:24 -0400 Subject: Allow not having descriptions I'm sorry, I can't keep writing descriptions. It makes posting photos take too long, I often don't know the words for what I'm looking at, and a good description is an entirely different work of art than the photo I took, and I'm just a photographer. It's visual art. --- www/photo.causal.agency/generate.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'www/photo.causal.agency/generate.sh') diff --git a/www/photo.causal.agency/generate.sh b/www/photo.causal.agency/generate.sh index 26279229..be673790 100644 --- a/www/photo.causal.agency/generate.sh +++ b/www/photo.causal.agency/generate.sh @@ -104,14 +104,21 @@ photo_id() { page_photo() { local photo=$1 preview=$2 description=$3 - if ! test -f $description; then - description=/dev/null - fi photo_info $photo cat <<-EOF
+ EOF + if test -f $description; then + cat <<-EOF $(encode $description) + EOF + else + cat <<-EOF + + EOF + fi + cat <<-EOF
EOF @@ -123,11 +130,15 @@ page_photo() { ${PhotographicSensitivity} ISO EOF fi - cat <<-EOF + if test -f $description; then + cat <<-EOF
description $(encode $description)
+ EOF + fi + cat <<-EOF
EOF -- cgit 1.4.1