summaryrefslogtreecommitdiff
path: root/concerts.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-10-31 23:35:35 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2022-02-07 00:34:51 +0100
commit214f6aa6553ecdfa11d2ec63bb1cef1a49e8538d (patch)
tree1d81f5b56ac8c3b52a0839b3a87f87280309e7e3 /concerts.sh
parent7dbc6d60c4f8da78c2ed8f9e6dde694b5a9d0d3e (diff)
downloadquatuorbellefeuille.com-214f6aa6553ecdfa11d2ec63bb1cef1a49e8538d.tar.xz
Add simplified concerts syntax
Diffstat (limited to 'concerts.sh')
-rw-r--r--concerts.sh11
1 files changed, 11 insertions, 0 deletions
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