19 lines
618 B
HTML
19 lines
618 B
HTML
{% extends "index.html" %}
|
|
|
|
{% block news %}
|
|
{% for page in section.pages %}
|
|
{% set article_class = "news-card" %}
|
|
{% if page.extra.pinned %}
|
|
{% set article_class = article_class ~ " pinned" %}
|
|
{% endif %}
|
|
|
|
<article class="news-card {{ article_class }}">
|
|
<img src="/svg/pin.svg" alt="pin icon" class="pin-img">
|
|
<h3>{{ page.title }}</h3>
|
|
<p>{{ page.date | date(format="%d. %m. %Y")}}</p>
|
|
<p>Autor: {{ page.extra["author"] }}</p>
|
|
{{ page.content | safe }}
|
|
</article>
|
|
{% endfor %}
|
|
{% endblock news %}
|