Adjust active nav links

This commit is contained in:
Oliver Davies 2019-05-21 22:14:04 +01:00
parent 809961237f
commit 25fe073f88

View file

@ -1,5 +1,4 @@
{% set links = [ {% set links = [
<<<<<<< HEAD
{ {
title: 'Tickets', title: 'Tickets',
href: site['tickets']['url'], href: site['tickets']['url'],
@ -15,13 +14,13 @@
{ {
title: 'Speakers', title: 'Speakers',
href: '/#speakers', href: '/#speakers',
active: page.layout in ['session', 'speaker'], active: page.layout == 'speaker',
enabled: true, enabled: true,
}, },
{ {
title: 'Schedule', title: 'Schedule',
href: '/#schedule', href: '/#schedule',
active: page.url == '/schedule' or page.layout in ['session', 'speaker'], active: page.url == '/schedule' or page.layout == 'session',
enabled: true, enabled: true,
}, },
{ {