Skip to content

Commit 557f237

Browse files
committed
Add alt attribute to images
1 parent 374e480 commit 557f237

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

_data/go_further.yml

+5
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,32 @@
33
content_type: article
44
content_url: /documentation/articles/value-and-reference-types.html
55
thumbnail_url: #TBD
6+
thumbnail_alt:
67
release_date: 2023-04-29
78
external: false
89
- title: "Generics"
910
description: "In Swift, generics are a fundamental way to write abstract code. This video walks through the basics of Swift Generics and introducing generics into your code."
1011
content_type: video
1112
content_url: https://developer.apple.com/videos/play/wwdc2022/110352/
1213
thumbnail_url: /assets/images/getting-started/swift-generics-thumbnail.jpg
14+
thumbnail_alt: "A block thumbnail image with three emoji icons: a femail farmer, a cow, and a carrot."
1315
release_date: 2021-06-09
1416
external: true
1517
- title: "Concurrency"
1618
description: "Swift has concurrency features built into the language making it easier to write concurrent code with the assistance of the compiler. This video introduces the async/await mechanism, a key part of Swift Concurrency."
1719
content_type: video
1820
content_url: https://developer.apple.com/videos/play/wwdc2021/10132/
1921
thumbnail_url: /assets/images/getting-started/meet-async-await-thumbnail.jpg
22+
thumbnail_alt: |
23+
A thumbnail image describing a concurrent sequence diagram with five blocks: green into yellow into purple into another yello into another green.
2024
release_date: 2021-06-08
2125
external: true
2226
- title: "Regular Expressions"
2327
description: "Swift provides first-class regular expression support, commonly known as regex, for effective string processing. This video gives an overview of the power and flexibility of Swift Regex."
2428
content_type: video
2529
content_url: https://developer.apple.com/videos/play/wwdc2022/110357/
2630
thumbnail_url: /assets/images/getting-started/regular-expression-thumbnail.jpg
31+
thumbnail_alt: "An image describing a block of code about Regular Expression syntax."
2732
release_date: 2022-06-07
2833
external: true
2934

getting-started/_go-further.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Ready to dive deeper? Here are some hand-picked resources covering various Swift
66
{% for resource in site.data.go_further %}
77
<li class="resource{% if resource.featured %} featured{% endif %}">
88
{% if resource.thumbnail_url %}
9-
<img class="thumbnail" src="{{ resource.thumbnail_url }}"/>
9+
<img class="thumbnail" src="{{ resource.thumbnail_url }}" alt="{{ resource.thumbnail_alt }}"/>
1010
{% elsif resource.content_type == "article" %}
11-
<img class="thumbnail" src="/assets/images/getting-started/article-thumbnail.jpg"/>
11+
<img class="thumbnail" src="/assets/images/getting-started/article-thumbnail.jpg" alt="An article icon"/>
1212
{% endif %}
1313

1414
<h3>{{ resource.title }}</h3>

index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ atom: true
3030

3131
<li>
3232
<a href="/getting-started">
33-
<img src="/assets/images/landing-page/signs.svg" />
33+
<img src="/assets/images/landing-page/signs.svg" alt="An icon image with a sign post and two signs pointing in opposite directions." />
3434
Get started
3535
</a>
3636
</li>
3737

3838
<li>
3939
<a href="/documentation">
40-
<img src="/assets/images/landing-page/book.svg" />
40+
<img src="/assets/images/landing-page/book.svg" alt="An icon image with an open book." />
4141
Read the docs
4242
</a>
4343
</li>

0 commit comments

Comments
 (0)