Add # to footnote labels for screen readers

This commit is contained in:
Helen Chong 2024-06-09 17:34:39 +08:00
parent 8cb5ec1643
commit 0b3848d22d
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ module.exports = function (eleventyConfig) {
);
const renderRules = {
footnote_caption: ['[', '[<span class="visually-hidden">Footnote </span>'],
footnote_caption: ['[', '[<span class="visually-hidden">Footnote #</span>'],
footnote_anchor: ['<a', '<a aria-label="Back to content"'],
};
Object.keys(renderRules).map(rule => {