diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index 5345083..c7fb2f2 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -12,22 +12,6 @@ eventbrite: papercall: url: https://www.papercall.io/drupalcamp-bristol-2019 -main_menu: - - title: Tickets - url: '%eventbrite.url%' - pattern: ~ - enabled: '%tickets.available%' - - - title: Submit a session - url: '%papercall.url%' - pattern: ~ - enabled: '%cfp.open%' - - - title: Sponsor us - url: /sponsor-us - pattern: /^\/sponsor-us\/?/ - enabled: true - tickets: available: true url: '%eventbrite.url%' diff --git a/source/_includes/banner.html.twig b/source/_includes/banner.html.twig index 40bb728..0e55089 100644 --- a/source/_includes/banner.html.twig +++ b/source/_includes/banner.html.twig @@ -6,20 +6,6 @@ - + {% include 'nav' %} diff --git a/source/_includes/nav.html.twig b/source/_includes/nav.html.twig new file mode 100644 index 0000000..95be4b8 --- /dev/null +++ b/source/_includes/nav.html.twig @@ -0,0 +1,36 @@ +{% set links = [ + { + title: 'Tickets', + href: site['tickets']['url'], + active: false, + enabled: site['tickets']['available'], + }, + { + title: 'Submit a session', + href: site['cfp']['url'], + active: false, + enabled: site['cfp']['open'], + }, + { + title: 'Sponsor us', + href: '/sponsor-us', + active: page.url == '/sponsor-us', + enabled: true, + } +] %} + +