better aria-current matching

This commit is contained in:
Heydon Pickering 2018-03-24 14:47:44 +00:00
parent 7af7444475
commit a0f8aa23ba

View File

@ -81,7 +81,7 @@
<ul id="patterns-list"> <ul id="patterns-list">
{{ range .Pages.ByWeight }} {{ range .Pages.ByWeight }}
<li class="pattern"> <li class="pattern">
<a href="{{ .RelPermalink }}" {{ if eq $current.Title .Title }}aria-current="page"{{ end }}> <a href="{{ .RelPermalink }}" {{ if eq $current.Permalink .Permalink }}aria-current="page"{{ end }}>
<svg class="bookmark-icon" aria-hidden="true" focusable="false" viewBox="0 0 40 50"> <svg class="bookmark-icon" aria-hidden="true" focusable="false" viewBox="0 0 40 50">
<use xlink:href="#bookmark"></use> <use xlink:href="#bookmark"></use>
</svg> </svg>