summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-06-10 17:13:08 -0400
committerJune McEnroe <june@causal.agency>2024-06-10 17:13:08 -0400
commitda2851683028837f8ae687a0d0ba941c3288c133 (patch)
treeaa16ea079a0088b20db4551571a97f11fdd7a7c0
parentResize using target pixel counts for consistency (diff)
downloadsrc-da2851683028837f8ae687a0d0ba941c3288c133.tar.gz
src-da2851683028837f8ae687a0d0ba941c3288c133.zip
Cope with not having an EXIF info
Diffstat (limited to '')
-rw-r--r--www/photo.causal.agency/generate.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/photo.causal.agency/generate.sh b/www/photo.causal.agency/generate.sh
index d602d089..558b8a54 100644
--- a/www/photo.causal.agency/generate.sh
+++ b/www/photo.causal.agency/generate.sh
@@ -111,10 +111,16 @@ page_photo() {
 			<img src="../${preview}" alt="$(encode $description)">
 		</a>
 		<figcaption>
+	EOF
+	if test -n "${ExposureTime}"; then
+		cat <<-EOF
 			${ExposureTime} ·
 			ƒ/$(bc -S 1 -e ${FNumber}) ·
 			$(bc -e ${FocalLength}) mm ·
 			${PhotographicSensitivity} ISO
+		EOF
+	fi
+	cat <<-EOF
 			<details>
 				<summary>description</summary>
 				$(encode $description)