Add # to footnote labels for screen readers
This commit is contained in:
parent
8cb5ec1643
commit
0b3848d22d
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue