diff --git a/scripts/generate-index.sh b/scripts/generate-index.sh index 53e14df..03ee0e2 100755 --- a/scripts/generate-index.sh +++ b/scripts/generate-index.sh @@ -19,6 +19,9 @@ case "$COURSE" in BREADCRUMB_URL="../" EXAM_URL="" EXAM_LABEL="" + KONTAKT_URL="mailto:mail@librete.ch" + KONTAKT_LABEL="Kontakt" + QR_IMG="qr-index.svg" ;; 223015c) TITLE="Grundlagen IT- und Internettechnik" @@ -32,10 +35,13 @@ case "$COURSE" in BREADCRUMB_URL="../" EXAM_URL="" EXAM_LABEL="" + KONTAKT_URL="mailto:mail@librete.ch" + KONTAKT_LABEL="Kontakt" + QR_IMG="qr-index.svg" ;; dhbw) TITLE="Web Engineering" - SUBTITLE="Modul \"Technik I\" · Informatik / Wirtschaftsinformatik" + SUBTITLE="Informatik / Wirtschaftsinformatik" SLIDES_URL="https://librete.ch/dhbw" ACCENT_COLOR="#a02060" ACCENT_LIGHT="#fce4ec" @@ -45,6 +51,9 @@ case "$COURSE" in BREADCRUMB_URL="" EXAM_URL="https://git.librete.ch/DHBW/pruefungsleistung" EXAM_LABEL="Prüfungsleistung" + KONTAKT_URL="mailto:michael.czechowski@lehre.dhbw-stuttgart.de" + KONTAKT_LABEL="Kontakt" + QR_IMG="assets/slides-dhbw.png" ;; *) TITLE="$COURSE - Slides" @@ -58,6 +67,9 @@ case "$COURSE" in BREADCRUMB_URL="" EXAM_URL="" EXAM_LABEL="" + KONTAKT_URL="mailto:mail@librete.ch" + KONTAKT_LABEL="Kontakt" + QR_IMG="qr-index.svg" ;; esac @@ -75,6 +87,14 @@ else EXAM_HTML="" fi +# Footer kursübersicht link only when breadcrumb parent exists +if [[ -n "$BREADCRUMB_URL" ]]; then + FOOTER_KURS_HTML=" · + Kursübersicht" +else + FOOTER_KURS_HTML="" +fi + # Topic mappings for nice German titles declare -A TOPIC_MAP TOPIC_MAP["intro"]="Einführung" @@ -427,12 +447,11 @@ fi cat >> "$BUILD_DIR/index.html" << FOOTER
$SLIDES_URL