Hauptseite: Zeige Termine der nächsten 20 Tage.

This commit is contained in:
Daniel Molkentin 2019-08-14 00:32:02 +02:00
parent 974d7f3974
commit e3cbe864be
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ build_calendar:
- pip install -r requirements.txt
- python tools/merge_cals.py
- cp static/all.ics public/all.ics
- upcoming="$(python tools/gen_upcoming.py static/all.ics 14 5|tr '\n' ' ')" && sed -i "s#CALENDAR#$upcoming#g" public/index.html
- upcoming="$(python tools/gen_upcoming.py static/all.ics 20 5|tr '\n' ' ')" && sed -i "s#CALENDAR#$upcoming#g" public/index.html
deploy_staging:
image: "alpine:3.8"

View file

@ -2,6 +2,6 @@
hugo $(cat .hugo-params)
tools/merge_cals.py
upcoming="$(tools/gen_upcoming.py static/all.ics 14 5|tr '\n' ' ')"
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