[bugfix] Make screenreaders read out Language of posts properly (#2436)
* [bugfix] Make screenreaders read out Language of posts properly * make published more readable
This commit is contained in:
parent
3f070a442a
commit
bca9b2c896
|
@ -69,7 +69,15 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</section>
|
</section>
|
||||||
<aside class="info">
|
<aside class="info">
|
||||||
<time datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
|
<dl class="sr-only">
|
||||||
|
<dt>Published<dt>
|
||||||
|
<dd>{{- .CreatedAt | timestampPrecise -}}</dd>
|
||||||
|
{{- if .LanguageTag.DisplayStr }}
|
||||||
|
<dt>Language</dt>
|
||||||
|
<dd>{{ .LanguageTag.DisplayStr }}</dd>
|
||||||
|
{{- end }}
|
||||||
|
</dl>
|
||||||
|
<time aria-hidden="true" datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
|
||||||
<div class="stats" role="group">
|
<div class="stats" role="group">
|
||||||
<div class="stats-item">
|
<div class="stats-item">
|
||||||
<span aria-hidden="true"><i class="fa fa-reply-all"></i> {{ .RepliesCount -}}</span>
|
<span aria-hidden="true"><i class="fa fa-reply-all"></i> {{ .RepliesCount -}}</span>
|
||||||
|
@ -90,7 +98,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .LanguageTag.DisplayStr }}
|
{{- if .LanguageTag.DisplayStr }}
|
||||||
<div class="stats-item language" title="Language: {{ .LanguageTag.DisplayStr }}">{{ .LanguageTag.TagStr }}</div>
|
<div aria-hidden="true" class="stats-item language" title="Language: {{ .LanguageTag.DisplayStr }}">{{ .LanguageTag.TagStr }}</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
Loading…
Reference in New Issue