pages/layouts/partials/sidebar.html

16 lines
411 B
HTML
Raw Normal View History

{{ $millironx := resources.Get "graphics/millironx.svg" }}
2023-03-19 01:53:07 +00:00
{{ $currentPage := . }}
<aside class="col-12 col-md-3 p-0 bg-dark flex-shrink-1">
2024-11-20 16:11:50 +00:00
<nav>
{{ range .Site.Menus.main }}
<a
2024-11-20 16:11:50 +00:00
class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"
href="{{ .URL }}"
>
{{- 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>