Skip to content

Commit 9149663

Browse files
committed
Add aria-label to personal website link
1 parent a838d62 commit 9149663

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

scripts/generateMembers.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,20 @@ const generateMembersPlugin = (): Plugin => {
2121
const data = fm(fileContent);
2222

2323
const links = (data.attributes.links || []).map((link: { icon?: string | {}; link?: string }) => {
24+
25+
const retVal = {
26+
icon: link.icon || '',
27+
link: link.link || '',
28+
}
29+
2430
if (link.icon === "website") {
25-
link.icon = {
26-
svg: WEB_SVG_STRING
31+
retVal.icon = {
32+
svg: WEB_SVG_STRING,
2733
}
34+
retVal['ariaLabel'] = "Personal Website"
2835
}
2936

30-
return {
31-
icon: link.icon || '',
32-
link: link.link || ''
33-
}
37+
return retVal;
3438
});
3539

3640
members.push({

0 commit comments

Comments
 (0)