www/build.sh
2025-03-09 18:15:15 +01:00

11 lines
226 B
Bash
Executable file

#!/bin/sh
set -e
set -x
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