diff --git a/eleventy.config.ts b/eleventy.config.ts index 58fcfbd89a..deddd13888 100644 --- a/eleventy.config.ts +++ b/eleventy.config.ts @@ -3,6 +3,7 @@ import compact from "lodash-es/compact"; import { copyFile } from "fs/promises"; import { CustomLiquid } from "11ty/CustomLiquid"; +import { resolveDecimalVersion } from "11ty/common"; import { actRules, assertIsWcagVersion, @@ -101,7 +102,7 @@ const understandingNav = await generateUnderstandingNavMap(principles, understan // Declare static global data up-front so we can build typings from it const globalData = { version, - versionDecimal: version.split("").join("."), + versionDecimal: resolveDecimalVersion(version), techniques, // Used for techniques/index.html technologies, // Used for techniques/index.html technologyTitles, // Used for techniques/index.html @@ -263,7 +264,7 @@ export default function (eleventyConfig: any) { !isGuidelineObsolete(flatGuidelines[this.page.fileSlug]) ) { if (process.env.WCAG_VERBOSE) { - const since = technique.obsoleteSince!.split("").join("."); + const since = resolveDecimalVersion(technique.obsoleteSince!); console.warn( `linkTechniques in ${this.page.inputPath}: ` + `skipping obsolete technique ${id} (as of ${since})` diff --git a/techniques/index.html b/techniques/index.html index 2f6f6245dc..59fbe73e1f 100644 --- a/techniques/index.html +++ b/techniques/index.html @@ -4,7 +4,7 @@ - All WCAG 2.2 Techniques | WAI | W3C + All WCAG {{ versionDecimal }} Techniques | WAI | W3C @@ -34,7 +34,7 @@
-

Techniques for WCAG 2.2

+

Techniques for WCAG {{ versionDecimal }}