Pass sessions into the schedule partial
This commit is contained in:
parent
d100b42164
commit
9ed1314762
|
@ -3,7 +3,7 @@ layout: default
|
|||
twitter:
|
||||
url: https://twitter.com/drupalcampbris
|
||||
update_text: Early bird tickets are now available!
|
||||
use: [speakers]
|
||||
use: [sessions, speakers]
|
||||
---
|
||||
{% block content %}
|
||||
<main class="tw-bg-balloon tw-bg-center tw-bg-cover tw-flex tw-flex-col tw-flex-1">
|
||||
|
@ -45,6 +45,7 @@ use: [speakers]
|
|||
} %}
|
||||
|
||||
{% include 'schedule' with {
|
||||
sessions: data.sessions,
|
||||
slots: site.schedule.slots,
|
||||
} %}
|
||||
{% endblock %}
|
||||
|
|
4
src/Schedule/services.yml
Normal file
4
src/Schedule/services.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
services:
|
||||
App\Schedule\TwigExtension\ScheduleExtension:
|
||||
tags:
|
||||
- { name: twig.extension }
|
Loading…
Reference in a new issue