feat: Allow menu items to declare custom URLs

This commit is contained in:
Thomas A. Christensen II 2024-12-05 11:05:13 -06:00
parent ad13520480
commit d9715e0da9
Signed by: millironx
GPG key ID: B7044A3432851F64

View file

@ -3,9 +3,10 @@
<aside>
<nav>
{{ range .Site.Menus.main }}
{{ $link := default .URL (index .Params "link") }}
<a
class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"
href="{{ .URL }}"
href="{{ $link }}"
>
{{- partial "fa.html" .Params.icon -}}
{{ .Name }}