From 50a06120e13ba648fca745951170cef59037e35a Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 16 Aug 2024 21:36:50 -0400 Subject: Add ability to specify camera body --- www/photo.causal.agency/generate.sh | 7 +++++-- 1 file 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; }

${title}

-

๐Ÿ“ท ${lens}${film:+ ๐ŸŽž๏ธ }${film:-}

+

๐Ÿ“ท ${body:-}${body:+ ยท }${lens}${film:+ ๐ŸŽž๏ธ }${film:-}

EOF } -- cgit 1.4.1