Browse Source

add aria properties

main
Nicolas Massé 5 years ago
parent
commit
d53bf000bf
  1. 6
      layouts/partials/post-metadata.html
  2. 2
      layouts/partials/toolbar.html

6
layouts/partials/post-metadata.html

@ -10,7 +10,7 @@
{{- range .current.Params.topics -}} {{- range .current.Params.topics -}}
{{- if or (not $.parent.Data.topic) (ne . $.parent.Data.Term) }} {{- if or (not $.parent.Data.topic) (ne . $.parent.Data.Term) }}
<span class="topic"> <span class="topic">
<i class="material-icons">link</i><a href="{{ "/topics/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> <i class="material-icons" aria-hidden="true">link</i><a href="{{ "/topics/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
&nbsp; &nbsp;
</span> </span>
{{- end -}} {{- end -}}
@ -20,7 +20,7 @@
{{- range .current.Params.opensource -}} {{- range .current.Params.opensource -}}
{{- if or (not $.parent.Data.opensource) (ne . $.parent.Data.Term) }} {{- if or (not $.parent.Data.opensource) (ne . $.parent.Data.Term) }}
<span class="opensource"> <span class="opensource">
<i class="material-icons">label</i><a href="{{ "/opensource/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> <i class="material-icons" aria-hidden="true">label</i><a href="{{ "/opensource/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
&nbsp; &nbsp;
</span> </span>
{{- end -}} {{- end -}}
@ -28,7 +28,7 @@
{{- end }} {{- end }}
{{- if eq .current.Type "blog" }} {{- if eq .current.Type "blog" }}
<span class="reading-time"> <span class="reading-time">
<i class="material-icons">schedule</i> <i class="material-icons" aria-hidden="true">schedule</i>
{{- $minutes := .current.ReadingTime -}} {{- $minutes := .current.ReadingTime -}}
{{- if gt $minutes 0 -}} {{- if gt $minutes 0 -}}
{{- i18n "minutes" $minutes -}} {{- i18n "minutes" $minutes -}}

2
layouts/partials/toolbar.html

@ -9,7 +9,7 @@
{{- end }} {{- end }}
<div class="actions"> <div class="actions">
<a href="#top" class="action" title="{{ i18n "back_to_top" }}"> <a href="#top" class="action" title="{{ i18n "back_to_top" }}">
<i class="material-icons">vertical_align_top</i> <i class="material-icons" aria-hidden="true">vertical_align_top</i>
</a> </a>
</div> </div>
</aside> </aside>

Loading…
Cancel
Save