Browse Source

make icons more accessible

new-gallery
max.mehl 2 years ago
parent
commit
b84d31ae1a
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 6
      themes/hugo-sustain/layouts/shortcodes/links.html

6
themes/hugo-sustain/layouts/shortcodes/links.html

@ -12,9 +12,9 @@
{{- if ne (add $index 1) $len -}}, {{- end -}} <!-- only append comma if not last element (index starts with 0) -->
{{- end -}}
{{- if or (.video) (.audio) (.slides) }},{{ end -}}
{{ with .video }}&nbsp;<a href="{{ . }}" target="_blank" title="Video Recording"><i class="fas fa-video"></i></a>{{ end }}
{{ with .audio }}&nbsp;<a href="{{ . }}" target="_blank" title="Audio Recording"><i class="fas fa-microphone"></i></a>{{ end }}
{{ with .slides }}&nbsp;<a href="{{ . }}" target="_blank" title="Slides"><i class="fas fa-desktop"></i></a>{{ end }}
{{ with .video }}&nbsp;<a href="{{ . }}" target="_blank" aria-label="Video Recording"><i class="fas fa-video" aria-hidden="true" title="Video Recording"></i></a>{{ end }}
{{- with .audio }}&nbsp;<a href="{{ . }}" target="_blank" aria-label="Audio Recording"><i class="fas fa-microphone" aria-hidden="true" title="Audio Recording"></i></a>{{ end }}
{{ with .slides }}&nbsp;<a href="{{ . }}" target="_blank" aria-label="Slides"><i class="fas fa-desktop" aria-hidden="true" title="Slides"></i></a>{{ end -}}
{{- with .date }} ({{.}}){{ end }}
{{ range .tags }}<span class="label label-success">{{ . }}</span>&nbsp;{{ end }}
</li>

Loading…
Cancel
Save