diff --git a/source/_includes/nav.html.twig b/source/_includes/nav.html.twig index 4d7557ece..1a359ac77 100644 --- a/source/_includes/nav.html.twig +++ b/source/_includes/nav.html.twig @@ -17,8 +17,12 @@ {% for link in links %} - {% set pattern = '#^' ~ (link.pattern ?: link.href) ~ '/?#' %} - + {% set classes = [ + 'f6 hover-blue link dib pv3', + page.url matches '#^' ~ (link.pattern ?: link.href) ~ '/?#' ? 'black bb b--blue bw1' : 'black-50', + not loop.first ? 'ml3', + ] %} + {{- link.title -}} {% endfor %}