diff options
author | June McEnroe <june@causal.agency> | 2024-08-16 21:36:50 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2024-08-16 21:36:50 -0400 |
commit | 50a06120e13ba648fca745951170cef59037e35a (patch) | |
tree | edd1d04178497f9e15fee928c08421c264e7637d /www | |
parent | Add photos from August 2 (diff) | |
download | src-50a06120e13ba648fca745951170cef59037e35a.tar.gz src-50a06120e13ba648fca745951170cef59037e35a.zip |
Add ability to specify camera body
Diffstat (limited to 'www')
-rw-r--r-- | www/photo.causal.agency/generate.sh | 7 |
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 } |