This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_includes/nav.html.twig

29 lines
959 B
Twig
Raw Normal View History

2017-10-07 08:47:59 +00:00
<header class="w-100 ph4-ns bg-white bb b--light-gray mb2">
2017-09-04 16:55:53 +00:00
<div class="db dt-ns mw9 center w-100">
2017-10-07 08:47:59 +00: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 16:55:53 +00:00
{{ site.title }}
2017-08-06 18:01:22 +00:00
</a>
</div>
2017-07-11 00:08:32 +00:00
2017-09-10 21:40:01 +00:00
{% set links = [
2017-09-11 17:15:26 +00:00
{ title: 'About', href: '/', pattern: '/\\.' },
2017-09-10 21:40:01 +00:00
{ title: 'Experience', href: '/experience' },
{ title: 'Testimonials', href: '/testimonials' },
{ title: 'Talks', href: '/talks' },
{ title: 'Blog', href: '/blog' },
{ title: 'Contact', href: '/contact' }
] %}
2017-08-06 18:01:22 +00:00
2017-09-10 21:40:01 +00:00
<nav class="db dtc-ns v-mid w-100 tl tr-ns mt2 mt0-ns">
{% for link in links %}
2017-10-08 08:26:41 +00:00
<a
href="{{ link.href }}"
class="nav-item {{ page.url matches '#^' ~ (link.pattern ?: link.href) ~ '/?#' ? 'nav-item--active' }}">
2017-09-10 21:40:01 +00:00
{{- link.title -}}
</a>
{% endfor %}
2017-09-04 16:55:53 +00:00
</nav>
2017-07-25 23:13:04 +00:00
</div>
2017-09-04 16:55:53 +00:00
</header>