sophie-lewis-hugo/themes/sophie-lewis/layouts/partials/nav.html
2021-08-23 06:58:39 +01:00

19 lines
619 B
HTML

<nav>
<div class="tabs is-fullwidth nav-tabs is-italic is-size-5 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>