website/layouts/partials/nav.html
Vri 33fb7cb34c
[wip] website redesign
I have to work on splitting commits in the future. ^^
2022-11-29 15:20:52 +01:00

28 lines
836 B
HTML

{{ $currentPage := . }}
<nav id="sidebar">
<header>
<p id="name">Vri 🌈</p>
<p id="information">
<span>@vrifox</span>
</p>
</header>
<section id="sidebar-menu">
<ul>
{{- range .Site.Menus.main }}
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
<li class="active"><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ else }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{- end }}
</ul>
</section>
{{- if .Site.IsMultiLingual }}
<aside>
{{- range .Site.Languages }}
<a href="{{/* where .Page.TranslationKey .Lang */}}{{/* .Permalink */}}Test{{/* end */}}">{{ .LanguageName }}</a>
{{- end }}
</aside>
{{- end }}
</nav>