Hauptseite: Zeige Termine der nächsten 20 Tage.
This commit is contained in:
parent
974d7f3974
commit
e3cbe864be
|
@ -38,7 +38,7 @@ build_calendar:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- python tools/merge_cals.py
|
- python tools/merge_cals.py
|
||||||
- cp static/all.ics public/all.ics
|
- 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:
|
deploy_staging:
|
||||||
image: "alpine:3.8"
|
image: "alpine:3.8"
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
hugo $(cat .hugo-params)
|
hugo $(cat .hugo-params)
|
||||||
tools/merge_cals.py
|
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
|
cp static/all.ics public/all.ics
|
||||||
sed -i "s#CALENDAR#$upcoming#g" public/index.html
|
sed -i "s#CALENDAR#$upcoming#g" public/index.html
|
||||||
|
|
Loading…
Reference in a new issue