From 7620fe123f30bf6cd92252146653d214e72cdad2 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 26 Dec 2025 01:00:53 -0500 Subject: Add ability to specify chemistry --- www/photo.causal.agency/generate.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/photo.causal.agency/generate.sh b/www/photo.causal.agency/generate.sh index 83a3128b..2fbdcb68 100644 --- a/www/photo.causal.agency/generate.sh +++ b/www/photo.causal.agency/generate.sh @@ -45,7 +45,7 @@ page_title() { page_head() { local page=$1 local title=$(page_title $page) - local date body lens film note + local date body lens film chem note if test -f $page/date; then date=$(sed 's/\([0-9]\)-\([0-9]\)/\1โ€“\2/g' $page/date | encode) @@ -76,6 +76,9 @@ page_head() { if test -f $page/film; then film=$(encode $page/film) fi + if test -f $page/chem; then + chem=$(encode $page/chem) + fi if test -f $page/note; then note=$(encode $page/note) fi @@ -94,7 +97,7 @@ page_head() { details { max-width: 78ch; margin: 0.5em auto; }

${title}

-

${date:+๐Ÿ“† }${date:-} ๐Ÿ“ท ${body:-}${body:+ ๐Ÿ”˜ }${lens:-}${film:+ ๐ŸŽž๏ธ }${film:-}

+

${date:+๐Ÿ“† }${date:-} ๐Ÿ“ท ${body:-}${body:+ ๐Ÿ”˜ }${lens:-}${film:+ ๐ŸŽž๏ธ }${film:-}${chem:+ ๐Ÿงช }${chem:-}

${note:+

}${note:-}${note:+

} EOF } -- cgit 1.4.1