diff --git a/source/talks/archive.md b/source/talks/archive.md new file mode 100644 index 00000000..bdfc1b26 --- /dev/null +++ b/source/talks/archive.md @@ -0,0 +1,23 @@ +--- +layout: page +title: Talk Archive +use: [talks] +--- +Here are a list of my previous conference and user group talks: + +{% set events = [] %} +{% for date in site.events.dates|reverse %} + {% if date.date >= 'today'|date('Y-m-d') %} + {% else %} + {% set events = events|merge([{ + date: date, + event: site.events.events[date.event], + talks: data.talks, + }]) %} + {% endif %} +{% endfor %} +{% include 'talks-table' with { events: events } %} + +Upcoming talks can be found on the [talks page][0]. + +[0]: {{site.url}}/talks diff --git a/source/talks/archive.twig b/source/talks/archive.twig deleted file mode 100644 index 72f58807..00000000 --- a/source/talks/archive.twig +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: Talk Archive -layout: page -use: [talks] ---- -{% set events = [] %} - -{% for date in site.events.dates|reverse if date.date < "today"|date("Y-m-d") %} - {% set events = events|merge([{ - date: date, - event: site.events.events[date.event], - talks: data.talks, - }]) %} -{% endfor %} - -{% include 'talks-table' with { events: events } %}