Skip to content

Commit

Permalink
Add frontmatter prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jan 12, 2024
1 parent 0da7ef5 commit e45e09e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/layouts/MarkdownLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ import GlobalNavigation from "../components/GlobalNavigation";
import Shell from "./Shell.astro";
import { Strip, Col, Row } from "@canonical/react-components";
interface Props {
title: string;
}
import type { MarkdownLayoutProps } from 'astro';
type Props = MarkdownLayoutProps<{
// Define frontmatter props here
title: string;
description: string;
}>;
const { frontmatter } = Astro.props;
---
Expand Down

0 comments on commit e45e09e

Please sign in to comment.