sophie-lewis-hugo/themes/sophie-lewis/layouts/partials/nav.html
2022-12-23 01:28:38 +01:00

20 lines
687 B
HTML

<nav>
<div class="tabs is-fullwidth nav-tabs is-uppercase">
<ul>
<li{{ if eq $.Page.Params.Title "index" }} class="is-active"{{ end }}><a href="/">Home</a></li>
{{ 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>