added databags

This commit is contained in:
joak 2024-03-08 23:05:37 +00:00
parent 905c46cdbb
commit f7c9ebdd52
3 changed files with 10 additions and 3 deletions

7
databags/translation.ini Normal file
View File

@ -0,0 +1,7 @@
[en]
date = Date
location = Location
[nl]
date = Datum
location = Locatie

View File

@ -9,8 +9,8 @@
{% set img = this.attachments.images.get(this.flyer) %}
{% if img %}<div class="eventflyer"><img class="eventflyer" src="./{{ img|url|replace(".png","")|replace(".jpg","")|replace(".jpeg","")}}-medium.webp" loading="lazy" ></div>{% else %}<div class="filler"></div>{% endif %}
<a class="nav-link boxhead shadow" href={{ this.url }}>{{ this.title }}</a>
<div class="eventmeta"><b>Date: </b>{{ this.start_date|datetimeformat('yyyy/MM/dd H:mm')}} - {{ this.end_date|datetimeformat('yyyy/MM/dd H:mm')}}</div>
<div class="eventmeta"><b>Location: </b><a href="https://www.openstreetmap.org/#map=19/{{this.latlon}}" >{{ this.location}}</a></div>
<div class="eventmeta"><b>{{ bag('translation', this.alt, 'date') }}: </b>{{ this.start_date|datetimeformat('yyyy/MM/dd H:mm')}} - {{ this.end_date|datetimeformat('yyyy/MM/dd H:mm')}}</div>
<div class="eventmeta"><b>{{ bag('translation', this.alt, 'location') }}: </b><a href="https://www.openstreetmap.org/#map=19/{{this.latlon}}" >{{ this.location}}</a></div>
{{ this.content }}
</div>
{% endblock %}

View File

@ -17,7 +17,7 @@
{% 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>
<!--<a href="{{ this. url }}">{{ this.title }}</a>-->
{{ this.body }}
</div>