Skip to content

Commit

Permalink
Fix slug-in-version check to account for mapped slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro committed Aug 12, 2024
1 parent caf4aaf commit 0572cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eleventy.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0572cda

Please sign in to comment.