From 25fe073f8835c0845429a61aeb60707837d6c038 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 21 May 2019 22:14:04 +0100 Subject: [PATCH] Adjust active nav links --- source/_includes/nav.html.twig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/_includes/nav.html.twig b/source/_includes/nav.html.twig index bbeddb6..67c40c1 100644 --- a/source/_includes/nav.html.twig +++ b/source/_includes/nav.html.twig @@ -1,5 +1,4 @@ {% set links = [ -<<<<<<< HEAD { title: 'Tickets', href: site['tickets']['url'], @@ -15,13 +14,13 @@ { title: 'Speakers', href: '/#speakers', - active: page.layout in ['session', 'speaker'], + active: page.layout == 'speaker', enabled: true, }, { title: 'Schedule', href: '/#schedule', - active: page.url == '/schedule' or page.layout in ['session', 'speaker'], + active: page.url == '/schedule' or page.layout == 'session', enabled: true, }, {