From 0572cda0dab6343ee6ef34c5b35b4ef43aa69c15 Mon Sep 17 00:00:00 2001 From: "Kenneth G. Franqueiro" Date: Mon, 12 Aug 2024 12:54:24 -0400 Subject: [PATCH] Fix slug-in-version check to account for mapped slugs --- eleventy.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eleventy.config.ts b/eleventy.config.ts index deddd13888..529bee8e0c 100644 --- a/eleventy.config.ts +++ b/eleventy.config.ts @@ -175,7 +175,7 @@ export default function (eleventyConfig: any) { if (page.fileSlug in allFlatGuidelines) { // Exclude files not present in the version being built - if (!flatGuidelines[page.fileSlug]) return false; + if (!flatGuidelines[resolveUnderstandingFileSlug(page.fileSlug)]) return false; // Flatten pages into top-level directory, out of version subdirectories. // Revise any filename that differs between versions, reusing data from guidelines.ts