mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-04-19 16:19:16 +00:00
Merge pull request #66 from ovlb/fix/toc-sub-terms-aria-label
🐛 Add aria-label to table of content subterm if it is undefined
This commit is contained in:
commit
7b555e270e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user