summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2025-12-26 01:00:53 -0500
committerJune McEnroe <june@causal.agency>2025-12-26 15:04:11 -0500
commit7620fe123f30bf6cd92252146653d214e72cdad2 (patch)
tree63f4a03a168b82e878abf1f9955202b56bf6f928 /www
parentExpand regular expression (diff)
downloadsrc-7620fe123f30bf6cd92252146653d214e72cdad2.tar.gz
src-7620fe123f30bf6cd92252146653d214e72cdad2.zip
Add ability to specify chemistry
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 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; }
 	</style>
 	<h1>${title}</h1>
-	<p>${date:+๐Ÿ“† }${date:-} ๐Ÿ“ท ${body:-}${body:+ ๐Ÿ”˜ }${lens:-}${film:+ ๐ŸŽž๏ธ }${film:-}</p>
+	<p>${date:+๐Ÿ“† }${date:-} ๐Ÿ“ท ${body:-}${body:+ ๐Ÿ”˜ }${lens:-}${film:+ ๐ŸŽž๏ธ }${film:-}${chem:+ ๐Ÿงช }${chem:-}</p>
 	${note:+<p>}${note:-}${note:+</p>}
 	EOF
 }