personal-website/layouts/partials/body/nav.html
lauralani 85d971d3bd
All checks were successful
ci/woodpecker/push/deploy-netlify Pipeline was successful
add navbar and portfolio
2023-08-30 15:41:50 +02:00

15 lines
No EOL
542 B
HTML

<nav>
<div class="hero-text float-left"><a href="/" class="nav-link special">{{ .Site.Title }}</a></div>
<div class="float-right">
{{ $currentPage := . }}
{{- range site.Menus.main -}}
{{- $menu_item_url := .URL -}}
{{- $page_url:= $currentPage.RelPermalink -}}
{{- if eq $menu_item_url $page_url -}}
<a href="{{ .URL }}" class="disabled" aria-current="page">{{ .Name }}</a>
{{- else -}}
<a href="{{ .URL }}" class="nav-link">{{ .Name }}</a>
{{- end -}}
{{- end }}
</div>
</nav>