Skip to content

Commit 5620706

Browse files
Showing "Chainguard Advanced" only to isInternal
1 parent 4213f5c commit 5620706

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

production/skilljar-theme-v2.1.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ if (typeof skilljarUser !== "undefined") {
6969
}
7070

7171
if (typeof skilljarUserStudentGroups !== "undefined") {
72-
isPartner = skilljarUserStudentGroups.map((d) => d.id).includes("1axsvmzhtbb95");
72+
isPartner = skilljarUserStudentGroups
73+
.map((d) => d.id)
74+
.includes("1axsvmzhtbb95");
7375
isOnlyPartner = isPartner && skilljarUserStudentGroups.length === 1;
7476
}
7577

@@ -380,17 +382,19 @@ pathSections = {
380382
description:
381383
"A comprehensive learning path designed to provide partners with the foundational knowledge needed to effectively sell Chainguard's products and solutions.",
382384
},
383-
{
384-
isPath: true,
385-
isCourse: false,
386-
hasBadge: false,
387-
title: "Chainguard Advanced: Partner Sales Accelerator",
388-
slug: "path/chainguard-advanced-partner-sales-accelerator",
389-
icon: icons.burger,
390-
description:
391-
"An advanced learning path aimed at equipping partners with the skills and knowledge to accelerate their sales efforts for Chainguard's products and solutions.",
392-
},
393-
],
385+
isInternal
386+
? {
387+
isPath: true,
388+
isCourse: false,
389+
hasBadge: false,
390+
title: "Chainguard Advanced: Partner Sales Accelerator",
391+
slug: "path/chainguard-advanced-partner-sales-accelerator",
392+
icon: icons.burger,
393+
description:
394+
"An advanced learning path aimed at equipping partners with the skills and knowledge to accelerate their sales efforts for Chainguard's products and solutions.",
395+
}
396+
: undefined,
397+
].filter(Boolean),
394398
},
395399
],
396400
"chainguard-containers-onboarding-guide": [

0 commit comments

Comments
 (0)