pidgin/nest

Add alt text to supporter logos.

2019-09-03, Elliott Sales de Andrade
9787050a80cc
Parents 3c0301569549
Children cb565a62c98b
Add alt text to supporter logos.
--- a/hugo/data/supporters.json Mon Sep 02 22:16:15 2019 -0500
+++ b/hugo/data/supporters.json Tue Sep 03 23:45:22 2019 -0400
@@ -1,15 +1,19 @@
[
{
+ "name": "DigitalOcean",
"url": "https://digitalocean.com",
"badge": "DO_Logo_horizontal_black.svg"
}, {
+ "name": "SourceForge",
"url": "https://sourceforge.net",
"badge": "https://sourceforge.net/sflogo.php?type=17&group_id=235",
"style": "min-width:190px"
}, {
+ "name": "Network Redux",
"url": "https://networkredux.com/",
"badge": "networkredux.png"
}, {
+ "name": "packagecloud",
"url": "https://packagecloud.io/",
"badge": "packagecloud.svg"
}
--- a/hugo/layouts/partials/supporters.html Mon Sep 02 22:16:15 2019 -0500
+++ b/hugo/layouts/partials/supporters.html Tue Sep 03 23:45:22 2019 -0400
@@ -9,11 +9,11 @@
{{ end }}
{{ if $url.Scheme }}{{/* Absolute path */}}
<a href="{{ .url | safeHTMLAttr }}">
- <img src="{{ .badge }}" {{ $style | safeHTMLAttr }}/>
+ <img src="{{ .badge }}" alt="{{ .name | safeHTMLAttr }}" {{ $style | safeHTMLAttr }}/>
</a>
{{ else }}
<a href="{{ .url | safeHTMLAttr }}">
- <img src="/images/badges/{{ .badge }}" {{ $style | safeHTMLAttr }}/>
+ <img src="/images/badges/{{ .badge }}" alt="{{ .name | safeHTMLAttr }}" {{ $style | safeHTMLAttr }}/>
</a>
{{ end }}
{{ end }}