www/build.sh
2025-04-16 18:36:08 +02:00

13 lines
271 B
Bash
Executable file

#!/bin/sh
set -e
set -x
rm -rf public/ # delete old generated files
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