grim/pidgin-nest
Clone
Summary
Browse
Changes
Graph
Add alt text for plugin logos.
2019-09-05, Elliott Sales de Andrade
cb565a62c98b
Parents
9787050a80cc
Children
5efe0d0bccfb
Add alt text for plugin logos.
1 files changed, 2 insertions(+), 2 deletions(-)
+2
-2
hugo/layouts/shortcodes/plugintable.html
--- 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 }} {{ end }}
+ {{ if .logo }}<img src="{{ .logo }}" alt="{{ .heading | safeHTMLAttr }} logo" />{{ else }} {{ end }}
</td>
<td class="plugin-heading">
@@ -212,4 +212,4 @@
margin: 8px;
display: inline-block;
}
-</style>
\ No newline at end of file
+</style>