added databags
This commit is contained in:
parent
905c46cdbb
commit
f7c9ebdd52
7
databags/translation.ini
Normal file
7
databags/translation.ini
Normal file
@ -0,0 +1,7 @@
|
||||
[en]
|
||||
date = Date
|
||||
location = Location
|
||||
|
||||
[nl]
|
||||
date = Datum
|
||||
location = Locatie
|
@ -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 %}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user