28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
{% extends "page.html" %}
|
|
|
|
{% block content_body %}
|
|
{% set selector_value = page.card_selector_value if page.card_selector_value is defined else page.title %}
|
|
<section class="cards">
|
|
{% set article_list = [] %}
|
|
{% for article in articles if article[page.card_selector_key] == selector_value %}{% do article_list.append(article) %}{% endfor %}
|
|
{% for article in article_list | sort(attribute="order") %}
|
|
<article class="card">
|
|
<header class="card-header">
|
|
<h3><a href="{{ SITEURL }}/{{ article.save_as }}" title="{{ article.title }}">{{ article.title }}</a></h3>
|
|
</header>
|
|
<div class="card-body">
|
|
{% if article.featured_image %}
|
|
<a href="{{ SITEURL }}/{{ article.save_as }}" title="{{ article.title }}"><img alt='Titelbild zu "{{ article.title }}"' src="{{ SITEURL }}/{{ article.featured_image[0].pic }}" /></a>
|
|
{% endif %}
|
|
{# {% if article.summary %}
|
|
<p>{{ article.summary }}</p>
|
|
{% endif %} #}
|
|
</div>
|
|
</article>
|
|
{% endfor %}
|
|
</section>
|
|
{% endblock content_body %}
|
|
|
|
{% block content_footer %}
|
|
{#{% debug %}#}
|
|
{% endblock content_footer %} |