feat: import 48 new recipes from weitere Rezepte with images and dynamic TOC pagination
This commit is contained in:
@@ -614,17 +614,17 @@
|
||||
</div>
|
||||
|
||||
<!-- INHALTSVERZEICHNIS (TOC) -->
|
||||
{% if total_recipes > 0 %}
|
||||
<!-- TOC SEITE 1 (Seite 2 des Buchs) -->
|
||||
<div class="page toc-page" id="page-toc-1">
|
||||
{% if total_recipes > 0 and toc_pages %}
|
||||
{% for toc_page in toc_pages %}
|
||||
<div class="page toc-page" id="page-toc-{{ toc_page.page_index }}">
|
||||
<header class="toc-header">
|
||||
<div class="toc-subhead">Übersicht aller Gerichte</div>
|
||||
<h2 class="toc-title">Inhaltsverzeichnis{% if toc_page_count > 1 %} <span style="font-size: 1.3rem; font-weight: normal; color: var(--gold);">(Teil 1)</span>{% endif %}</h2>
|
||||
<h2 class="toc-title">Inhaltsverzeichnis{% if toc_pages|length > 1 %} <span style="font-size: 1.3rem; font-weight: normal; color: var(--gold);">(Teil {{ toc_page.page_index }})</span>{% endif %}</h2>
|
||||
<div class="toc-divider-ornament">✦ ✦ ✦</div>
|
||||
</header>
|
||||
|
||||
<div class="toc-columns">
|
||||
{% for chap in toc_p1 %}
|
||||
{% for chap in toc_page.chapters %}
|
||||
<div class="toc-chapter-group" data-chapter="{{ chap.number }}">
|
||||
<div class="toc-chapter-header">
|
||||
<span class="toc-chap-icon">{{ chap.icon }}</span>
|
||||
@@ -647,49 +647,11 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<footer class="page-footer page-even">
|
||||
<span class="page-number">2</span>
|
||||
<footer class="page-footer {% if toc_page.book_page % 2 == 0 %}page-even{% else %}page-odd{% endif %}">
|
||||
<span class="page-number">{{ toc_page.book_page }}</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<!-- TOC SEITE 2 (Seite 3 des Buchs, falls > 55 Rezepte) -->
|
||||
{% if toc_page_count > 1 %}
|
||||
<div class="page toc-page" id="page-toc-2">
|
||||
<header class="toc-header">
|
||||
<div class="toc-subhead">Übersicht aller Gerichte</div>
|
||||
<h2 class="toc-title">Inhaltsverzeichnis <span style="font-size: 1.3rem; font-weight: normal; color: var(--gold);">(Teil 2)</span></h2>
|
||||
<div class="toc-divider-ornament">✦ ✦ ✦</div>
|
||||
</header>
|
||||
|
||||
<div class="toc-columns">
|
||||
{% for chap in toc_p2 %}
|
||||
<div class="toc-chapter-group" data-chapter="{{ chap.number }}">
|
||||
<div class="toc-chapter-header">
|
||||
<span class="toc-chap-icon">{{ chap.icon }}</span>
|
||||
<span class="toc-chap-title">Kapitel {{ chap.number }}: {{ chap.title }}</span>
|
||||
<span class="toc-dots"></span>
|
||||
<span class="toc-page-num" data-page-ref="kapitel-{{ chap.number }}">{{ chap.page_number }}</span>
|
||||
</div>
|
||||
<ul class="toc-recipe-list">
|
||||
{% for r in chap.recipes %}
|
||||
<li class="toc-recipe-item" data-recipe-id="{{ r.id }}">
|
||||
<a href="#rezept-{{ r.id }}" class="toc-recipe-link">
|
||||
<span class="toc-rec-title">{{ r.title }}</span>
|
||||
<span class="toc-dots"></span>
|
||||
<span class="toc-page-num" data-page-ref="rezept-{{ r.id }}">{{ r.page_number }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<footer class="page-footer page-odd">
|
||||
<span class="page-number">3</span>
|
||||
</footer>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user