OOPS! Add back <a> tags to the site menu
This commit is contained in:
parent
2cff513898
commit
24122c7427
1 changed files with 2 additions and 2 deletions
|
@ -8,13 +8,13 @@
|
|||
<nav class="site bulleted">
|
||||
{{ with site.Menus.main }}
|
||||
{{- 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 }}
|
||||
</nav>
|
||||
<nav class="social">
|
||||
{{ with site.Menus.social }}
|
||||
{{- range . -}}
|
||||
{{- range . -}}
|
||||
{{- $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>
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue