extratonal.org website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
1017 B

{% 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) %}
{% if img is none %}{% set img = "" %}{% endif %}
<a href="{{ child|url }}" ><span>{{ child.start_date|datetimeformat('yyyy/MM/dd')}} - {{child.title}}</span><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 %}