1
0
web-semprace/templates/news.html

18 lines
598 B
HTML
Raw Permalink Normal View History

2023-11-21 11:35:59 +01:00
{% extends "index.html" %}
2023-11-21 21:04:25 +01:00
2023-11-19 00:19:59 +01:00
{% block news %}
{% for page in section.pages %}
2023-11-21 21:04:25 +01:00
{% 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">
2023-11-19 00:19:59 +01:00
<h3>{{ page.title }}</h3>
2023-11-30 14:02:52 +01:00
<p class="date">{{ page.date | date(format="%d. %m. %Y")}}</p>
<p class="text">{{ page.content | safe }}</p>
2023-11-19 00:19:59 +01:00
</article>
{% endfor %}
2023-11-21 21:04:25 +01:00
{% endblock news %}