feature: add course index

This commit is contained in:
Prof. Dr. Matthias Jung DL9MJ
2025-06-24 22:04:12 +02:00
committed by Tim Grelka
parent 643f7e8c24
commit 44a1b737c9
4 changed files with 37 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
<h1>{{ titel }}</h1>
<p>{{ abstract }}</p>
<div class="chapter-toc d-grid gap-2">
{% for chapter in book %}
<a class="btn btn-outline-primary btn-labeled" href="{{ chapter["ident"] }}.html">
<span class="btn-label">{{loop.index}}</span>{{ chapter["title"]}}
</a>
{% endfor %}
</div>