mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 12:51:41 +00:00
fix(table of content): add aria label if sub term is not defined
This commit is contained in:
@ -30,7 +30,7 @@ module.exports = function(config) {
|
|||||||
)}" aria-label="${subTermData.full_title}">${subTermData.text}</a>`;
|
)}" aria-label="${subTermData.full_title}">${subTermData.text}</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return subTermData.text;
|
return `<span aria-label="${subTermData.full_title}">${subTermData.text}</span>`;
|
||||||
});
|
});
|
||||||
|
|
||||||
// just a debug filter to lazily inspect the content of anything in a template
|
// just a debug filter to lazily inspect the content of anything in a template
|
||||||
|
Reference in New Issue
Block a user