diff --git a/src/css/header.css b/src/css/header.css index 26263763..0338f453 100644 --- a/src/css/header.css +++ b/src/css/header.css @@ -42,6 +42,9 @@ flex-wrap: wrap; align-items: center; justify-content: space-between; +} + +.navbar-new-top { padding: 0.5rem 0; } @@ -83,6 +86,7 @@ .navbar-new-bottom .nav-item { margin: 0 var(--base-space); + padding: 0.5rem; } .navbar-nav .nav-link { @@ -213,6 +217,10 @@ left: -0.75em; } +.nav-item-selected { + background-color: var(--color-brand-red); +} + @media screen and (min-width: 1024px) { .navbar-start > a.navbar-item:hover, .navbar-start > .navbar-item:hover > .navbar-link { @@ -267,7 +275,7 @@ } @media screen and (max-width: 992px) { - .navbar { + .navbar-new-top { padding: 0.8rem 0; } diff --git a/src/helpers/includes.js b/src/helpers/includes.js index 4020b03b..2a03f7b5 100644 --- a/src/helpers/includes.js +++ b/src/helpers/includes.js @@ -1,3 +1,5 @@ 'use strict' -module.exports = (haystack, needle) => ~(haystack || '').indexOf(needle) +module.exports = (haystack, needle) => { + return ~(haystack || '').indexOf(needle) +} diff --git a/src/helpers/nav-groups.js b/src/helpers/nav-groups.js index 54cc533b..d9628fec 100644 --- a/src/helpers/nav-groups.js +++ b/src/helpers/nav-groups.js @@ -2,7 +2,7 @@ module.exports = ({ data: { - root: { contentCatalog = { resolvePage: () => undefined }, site }, + root: { contentCatalog = { resolvePage: () => undefined }, site, page }, }, }) => { let navGroups = site.keys.navGroups @@ -42,6 +42,8 @@ module.exports = ({ } } navGroups._compiled = true + console.log(navGroups) + console.log(page) return (site.keys.navGroups = navGroups) } diff --git a/src/partials/header-content.hbs b/src/partials/header-content.hbs index 94c7a193..abe2a850 100644 --- a/src/partials/header-content.hbs +++ b/src/partials/header-content.hbs @@ -33,16 +33,17 @@