feature: load edition metadata from directus

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