Skip to content

Commit

Permalink
Added aria label to markdown anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
jahilldev committed Feb 18, 2021
1 parent 37a0513 commit c4535a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function (config) {
permalinkBefore: true,
permalinkClass: 'title-anchor',
permalinkSymbol: '',
permalinkAttrs: (slug) => ({ name: normaliseTitleAnchors(slug) }),
permalinkAttrs: (slug) => ({ 'aria-label': normaliseTitleAnchors(slug) }),
slugify: slugifyTitleAnchors,
})
);
Expand Down

0 comments on commit c4535a7

Please sign in to comment.