pages/layouts/partials/sidebar.html

17 lines
419 B
HTML
Raw Normal View History

{{ $millironx := resources.Get "graphics/millironx.svg" }}
2023-03-19 01:53:07 +00:00
{{ $currentPage := . }}
<aside>
2024-11-20 16:11:50 +00:00
<nav>
{{ range .Site.Menus.main }}
{{ $link := default .URL (index .Params "link") }}
<a
2024-11-20 16:11:50 +00:00
class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"
href="{{ $link }}"
>
{{- partial "fa.html" .Params.icon -}}
2024-11-20 16:11:50 +00:00
{{ .Name }}
</a>
2024-11-20 16:11:50 +00:00
{{ end }}
</nav>
</aside>