Skip to content

Commit cdc32f2

Browse files
Merge branch 'master' into chore/contributing-version-guardrail
2 parents bc73ced + c782204 commit cdc32f2

4 files changed

Lines changed: 23 additions & 1 deletion

File tree

gatsby-node.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,26 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
581581
});
582582
});
583583

584+
const latestProgramsBySlug = new Map();
584585
programs.forEach((program) => {
586+
const slug = program.frontmatter.programSlug;
587+
if (!latestProgramsBySlug.has(slug)) {
588+
latestProgramsBySlug.set(slug, program);
589+
} else {
590+
const currentLatest = latestProgramsBySlug.get(slug);
591+
if ((program.fields?.slug || "") > (currentLatest.fields?.slug || "")) {
592+
latestProgramsBySlug.set(slug, program);
593+
}
594+
}
595+
});
596+
597+
latestProgramsBySlug.forEach((program, slug) => {
585598
envCreatePage({
586-
path: `/programs/${program.frontmatter.programSlug}`,
599+
path: `/programs/${slug}`,
587600
component: `${MultiProgramPostTemplate}?__contentFilePath=${program.internal.contentFilePath}`,
588601
context: {
589602
program: program.frontmatter.program,
603+
slug: program.fields?.slug,
590604
},
591605
});
592606
});
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

src/collections/integrations/k8gb/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ components: [
2020
"colorIcon": "icons/components/gslb/icons/color/gslb-color.svg",
2121
"whiteIcon": "icons/components/gslb/icons/white/gslb-white.svg",
2222
"description": "",
23+
},
24+
{
25+
"name": "zone-delegation",
26+
"colorIcon": "icons/components/zone-delegation/icons/color/zone-delegation-color.svg",
27+
"whiteIcon": "icons/components/zone-delegation/icons/white/zone-delegation-white.svg",
28+
"description": "",
2329
}]
2430
featureList: [
2531
"Provides a security benchmark for Kubernetes",

0 commit comments

Comments
 (0)