mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-05 08:42:42 +00:00
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…
x
Reference in New Issue
Block a user