pages/layouts/partials/sidebar.html

15 lines
361 B
HTML

{{ $millironx := resources.Get "graphics/millironx.svg" }}
{{ $currentPage := . }}
<aside>
<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>