1
0
web-semprace/templates/news.html

19 lines
618 B
HTML
Raw 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-21 21:04:25 +01:00
<p>{{ page.date | date(format="%d. %m. %Y")}}</p>
<p>Autor: {{ page.extra["author"] }}</p>
2023-11-19 00:19:59 +01:00
{{ page.content | safe }}
</article>
{% endfor %}
2023-11-21 21:04:25 +01:00
{% endblock news %}