1
0
web-semprace/templates/news.html
2023-11-30 14:02:52 +01:00

18 lines
598 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 class="date">{{ page.date | date(format="%d. %m. %Y")}}</p>
<p class="text">{{ page.content | safe }}</p>
</article>
{% endfor %}
{% endblock news %}