Hauptseite: Zeige Termine der nächsten 20 Tage.
This commit is contained in:
parent
974d7f3974
commit
e3cbe864be
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
2
build.sh
2
build.sh
|
@ -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
|
||||
|
|
Reference in a new issue