Limit previous talks on talks page, add talks archive
This commit is contained in:
parent
64bf53cc69
commit
d33e78a2fa
3 changed files with 23 additions and 5 deletions
18
source/talks/archive.twig
Normal file
18
source/talks/archive.twig
Normal file
|
@ -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
|
||||
} %}
|
Loading…
Add table
Add a link
Reference in a new issue