This commit is contained in:
Oliver Davies 2017-10-07 09:00:03 +01:00
parent ef511f86c6
commit 7fd4e08083
6 changed files with 380 additions and 19 deletions

View file

@ -18,7 +18,7 @@
<nav class="db dtc-ns v-mid w-100 tl tr-ns mt2 mt0-ns">
{% for link in links %}
{% set pattern = '#^' ~ (link.pattern ?: link.href) ~ '/?#' %}
<a href="{{ link.href }}" class="f6 hover-blue link ml2 ml-m ml4-l dib {{ page.url matches pattern ? 'black' : 'black-70' }}">
<a href="{{ link.href }}" class="nav-item {{ page.url matches pattern ? 'nav-item--active' }}">
{{- link.title -}}
</a>
{% endfor %}