fixed target

This commit is contained in:
aethrvmn 2024-09-25 17:16:47 +02:00
parent ad92d3522b
commit 13c8db759b

View file

@ -31,7 +31,7 @@
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ $name := lower .Name }} {{ $name := lower .Name }}
<li class="pull-left {{ if eq $name $title }}current{{ else if eq $section $name }}current{{ else if eq $title (pluralize $name) }}current{{ end }}"> <li class="pull-left {{ if eq $name $title }}current{{ else if eq $section $name }}current{{ else if eq $title (pluralize $name) }}current{{ end }}">
<a href="{{ .URL }}" target="{{ if gt .Weight 2 }}_blank{{ end }}">~/{{ lower .Name }}</a> <a href="{{ .URL }}" target="{{ if gt .Weight 3 }}_blank{{ end }}">~/{{ lower .Name }}</a>
</li> </li>
{{end}} {{end}}