extratonal.org/templates/page.html
2023-11-26 23:34:10 +01:00

25 lines
882 B
HTML

{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{% if this.path == "/" %}
<div class="all">
{% set it = site.query('/agenda') %}
{% for child in it %}
{% set img = child.attachments.images.get(child.flyer) %}
<a href="{{ child|url }}" ><img alt="Flyer of the event {{child.title|replace('"','')}}" src="./{{img|url|replace(".png","")|replace(".jpg","")|replace(".jpeg","")}}-small.webp"></a>
{% endfor %}
</div>
{% else %}
<div class="left no-scroll">
{% set img = this.attachments.images.get(this.image) %}
{% if img %}<img alt="unimportant image" src="./{{ img|url|replace(".png","")|replace(".jpg","")|replace(".jpeg","")}}-medium.webp">{% endif %}
</div>
<div class="right space-top">
<a href="{{ this. url }}">{{ this.title }}</a>
{{ this.body }}
</div>
{% endif %}
{% endblock %}