diff --git a/source/_partials/talks-table.twig b/source/_partials/talks-table.twig index 384d9c87..20e82961 100644 --- a/source/_partials/talks-table.twig +++ b/source/_partials/talks-table.twig @@ -9,7 +9,6 @@
- {% set events = reverse_order ? events|sortbyfield('date')|reverse : events|sortbyfield('date') %} {% for event in events %}You can view more talks in the talks archive.
diff --git a/source/talks/archive.twig b/source/talks/archive.twig new file mode 100644 index 00000000..509a1495 --- /dev/null +++ b/source/talks/archive.twig @@ -0,0 +1,18 @@ +--- +title: Talk Archive +layout: page +use: [talks] +--- +{% set events = [] %} +{% for talk in data.talks %} + {% for event in talk.events if event.date < 'today'|date('Y-m-d') %} + {% set event = event|merge({ talk: talk })|merge(site.events[event.id]) %} + {% set events = events|merge([event]) %} + {% endfor %} +{% endfor %} + +{% include "talks-table" with { + events: events|sortbyfield('date')|reverse, + show_feedback: true, + show_talk: true +} %}