OOPS! Add back <a> tags to the site menu

This commit is contained in:
Eryn Wells 2022-11-04 08:07:13 -07:00
parent 2cff513898
commit 24122c7427

View file

@ -8,13 +8,13 @@
<nav class="site bulleted"> <nav class="site bulleted">
{{ with site.Menus.main }} {{ with site.Menus.main }}
{{- range . -}} {{- range . -}}
<li{{ if $currentPage.HasMenuCurrent "main" . }} class="active"{{ end }}><span>{{ .Name }}</span></li> <li><a {{ if $currentPage.HasMenuCurrent "main" . }} class="active"{{ end }} href="{{ .URL }}"><span>{{ .Name }}</span></a></li>
{{- end -}} {{- end -}}
{{ end }} {{ end }}
</nav> </nav>
<nav class="social"> <nav class="social">
{{ with site.Menus.social }} {{ with site.Menus.social }}
{{- range . -}} {{- range . -}}
{{- $targetBlank := .Params.targetBlank | default true -}} {{- $targetBlank := .Params.targetBlank | default true -}}
<li><a style="--url: var(--{{ .Identifier }}-icon)" href="{{ .URL }}" {{ if $targetBlank }}target="_blank"{{ end }} aria-label="{{ .Name }}"><span>{{ .Params.shortName | default .Name }}</span></a></li> <li><a style="--url: var(--{{ .Identifier }}-icon)" href="{{ .URL }}" {{ if $targetBlank }}target="_blank"{{ end }} aria-label="{{ .Name }}"><span>{{ .Params.shortName | default .Name }}</span></a></li>
{{- end -}} {{- end -}}