Set aria-hidden attribute for icons

This commit is contained in:
Keichi Takahashi 2015-07-11 16:26:14 +09:00
parent 03f2fe3df9
commit 2a9970a078
4 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@
{{ if .Truncated }}
<footer>
<ul class="pager">
<li class="next"><a href="{{ .Permalink }}">Read more &raquo;</a></li>
<li class="next"><a href="{{ .Permalink }}">Read more <span aria-hidden="true">&raquo;</span></a></li>
</ul>
</footer>
{{ end }}

View File

@ -38,7 +38,7 @@
{{ with .Site.Params.contact }}
<div class="author-contact col-md-4">
<a href="{{ . }}">
<i class="fa fa-envelope-o"></i>
<i class="fa fa-envelope-o" aria-hidden="true"></i>
&nbsp;Contact me
</a>
</div>

View File

@ -6,7 +6,7 @@
<meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" />
{{ with .Site.Params.themecolor }}
<meta name="theme-color" content="{{ . }}" />
{{ end }}
aria-hidden="true" {{ end }}
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{ with .Params.images }}{{ range first 5 . }}
@ -52,13 +52,13 @@
{{ partial "link.html" . }}
{{ if ne .URL "/" }}
<a href="{{ .Site.BaseURL }}" class="btn-header btn-back hidden-xs">
<i class="fa fa-angle-left"></i>
<i class="fa fa-angle-left" aria-hidden="true"></i>
&nbsp;Home
</a>
{{ end }}
{{ with .RSSLink }}
<a href="{{ . }}" class="btn-header btn-subscribe hidden-xs">
<i class="fa fa-rss"></i>
<i class="fa fa-rss" aria-hidden="true"></i>
&nbsp;Subscribe
</a>
{{ end }}

View File

@ -3,10 +3,10 @@
<hr />
{{ end }}
{{if .HasPrev}}
<a class="newer-posts" href="{{ .Prev.URL }}">&laquo; Newer Posts</a>
<a class="newer-posts" href="{{ .Prev.URL }}"><span aria-hidden="true">&laquo;</span> Newer Posts</a>
{{end}}
<span class="page-number">Page {{ .PageNumber }} of {{.TotalPages}}</span>
{{if .HasNext}}
<a class="older-posts" href="{{ .Next.URL }}">Older Posts &raquo;</a>
<a class="older-posts" href="{{ .Next.URL }}">Older Posts <span aria-hidden="true">&raquo;</span></a>
{{end}}
</nav>