pages/layouts/partials/sidebar.html

15 lines
411 B
HTML

{{ $millironx := resources.Get "graphics/millironx.svg" }}
{{ $currentPage := . }}
<aside class="col-12 col-md-3 p-0 bg-dark flex-shrink-1">
<nav>
{{ range .Site.Menus.main }}
<a
class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"
href="{{ .URL }}"
>
{{- partial "fa.html" .Params.icon -}}
{{ .Name }}
</a>
{{ end }}
</nav>
</aside>