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

16 lines
557 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>
2022-12-23 00:28:38 +00:00
<li{{ if eq $.Page.Params.Title "index" }} class="is-active"{{ end }}><a href="/">Home</a></li>
2021-08-23 05:58:39 +00:00
{{ range $nav_tab := site.Params.navbar }}
2022-12-23 12:59:55 +00:00
{{ $nav_title := replace $nav_tab "-" " " | title }}
{{ if eq $.Page.Params.title $nav_title }}
2021-08-23 05:58:39 +00:00
<li class="is-active"><a href="/{{$nav_tab}}">{{ $nav_title }}</a></li>
2022-12-23 00:28:38 +00:00
{{else}}
2021-08-23 05:58:39 +00:00
<li><a href="/{{$nav_tab}}">{{ $nav_title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
2022-12-22 23:18:44 +00:00
</nav>