21 lines
592 B
HTML
21 lines
592 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 }}"
|
|
>
|
|
{{- $fontAwesomePath := print "assets/graphics/fa/" .Params.icon ".svg" -}}
|
|
<span
|
|
class="fa-container
|
|
fa-fw"
|
|
>
|
|
{{- readFile $fontAwesomePath | safeHTML -}}
|
|
</span>
|
|
{{ .Name }}
|
|
</a>
|
|
{{ end }}
|
|
</nav>
|
|
</aside>
|