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 }} {{ if .Truncated }}
<footer> <footer>
<ul class="pager"> <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> </ul>
</footer> </footer>
{{ end }} {{ end }}

View File

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

View File

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

View File

@ -3,10 +3,10 @@
<hr /> <hr />
{{ end }} {{ end }}
{{if .HasPrev}} {{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}} {{end}}
<span class="page-number">Page {{ .PageNumber }} of {{.TotalPages}}</span> <span class="page-number">Page {{ .PageNumber }} of {{.TotalPages}}</span>
{{if .HasNext}} {{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}} {{end}}
</nav> </nav>