pidgin/nest

Add alt text for plugin logos.

2019-09-05, Elliott Sales de Andrade
cb565a62c98b
Parents 9787050a80cc
Children 5efe0d0bccfb
Add alt text for plugin logos.
--- a/hugo/layouts/shortcodes/plugintable.html Tue Sep 03 23:45:22 2019 -0400
+++ b/hugo/layouts/shortcodes/plugintable.html Thu Sep 05 22:32:12 2019 -0400
@@ -61,7 +61,7 @@
{{ range .Site.Data.plugins }}
<tr data-type="{{ .type }}" {{ if .isTrusted }}isTrusted="true"{{ end }}>
<td>
- {{ if .logo }}<img src="{{ .logo }}" />{{ else }}&nbsp;{{ end }}
+ {{ if .logo }}<img src="{{ .logo }}" alt="{{ .heading | safeHTMLAttr }} logo" />{{ else }}&nbsp;{{ end }}
</td>
<td class="plugin-heading">
@@ -212,4 +212,4 @@
margin: 8px;
display: inline-block;
}
-</style>
\ No newline at end of file
+</style>