This repository has been archived on 2023-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
sophie-lewis-hugo/themes/sophie-lewis/layouts/partials/nav.html
2022-12-23 00:18:44 +01:00

20 lines
592 B
HTML

<nav>
<div class="tabs is-fullwidth nav-tabs is-uppercase">
<ul>
{{ range $nav_tab := site.Params.navbar }}
{{ $nav_title := replace $nav_tab "-" " " | title }}
{{ if eq $.Page.Params.title $nav_title }}
<li class="is-active"><a href="/{{$nav_tab}}">{{ $nav_title }}</a></li>
{{ else }}
<li><a href="/{{$nav_tab}}">{{ $nav_title }}</a></li>
{{ end }}
{{ end }}
{{/* <li><a>About</a></li>
<li><a>Writing</a></li>
<li><a>Videos</a></li>
<li><a>Get In Touch</a></li> */}}
</ul>
</div>
</nav>