www/build.sh
2023-06-13 12:47:07 +02:00

9 lines
212 B
Bash
Executable file

#!/bin/sh
hugo $(cat .hugo-params)
./tools/merge_cals.py
upcoming="$(tools/gen_upcoming.py static/all.ics 20 5 | tr '\n' ' ')"
cp static/all.ics public/all.ics
sed -i "s#CALENDAR#$upcoming#g" public/index.html