Skip to content

Commit

Permalink
Fix mobile nav & banner expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
sm1990 committed Oct 23, 2023
1 parent 2d99d71 commit e10ce08
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 e10ce08

Please sign in to comment.