diff options
| author | June McEnroe <june@causal.agency> | 2025-12-26 01:00:53 -0500 |
|---|---|---|
| committer | June McEnroe <june@causal.agency> | 2025-12-26 15:04:11 -0500 |
| commit | 7620fe123f30bf6cd92252146653d214e72cdad2 (patch) | |
| tree | 63f4a03a168b82e878abf1f9955202b56bf6f928 | |
| parent | Expand regular expression (diff) | |
| download | src-7620fe123f30bf6cd92252146653d214e72cdad2.tar.gz src-7620fe123f30bf6cd92252146653d214e72cdad2.zip | |
Add ability to specify chemistry
| -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 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 } |