Browse Source

added databags

master
joak 2 months ago
parent
commit
f7c9ebdd52
  1. 7
      databags/translation.ini
  2. 4
      templates/event.html
  3. 2
      templates/page.html

7
databags/translation.ini

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

4
templates/event.html

@ -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 %}

2
templates/page.html

@ -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…
Cancel
Save