From 8ea9dab6596567a6a4d769afe6f7071a3beb7c9b Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 18 Apr 2025 21:44:56 -0400 Subject: Add the leader page --- www/photo.causal.agency/generate.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'www') diff --git a/www/photo.causal.agency/generate.sh b/www/photo.causal.agency/generate.sh index 97a2947f..be7c238e 100644 --- a/www/photo.causal.agency/generate.sh +++ b/www/photo.causal.agency/generate.sh @@ -36,6 +36,7 @@ encode() { page_title() { case $1 in + (leader) echo 'Film Leader';; (20*) date -j -f '%F' $1 '+%B %e, %Y';; (0*) echo Roll $(dc -e "${1}p");; esac @@ -90,7 +91,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:-}

EOF } @@ -248,6 +249,20 @@ for entry in 20* 0*; do set -- $entry "$@" done +mkdir -p static/leader +page=static/leader/index.html +if [ leader -nt $page ]; then + echo $page >&2 + page_head leader >$page + for photo in leader/*.[Jj][Pp][Gg]; do + preview=$(preview $photo) + if ! test -f static/${photo}; then + ln $photo static/${photo} + fi + page_photo $photo $preview xxx >>$page + done +fi + echo static/index.html >&2 index_head >static/index.html echo static/feed.atom >&2 -- cgit 1.4.1 t type='hidden' name='id' value='4b9824005c1006b95938aecd9056146460e53b45'/>
path: root/bin (unfollow)
Commit message (Collapse)Author
2020-12-31Add ASCII control code names to bitJune McEnroe
2020-12-31Simplify bit lexing and parsingJune McEnroe
Also print the value of each expression separated by commas.
2020-12-31Add ddateJune McEnroe
I'm tired of package managers not having this!
2020-12-30Print octal for 8 bits in bitJune McEnroe
2020-12-30Add unary & to bitJune McEnroe
Also unary + and fix precedence of unary -.
2020-12-30Support unary + in orderJune McEnroe
Missed this because operator(7) just doesn't list it, oddly.
2020-12-30Add postfix $ operator to bitJune McEnroe
2020-12-29Add make lexerJune McEnroe
This is kind of a mess and needs to be cleaned up against more careful reading of the make grammar.
2020-12-29Clean up C lexerJune McEnroe
This ordering of rules feels much cleaner.
2020-12-29Clean up hilex code somewhatJune McEnroe
2020-12-29Match lex/yacc %% %{ %} lines as MacroJune McEnroe
2020-12-29Match top-level C definitions as IdentifierTagJune McEnroe
2020-12-29Match C type declarations as IdentifierTagJune McEnroe
2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe
2020-12-29Reconfigure C macro start conditionsJune McEnroe
2020-12-29Document HTML class namesJune McEnroe
2020-12-29Rename Tag class to IdentifierTagJune McEnroe
2020-12-29Change HTML class from hi to hilexJune McEnroe
You can tell I was just copying the HTML code huh.
2020-12-29Add hilex HTML outputJune McEnroe