forked from getpelican/pelican-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
events_list.html
36 lines (28 loc) · 945 Bytes
/
events_list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% extends "base.html" %}
{% block title %} Events list - {{ SITENAME }}{% endblock %}
{% block content %}
{% if events_list %}
<ul class="post-list">
{% for event in events_list %}
<li>
<p>
<a href="{{ SITEURL }}/{{ event.url }}">
<b>{{ event.metadata["title"] }}</b>
</a>
</p>
<p>
{% if event.event_plugin_data["dtstart"].date() == event.event_plugin_data["dtend"].date() %}
From {{ event.event_plugin_data["dtstart"] }} to {{ event.event_plugin_data["dtend"].time() }}
{% else %}
From {{ event.event_plugin_data["dtstart"] }} to {{ event.event_plugin_data["dtend"] }}
{% endif %}
</p>
{% if event.location %}
<p>Location: {{ event.metadata["location"] }}</p>
{% endif %}
<p>{{ event.metadata["summary"] }}</p>
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}