From 214f6aa6553ecdfa11d2ec63bb1cef1a49e8538d Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 31 Oct 2021 23:35:35 +0100 Subject: Add simplified concerts syntax --- concerts.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'concerts.sh') diff --git a/concerts.sh b/concerts.sh index 01fc56c..b1ca384 100644 --- a/concerts.sh +++ b/concerts.sh @@ -1,4 +1,15 @@ +add-concerts () +{ + local concerts_src=$(dirname "${input}")/concerts.in + + sed -i \ + -e /'{CONCERTS}'/'r '<(./build-concerts.py "${concerts_src}") \ + -e /'{CONCERTS}'/'c\' \ + $1 +} + title=Concerts stylesheets=concerts transforms=("$(transform-li-current-a concerts)") +postprocess=add-concerts translation=concerts -- cgit v1.2.3