Pass sessions into the schedule partial

This commit is contained in:
Oliver Davies 2019-05-23 01:04:10 +01:00
parent d100b42164
commit 9ed1314762
2 changed files with 6 additions and 1 deletions

View file

@ -3,7 +3,7 @@ layout: default
twitter: twitter:
url: https://twitter.com/drupalcampbris url: https://twitter.com/drupalcampbris
update_text: Early bird tickets are now available! update_text: Early bird tickets are now available!
use: [speakers] use: [sessions, speakers]
--- ---
{% block content %} {% block content %}
<main class="tw-bg-balloon tw-bg-center tw-bg-cover tw-flex tw-flex-col tw-flex-1"> <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 { {% include 'schedule' with {
sessions: data.sessions,
slots: site.schedule.slots, slots: site.schedule.slots,
} %} } %}
{% endblock %} {% endblock %}

View file

@ -0,0 +1,4 @@
services:
App\Schedule\TwigExtension\ScheduleExtension:
tags:
- { name: twig.extension }