Skip to content

Commit c466587

Browse files
committed
Fixing index menu isn't sticky
1 parent 3c23a94 commit c466587

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎components/HeaderIndex.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const HeaderIndex = ({ settings }: HeaderIndexProps) => {
4040
<a>
4141
<div className="site-logo" style={{
4242
marginTop: "8px",
43-
height: "${targetHeight}px",
43+
height: `${targetHeight}px`,
4444
width: `${calcSiteLogoWidth(siteLogo, targetHeight)}px`
4545
}}
4646
>

‎pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function Index({ cmsData }: IndexProps) {
4949
throttle={300}
5050
activeClass="fixed-nav-active"
5151
render={(sticky) => (
52-
<Layout {...{ bodyClass, sticky, settings }} header={<HeaderIndex {...{ settings }} />}>
52+
<Layout {...{ bodyClass, sticky, settings, isHome: true }} header={<HeaderIndex {...{ settings }} />}>
5353
<PostView {...{ settings, posts, isHome: true }} />
5454
</Layout>
5555
)}

0 commit comments

Comments
 (0)