add klausur to build and overview

This commit is contained in:
2026-01-25 21:47:22 +01:00
parent a8343c9937
commit 3fa1e1b1dc
2 changed files with 20 additions and 2 deletions

View File

@@ -246,6 +246,24 @@ for html in $(ls "$BUILD_DIR"/[0-9][0-9]-*.html 2>/dev/null | sort); do
LINK
done
# Add klausur entry if it exists
if [[ -f "$BUILD_DIR/klausur.html" ]]; then
pdf_link=""
if [[ -f "$BUILD_DIR/klausur.pdf" ]]; then
pdf_link="<a href=\"klausur.pdf\" class=\"btn btn-pdf\">PDF</a>"
fi
cat >> "$BUILD_DIR/index.html" << KLAUSUR
<div class="kapitel-card" style="border-left: 3px solid $ACCENT_COLOR;">
<a href="klausur.html" class="kapitel-link">
<div class="kapitel-label">Prüfung</div>
<div class="kapitel-title">Klausurrelevante Folien</div>
</a>
<a href="klausur.html" class="btn btn-slides">Folien</a>
$pdf_link
</div>
KLAUSUR
fi
cat >> "$BUILD_DIR/index.html" << FOOTER
</div>
<div class="qr-section">