Add # to footnote labels for screen readers

This commit is contained in:
Leilukin 2024-06-09 17:34:39 +08:00 committed by Helen Chong
parent 461606d2c8
commit 675b2d875b

View File

@ -86,7 +86,7 @@ module.exports = function (eleventyConfig) {
); );
const renderRules = { 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"'], footnote_anchor: ['<a', '<a aria-label="Back to content"'],
}; };
Object.keys(renderRules).map(rule => { Object.keys(renderRules).map(rule => {