From eb5f26348abc92c7c5ef4ba98ab7d822f18e5080 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sun, 14 Jul 2024 10:52:19 +0800 Subject: [PATCH] Add unique aria labels to landmarks --- eleventy.config.md.js | 7 ++++++- src/_includes/global/content.njk | 6 ++---- src/_includes/global/navbar.njk | 4 ++-- src/_includes/global/toc.njk | 2 +- src/_includes/main/content-nav.njk | 4 ++-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/eleventy.config.md.js b/eleventy.config.md.js index 792f1af7..a7fb6989 100644 --- a/eleventy.config.md.js +++ b/eleventy.config.md.js @@ -12,7 +12,12 @@ const markdownItAnchor = require("markdown-it-anchor"); module.exports = function (eleventyConfig) { // Installed Plugins - eleventyConfig.addPlugin(pluginTOC, { tags: ['h2', 'h3', 'h4', 'h5'] }); + eleventyConfig.addPlugin(pluginTOC, { + tags: ['h2', 'h3', 'h4', 'h5', 'h6'], + wrapper: function (toc) { + return ``; + }, + }); eleventyConfig.addPlugin(embedEverything, { add: ['soundcloud'] }); // Configure slug filter diff --git a/src/_includes/global/content.njk b/src/_includes/global/content.njk index 5eef6459..3bda6ec9 100644 --- a/src/_includes/global/content.njk +++ b/src/_includes/global/content.njk @@ -1,7 +1,6 @@
{% if isArticle or hasBreadcrumbs %} -