Skip to content

Commit 5f9d438

Browse files
committed
Add missing image alt and label text
1 parent ee66491 commit 5f9d438

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

content/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Need to generate a CodeMeta compliant metadata file? Try out the [CodeMeta Gener
77

88
{{< rawhtml >}}
99
<a href="https://www.softwareheritage.org">
10-
<img src="/img/swh-logo.png" style="height: 50px;"/> Software Heritage</a>
10+
<img alt="Software Heritage logo" src="/img/swh-logo.png" style="height: 50px;"/> Software Heritage</a>
1111
{{< /rawhtml >}}

themes/CodeMeta-Pyramids/layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</ul>
3737
</nav>
3838
<div class="copyright pull-right">
39-
<img src="{{"img/cc-by.svg" | relURL }}"/>
39+
<img aria-label="CC-By license badge" src="{{"img/cc-by.svg" | relURL }}" alt="Licensed CC-BY"/>
4040
</div>
4141
</div>
4242
</footer>

themes/CodeMeta-Pyramids/layouts/partials/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="col-11">
1818
{{ range .Paginator.Pages }}
1919
<div class="article">
20-
<h2><a href="{{ .RelPermalink }}">{{if .Params.image }} <img src="{{ .Params.image }}" height="50px"/> {{ end }}{{ .Title }}</a></h2>
20+
<h2><a href="{{ .RelPermalink }}">{{if .Params.image }} <img alt="{{ substr .Params.image 5 -4 }} logo" src="{{ .Params.image }}" height="50px"/> {{ end }}{{ .Title }}</a></h2>
2121
</div>
2222
{{ end }}
2323
</div>
@@ -38,4 +38,4 @@ <h2><a href="{{ .RelPermalink }}">{{if .Params.image }} <img src="{{ .Params.ima
3838
{{ end }}
3939

4040
<br />
41-
</div>
41+
</div>

0 commit comments

Comments
 (0)