diff --git a/source/_layouts/helpers.html.twig b/source/_layouts/helpers.html.twig index a3acd83b..11b93d70 100644 --- a/source/_layouts/helpers.html.twig +++ b/source/_layouts/helpers.html.twig @@ -1,4 +1,12 @@ -{% macro talkEventLocation(eventData, event) %} - {{ eventData.location ? 'in ' ~ eventData.location }} +{% macro talkEventName(event) %} + {% if event.url %} + {{ event.name }} + {% else %} + {{ event.name }} + {% endif %} +{% endmacro %} + +{% macro talkEventLocation(event) %} + {{ event.location ? 'in ' ~ event.location }} {{ event.online ? ' (online)' }} {% endmacro %} diff --git a/source/_partials/talk/events.html.twig b/source/_partials/talk/events.html.twig index 7310d437..caa5ad86 100644 --- a/source/_partials/talk/events.html.twig +++ b/source/_partials/talk/events.html.twig @@ -7,13 +7,7 @@