fix(table of content): add aria label if sub term is not defined

This commit is contained in:
Oscar 2020-02-10 22:23:06 +01:00
parent b45dfc68f9
commit 130f599812

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