oliverdavies.uk/source/_pages/talks.html.twig
Oliver Davies efbd099515 refactor: Remove the sortable_date for talks
Automatically calculate the sortable date for a talk using the event
dates. This means that the `sortable_date` in the YAML front matter can
be removed.

Fixes #4
2021-09-09 07:32:16 +01:00

24 lines
848 B
Twig

---
title: Talks and workshops
use:
- talks
---
<p>Starting with my first talk in September 2012, I have given {{ get_past_talk_count(data.talks) }} presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.</p>
<div class="mt-10">
<div class="space-y-8">
{% for talk in data.talks|sort((a, b) => get_last_event_date_for_talk(a) < get_last_event_date_for_talk(b)) %}
<article>
<h2>
<a class="text-blue-primary dark:text-blue-400" href="{{ talk.url }}">
{{ talk.title }}
</a>
</h2>
<p class="mt-1">{{ talk.description }}</p>
</article>
{% endfor %}
</div>
</div>