better aria-current matching

This commit is contained in:
Heydon Pickering 2018-03-24 14:47:44 +00:00
parent 7af7444475
commit a0f8aa23ba
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@
<ul id="patterns-list">
{{ range .Pages.ByWeight }}
<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">
<use xlink:href="#bookmark"></use>
</svg>