Skip to content

Commit 69ec844

Browse files
Merge branch 'master' into master
2 parents 6219916 + a7c43cb commit 69ec844

2 files changed

Lines changed: 16 additions & 4 deletions

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
});

src/collections/members/ritesh-karankal/index.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ linkedin: riteshkarankal
88
layer5: bf6a3e39-503c-4f58-b244-e5243cfb7cd5
99
location: Chhattisgarh, India
1010
bio: Hi, I’m Ritesh Karankal I’m a CSE graduate, always curious and always learning with a focus on DevOps and related technologies.I’m passionate about contributing to open source, building distributed systems, exploring cloud-native tech, and diving into all things automation. Always excited to learn, share, and build cool stuff with the community.
11-
badges:
12-
- community
13-
status: Active
11+
status: Inactive
1412
emeritus: yes
1513
maintainer: no
1614
published: true

0 commit comments

Comments
 (0)