Change presented at list

This commit is contained in:
Oliver Davies 2019-01-19 00:08:20 +00:00
parent 0d5efc492a
commit d7958cc762

View file

@ -1,11 +1,21 @@
{% set talks = getAllTalks([page], site.events) %} {% if page.events %}
{% if talks is not empty %}
<div class="mt-8"> <div class="mt-8">
<h2 class="mb-2">Events</h2> <h2 class="mb-2">Presented at</h2>
{% include "talks/table" with { <ul class="markup">
talks: talks|reverse, {% for event in page.events %}
talk_page: true <li>
} %} {% set eventData = site.events[event.event] %}
{% if eventData.url %}
<a href="{{ eventData.url }}">{{ eventData.name }}</a>
{% else %}
{{ eventData.name }}
{% endif %}
{% if eventData.location %}
in {{ eventData.location }}
{% endif %}
</li>
{% endfor %}
</ul>
</div> </div>
{% endif %} {% endif %}