Use markdown for talks archive

This commit is contained in:
Oliver Davies 2017-07-10 01:51:27 +01:00
parent a63358b8e5
commit 8f6a998c0b
2 changed files with 23 additions and 16 deletions

23
source/talks/archive.md Normal file
View file

@ -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

View file

@ -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 } %}