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
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

View File

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

View File

@ -6,13 +6,13 @@
<div class="index-featured"></div>
{% endif %}
{% 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() }};">
{{ fi(e.pic, e.link, e.text, e.credit) }}
{{ fi( c.pic, c.link, c.text, c.credit) }}
<p>
{{ e.text }}<br />
{{ c.text }}<br />
<span class="index-link">
<a href="{{ e.link }}">{{ e.more }}</a>
<a href="{{ c.link }}">{{ c.more }}</a>
</span>
</p>
</div>

View File

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