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

20 lines
592 B
HTML
Raw Normal View History

2021-08-23 05:58:39 +00:00
<nav>
2022-12-22 23:18:44 +00:00
<div class="tabs is-fullwidth nav-tabs is-uppercase">
2021-08-23 05:58:39 +00:00
<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 }}
2022-12-22 23:18:44 +00:00
2021-08-23 05:58:39 +00:00
{{ 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>
2022-12-22 23:18:44 +00:00
</nav>