streamlined variable names, added different kinds of includes in page footer
This commit is contained in:
parent
0671828062
commit
1a8948704c
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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 %}
|
||||
Loading…
Reference in New Issue
Block a user