diff --git a/11ty/CustomLiquid.ts b/11ty/CustomLiquid.ts index f6a454b7e1..125f5659cb 100644 --- a/11ty/CustomLiquid.ts +++ b/11ty/CustomLiquid.ts @@ -138,9 +138,8 @@ export class CustomLiquid extends Liquid { // Clean out elements to be removed // (e.g. editors.css & sources.css, and leftover template paragraphs) - // NOTE: some paragraphs with the "instructions" class actually have custom content, - // but for now this remains consistent with the XSLT process by stripping all of them. - $(".remove, section#meta, section.meta").remove(); + // Note: the link selector accounts for ~40 files forgetting class="remove" on editors.css + $(".remove, link[href$='editors.css'], section#meta, section.meta").remove(); if ($("p.instructions").length > 0) { console.error(`${filepath} contains a

element.\n` + @@ -151,6 +150,9 @@ export class CustomLiquid extends Liquid { throw new Error("Instructions paragraph found; please resolve.") } + // Add charset to pages that forgot it + if (!$("meta[charset]").length) $('').prependTo("head"); + const prependedIncludes = ["header"]; const appendedIncludes = ["wai-site-footer", "site-footer"]; diff --git a/techniques/technique-template.html b/techniques/technique-template.html index cecf0531f6..04650770e1 100644 --- a/techniques/technique-template.html +++ b/techniques/technique-template.html @@ -1,8 +1,9 @@ + Technique Title - +

Technique Title

diff --git a/understanding/understanding-template.html b/understanding/understanding-template.html index 1ba3f8311a..20de0d3fb0 100644 --- a/understanding/understanding-template.html +++ b/understanding/understanding-template.html @@ -1,8 +1,9 @@ + WCAG 2 Understanding Page - +

Understanding SC #.#.#