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:
Tatiana Mac 2020-02-11 21:11:10 -08:00 committed by GitHub
commit 7b555e270e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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