Merge pull request #31643 from sftim/20220206_fix_navbar_span

Fix incorrect markup for navbar
pull/31651/head^2
Kubernetes Prow Robot 2022-02-06 21:11:42 -08:00 committed by GitHub
commit 4ba12fc856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
{{ with site.GetPage "section" . }} {{ with site.GetPage "section" . }}
<li class="nav-item mr-2 mb-lg-0"> <li class="nav-item mr-2 mb-lg-0">
{{ $active := eq .Section $.Section }} {{ $active := eq .Section $.Section }}
<a class="nav-link{{if $active }} active{{end}}" href="{{ .RelPermalink }}" >{{ .Title }}</span></a> <a class="nav-link{{if $active }} active{{end}}" href="{{ .RelPermalink }}" >{{ .Title }}</a>
</li> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}