summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-08-16 21:36:50 -0400
committerJune McEnroe <june@causal.agency>2024-08-16 21:36:50 -0400
commit50a06120e13ba648fca745951170cef59037e35a (patch)
treeedd1d04178497f9e15fee928c08421c264e7637d /www
parentAdd photos from August 2 (diff)
downloadsrc-50a06120e13ba648fca745951170cef59037e35a.tar.gz
src-50a06120e13ba648fca745951170cef59037e35a.zip
Add ability to specify camera body
Diffstat (limited to '')
-rw-r--r--www/photo.causal.agency/generate.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/photo.causal.agency/generate.sh b/www/photo.causal.agency/generate.sh
index fbc3efd6..26279229 100644
--- a/www/photo.causal.agency/generate.sh
+++ b/www/photo.causal.agency/generate.sh
@@ -41,8 +41,11 @@ page_title() {
 page_head() {
 	local date=$1
 	local title=$(page_title $date)
-	local lens film
+	local body lens film
 
+	if test -f $date/body; then
+		body=$(encode $date/body)
+	fi
 	if test -f $date/lens; then
 		lens=$(encode $date/lens)
 	else
@@ -75,7 +78,7 @@ page_head() {
 	details { max-width: 78ch; margin: 0.5em auto; }
 	</style>
 	<h1>${title}</h1>
-	<p>๐Ÿ“ท ${lens}${film:+ ๐ŸŽž๏ธ }${film:-}</p>
+	<p>๐Ÿ“ท ${body:-}${body:+ ยท }${lens}${film:+ ๐ŸŽž๏ธ }${film:-}</p>
 	EOF
 }