Skip to content

Commit bb1d953

Browse files
authored
SEO: Added aria-labels to social links (#521)
1 parent 955d644 commit bb1d953

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

config.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,35 +253,45 @@ title = "Geographic Resources Analysis Support System"
253253
[[Languages.en.params.socialIcon]]
254254
icon = " fab fa-github"
255255
link = "https://github.com/OSGeo/grass"
256+
label = "GRASS on GitHub"
256257

257258
[[Languages.en.params.socialIcon]]
258259
icon = " fab fa-discourse"
259260
link = "https://discourse.osgeo.org/c/grass/62"
261+
label = "GRASS Discourse"
260262

261263
[[Languages.en.params.socialIcon]]
262264
icon = " fa fa-comments"
263265
link = "https://gitter.im/grassgis/community"
266+
label = "GRASS Gitter Community"
264267

265268
[[Languages.en.params.socialIcon]]
266269
icon = "fab fa-linkedin"
267270
link = "https://www.linkedin.com/company/grass-gis/"
271+
label = "GRASS on LinkedIn"
268272

269273
[[Languages.en.params.socialIcon]]
270274
icon = " fab fa-mastodon"
271275
link = "https://fosstodon.org/@grassgis"
276+
label = "GRASS on Mastodon"
272277

273278
[[Languages.en.params.socialIcon]]
274279
icon = " fab fa-x-twitter"
275280
link = "https://twitter.com/grassgis"
281+
label = "GRASS on Twitter/X"
276282

277283
[[Languages.en.params.socialIcon]]
278284
icon = "fab fa-facebook"
279285
link = "https://www.facebook.com/groups/GRASS"
286+
label = "GRASS on Facebook"
280287

281288
[[Languages.en.params.socialIcon]]
282289
icon = "fab fa-youtube"
283290
link = "https://www.youtube.com/@grass-gis"
291+
label = "GRASS YouTube Channel"
284292

285293
[[Languages.en.params.socialIcon]]
286294
icon = "fa fa-rss"
287295
link = "https://grass.osgeo.org/index.xml"
296+
label = "RSS Feed"
297+

themes/grass/layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<ul class="list-inline mb-3 d-flex justify-content-center justify-content-md-end align-items-center">
2020
{{ range .Site.Params.socialIcon }}
2121
<li class="list-inline-item d-flex align-items-center">
22-
<a class="color-secondary d-inline-block p-2" href="{{ .link }}">
22+
<a class="color-secondary d-inline-block p-2" aria-label="{{ .label }}" href="{{ .link }}">
2323
<i class="{{ .icon }}"></i>
2424
</a>
2525
</li>

0 commit comments

Comments
 (0)