oliverdavies.uk/source/_includes/nav.html.twig

18 lines
604 B
Twig
Raw Normal View History

2017-10-07 09:47:59 +01:00
<header class="w-100 ph4-ns bg-white bb b--light-gray mb2">
2017-09-04 17:55:53 +01:00
<div class="db dt-ns mw9 center w-100">
2017-10-07 09:47:59 +01:00
<div class="db dtc-ns v-mid tl w-30">
<a href="/" class="dib f5 mt0 link black-70" title="Home">
2017-09-04 17:55:53 +01:00
{{ site.title }}
2017-08-06 19:01:22 +01:00
</a>
</div>
2017-07-11 01:08:32 +01:00
2017-09-10 22:40:01 +01:00
<nav class="db dtc-ns v-mid w-100 tl tr-ns mt2 mt0-ns">
2017-10-08 10:00:25 +01:00
{% for link in site.nav_links %}
2017-10-08 09:55:13 +01:00
<a href="{{ link.href }}" class="nav-item {{ page.url matches '#^' ~ (link.pattern ?: link.href) ~ '/?#' ? 'nav-item--active' }}">
2017-09-10 22:40:01 +01:00
{{- link.title -}}
</a>
{% endfor %}
2017-09-04 17:55:53 +01:00
</nav>
2017-07-26 00:13:04 +01:00
</div>
2017-09-04 17:55:53 +01:00
</header>