streamlined variable names, added different kinds of includes in page footer

This commit is contained in:
eclipse 2025-03-04 23:08:54 +01:00
parent 0671828062
commit 1a8948704c
4 changed files with 10 additions and 8 deletions

View File

@ -1,7 +1,7 @@
--- ---
title: Impressum title: Impressum
date: 2025-02-20 date: 2025-02-20
last_line: Impressum erzeugt mit <a href="https://www.e-recht24.de/" target="_blank">e-Recht24</a>. footer_line: Impressum erzeugt mit <a href="https://www.e-recht24.de/" target="_blank">e-Recht24</a>.
--- ---
## Ansprechpartner ## Ansprechpartner

View File

@ -2,7 +2,7 @@
title: Index title: Index
date: 2025-02-25 date: 2025-02-25
template: index template: index
elements: index_cards:
- pic: images/kurzprosa/mockup-aw-phantastische-geschichten-2.png - pic: images/kurzprosa/mockup-aw-phantastische-geschichten-2.png
link: werke/ link: werke/
text: Phantastik, Belletristik, Lyrik & mehr text: Phantastik, Belletristik, Lyrik & mehr

View File

@ -6,13 +6,13 @@
<div class="index-featured"></div> <div class="index-featured"></div>
{% endif %} {% endif %}
{% from 'includes/featured_image.html' import fi %} {% from 'includes/featured_image.html' import fi %}
{% for e in p.elements %} {% for c in p.index_cards %}
<div class="index" style="flex-direction: {{ lr.next() }};"> <div class="index" style="flex-direction: {{ lr.next() }};">
{{ fi(e.pic, e.link, e.text, e.credit) }} {{ fi( c.pic, c.link, c.text, c.credit) }}
<p> <p>
{{ e.text }}<br /> {{ c.text }}<br />
<span class="index-link"> <span class="index-link">
<a href="{{ e.link }}">{{ e.more }}</a> <a href="{{ c.link }}">{{ c.more }}</a>
</span> </span>
</p> </p>
</div> </div>

View File

@ -22,7 +22,9 @@
{% endblock content_body %} {% endblock content_body %}
{% block content_footer %} {% block content_footer %}
{% if page.last_line is defined %} {% if page.footer_line is defined %}
<p class="muted">{{ page.last_line }}</p> <p class="muted">{{ page.footer_line }}</p>
{% elif page.footer_include is defined %}
{% include page.footer_include %}
{% endif %} {% endif %}
{% endblock content_footer %} {% endblock content_footer %}