Move more logic into Twig filter
This commit is contained in:
parent
dca8b1afb4
commit
97050c7f29
4 changed files with 24 additions and 35 deletions
|
@ -14,16 +14,7 @@ talks:
|
|||
---
|
||||
<p>Here are a list of my previous conference and user group talks:</p>
|
||||
|
||||
{% set talks = [] %}
|
||||
{% for talk in data.talks|merge(page.talks) %}
|
||||
{% for event in talk.events %}
|
||||
{% set talks = talks|merge([{
|
||||
event: event|merge(site.events[event.event]),
|
||||
talk: talk,
|
||||
}]) %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% include 'talks-table' with { talks: talks|format_talks } %}
|
||||
{% set data = { talks: data.talks|merge(page.talks), events: site.events } %}
|
||||
{% include "talks-table" with { talks: data|format_talks } %}
|
||||
|
||||
<p>Upcoming talks can be found on the <a href="{{ site.url }}/talks">talks page]</a>.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue