Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop (Changelog) from the Release Notes nav menu item #9339

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions src/layout/header/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import React from "react"
import { Link } from "gatsby"
import React from 'react';
import { Link } from 'gatsby';

import {
Navbar,
NavMenu,
} from "@pantheon-systems/pds-toolkit-react"
import { Navbar, NavMenu } from '@pantheon-systems/pds-toolkit-react';

import { MOBILE_MENU_BREAKPOINT } from '../../vars/responsive'
import { MOBILE_MENU_BREAKPOINT } from '../../vars/responsive';

import "./style.css"
import './style.css';

// Links for NavMenu component.
const mainNavigationLinks = [
{
label: "Documentation",
label: 'Documentation',
links: [
{
linkContent: (
Expand Down Expand Up @@ -84,7 +81,7 @@ const mainNavigationLinks = [
{
linkContent: (
<Link id="release-notes" to="/release-notes">
Release Notes (Changelog)
Release Notes
</Link>
),
},
Expand Down Expand Up @@ -118,16 +115,21 @@ const mainNavigationLinks = [
</a>
),
},
]

];

const Header = ({ page }) => (
<>
<a id="skip-to-main" className="pds-skiplink" href="#docs-main">
Skip to main content
</a>

<Navbar logoLinkContent={<a href="https://pantheon.io" target="_blank" rel="nofollow">Pantheon Home</a>}>
<Navbar
logoLinkContent={
<a href="https://pantheon.io" target="_blank" rel="nofollow">
Pantheon Home
</a>
}
>
<NavMenu
slot="items-left"
ariaLabel="Main Navigation"
Expand All @@ -152,6 +154,6 @@ const Header = ({ page }) => (
</div>
</Navbar>
</>
)
);

export default Header
export default Header;
Loading