Skip to content

Commit b089742

Browse files
committed
chore: Actually gitignore and update hideSearch logic
1 parent 6107460 commit b089742

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ src/__generated__/
6464
public
6565

6666
# nav generated on build
67-
*/generatedNav.yml
67+
src/nav/generatedNav.yml
6868

6969
# Mac files
7070
.DS_Store

src/layouts/MainLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const MainLayout = ({ data = {}, children, pageContext }) => {
4646
<>
4747
<SEO location={location} />
4848
<GlobalHeader
49-
hideSearch={true}
49+
hideSearch={pageContext.slug === '/'}
5050
customStyles={{ navLeftMargin: '150px', searchRightMargin: '30px' }}
5151
/>
5252
<MobileHeader>

0 commit comments

Comments
 (0)