Skip to content

Commit

Permalink
certification to learning
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed Jan 8, 2025
1 parent 0a5aa02 commit 1972d94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
5 changes: 2 additions & 3 deletions src/components/omniSidebarNav/getOmniItems.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import CertificationItems from './submenus/certification';
import getStarted from './submenus/getStarted';
import goLive from './submenus/goLive';
import pagesToDelete from './submenus/pagesToDelete';
import webInfrastructure from './submenus/webInfrastructure';
import accountManagement from './submenus/accountManagement';
import terminus from './submenus/terminus';
Expand All @@ -10,6 +8,7 @@ import workflows from './submenus/workflows';
import support from './submenus/support';
import security from './submenus/security';
import { simpleLink } from './helpers';
import learning from './submenus/learning';

// Before we can merge we need to:
// Todo: remove console logging from this component.
Expand All @@ -30,7 +29,7 @@ const getOmniItems = () => {
terminus(),
support(),
security(),
CertificationItems(),
learning(),
about(),
simpleLink('/release-notes', 'Release Notes'),
// pagesToDelete(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
import { simpleLink, getGuideDirectory } from './../helpers';
import { getGuideDirectory, simpleLink } from './../helpers';

/**
* Array of of links specific to the Certification section of the sidebar.
* @type {Array<Object>}
*/
const CertificationItems = () => {
const learning = () => {
return {
link: '/learning',
title: 'Learning',
children: [
simpleLink('/learning', 'Learning about Pantheon'),

simpleLink('/certification', 'WebOps Certification', [
{
link: '/certification',
title: 'Certification',
},
{
link: '/certification/about',
title: 'About the Certification Program',
},

{
link: '/certification/exam',
title: 'Taking the Exam',
Expand Down Expand Up @@ -77,6 +72,8 @@ const CertificationItems = () => {
title: 'Certification Directory',
},
]),


simpleLink('/guides/wordpress-git', 'Tutorials', [
getGuideDirectory('guides/wordpress-git', 'WordPress and Git'),
getGuideDirectory('guides/pagerduty', 'Incident Management'),
Expand All @@ -93,9 +90,9 @@ const CertificationItems = () => {
simpleLink('/guides', 'More Tutorials'),
]),
simpleLink('/agency-tips', 'Agency Tips'),
simpleLink('https://learning.pantheon.io', 'Pantheon Learning'),

],
};
};

export default CertificationItems;
export default learning;
2 changes: 1 addition & 1 deletion src/templates/certificationpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CertificationTemplate extends React.Component {
<OmniSidebarNav
slot="guide-menu"
activePage={node.fields.slug}
submenuPathToUse="/certification"
submenuPathToUse="/learning"
/>

<ContentLayoutType slot="guide-content">
Expand Down

0 comments on commit 1972d94

Please sign in to comment.