From 20ffb561484b025611200886c2afb29d5f2ef3e2 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 28 May 2017 16:36:31 +0200 Subject: [PATCH] Fix overwriting of navigation in ALPHA mode --- website/_includes/_navigation.jade | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/_includes/_navigation.jade b/website/_includes/_navigation.jade index 320882807..f113ca3f4 100644 --- a/website/_includes/_navigation.jade +++ b/website/_includes/_navigation.jade @@ -9,10 +9,9 @@ nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null) .u-text-label.u-padding-small.u-hidden-xs=SUBSECTION ul.c-nav__menu - if ALPHA - - var NAVIGATION = { "Usage": "/docs/usage", "Reference": "/docs/api" } + - var NAV = ALPHA ? { "Usage": "/docs/usage", "Reference": "/docs/api" } : NAVIGATION - each url, item in NAVIGATION + each url, item in NAV li.c-nav__menu__item(class=(url == "/") ? "u-hidden-xs" : null) +a(url)=item