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 a01ef89287
commit 06a57d6a30
Signed by: millironx
GPG key ID: 19A2EF3A3C0C18A9

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 }}