Skip to content

Commit

Permalink
Merge pull request #8083 from sm1990/mob-nav
Browse files Browse the repository at this point in the history
Fix mobile nav & banner expiration
  • Loading branch information
praneesha authored Oct 23, 2023
2 parents 2d99d71 + e10ce08 commit 6e2b511
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _data/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"date": "October 1-31, 2023",
"day": "",
"time": "",
"expire": "2023-11-31T00:00:00.0000-00:00",
"expire": "2023-11-01T00:00:00.0000-00:00",
"location": "Virtual",
"url": "https://ballerina.io/hacktoberfest/",
"eventType": "Hacktoberfest 2023",
Expand Down
2 changes: 1 addition & 1 deletion components/common/top-nav/TopNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const TopNav = (props) => {
const now = new Date();
let showBanner = false;

if (now < Date.parse('2023-10-31T00:00:00.0000-00:00')) {
if (now < Date.parse('2023-11-01T00:00:00.0000-00:00')) {
showBanner = true;
}

Expand Down
2 changes: 1 addition & 1 deletion pages/learn/references/ballerina-specifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function PostPage({ frontmatter, content, id }) {
<LeftNav
launcher="learn"
id={id}
mainDir="learn-the-platform"
mainDir="references"
Toc={LearnToc}
sub={id}
/>
Expand Down

0 comments on commit 6e2b511

Please sign in to comment.