Skip to content

Commit 2d5ff5e

Browse files
🚨 fix(src): fix compiler errors
1 parent 6184be9 commit 2d5ff5e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎src/components/layouts/layout-page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import PageTitle, { PageTitleProps } from 'components/shared/page-title';
88

99
interface PageLayoutProps {
1010
heading: string;
11-
headingGradient: PageTitleProps['gradient'];
11+
headingGradient?: PageTitleProps['gradient'];
1212
subHeading?: JSX.Element;
1313
}
1414

‎src/pages/about/[slug].tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ export type Props = InferGetStaticPropsType<typeof getStaticProps>;
2525
const biographyServiceInstance = BiographyContentService.getInstance();
2626

2727
export async function getStaticPaths() {
28-
const paths = biographyServiceInstance.getAllSlugs();
28+
const paths = biographyServiceInstance
29+
.getAllSlugs()
30+
// Those are present under the /pages/about/ directory.
31+
.filter((slug) => slug !== 'experience');
32+
2933
return {
3034
paths: paths.map((slug) => ({
3135
params: {

0 commit comments

Comments
 (0)