2022-11-28 18:32:29 +01:00
|
|
|
{{ $currentPage := . }}
|
|
|
|
|
|
|
|
<nav id="sidebar">
|
2021-03-05 19:35:05 +01:00
|
|
|
<header>
|
2022-11-28 18:32:29 +01:00
|
|
|
<p id="name">Vri 🌈</p>
|
|
|
|
<p id="information">
|
|
|
|
<span>@vrifox</span>
|
|
|
|
</p>
|
2021-03-02 11:02:13 +01:00
|
|
|
</header>
|
2022-11-28 18:32:29 +01:00
|
|
|
<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 .IsTranslated */}}
|
|
|
|
<aside>
|
|
|
|
{{- range .Translations }}
|
|
|
|
<a href="{{ .Permalink }}">{{ .Site.Params.languageName }}</a>
|
|
|
|
{{- end }}
|
|
|
|
</aside>
|
|
|
|
{{/*- end */}}
|
|
|
|
</nav>
|