Skip to content

Commit

Permalink
Add alt text to featured images. (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmi authored May 8, 2024
1 parent 4723885 commit 0572363
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions website/public/news/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ <h3>CiviForm Awarded Anthem Silver Award</h3>
<div>
<img
class="news-image cagov-featured-image"
alt="Anthem Awards logo."
src="/img/anthem-awards.png"
/>
</div>
Expand Down Expand Up @@ -261,6 +262,7 @@ <h3>
<div>
<img
class="news-image cagov-featured-image"
alt="Greg Overtoom and Rick Dietz of Bloomington being congratulated by Tracy Barnes, CIO at Indiana Office of Technology."
src="/img/bloomington-best-of-in-award.jpg"
/>
</div>
Expand Down Expand Up @@ -301,6 +303,7 @@ <h3>
<div>
<img
class="news-image cagov-featured-image"
alt="Seattle Mayor Bruce Harrell signing the exectuive order at the announcement event."
src="/img/affordable-seattle-announcement.jpg"
/>
</div>
Expand Down
3 changes: 3 additions & 0 deletions website/src/_data/news.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"Publisher": "Anthem Awards",
"Date": "2024-01-30",
"Image": "anthem-awards.png",
"ImageDescription": "Anthem Awards logo.",
"Featured": true
},
{
Expand All @@ -31,6 +32,7 @@
"Publisher": "City of Bloomington",
"Date": "2023-10-27",
"Image": "bloomington-best-of-in-award.jpg",
"ImageDescription": "Greg Overtoom and Rick Dietz of Bloomington being congratulated by Tracy Barnes, CIO at Indiana Office of Technology.",
"Featured": true
},
{
Expand All @@ -55,6 +57,7 @@
"Publisher": "City of Seattle",
"Date": "2023-07-12",
"Image": "affordable-seattle-announcement.jpg",
"ImageDescription": "Seattle Mayor Bruce Harrell signing the exectuive order at the announcement event.",
"Featured": true
},
{
Expand Down
6 changes: 5 additions & 1 deletion website/src/_includes/layouts/news-feature.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
</div>
</div>
<div>
<img class="news-image cagov-featured-image" src="/img/{{story.Image}}" />
<img
class="news-image cagov-featured-image"
alt="{{story.ImageDescription}}"
src="/img/{{story.Image}}"
/>
</div>
</div>
</div>
Expand Down

0 comments on commit 0572363

Please sign in to comment.