diff --git a/src/layouts/PostDetails.astro b/src/layouts/PostDetails.astro index b50bed6..604dae8 100644 --- a/src/layouts/PostDetails.astro +++ b/src/layouts/PostDetails.astro @@ -11,10 +11,17 @@ export interface Props { post: MarkdownInstance; } -const { post } = Astro.props; +const { frontmatter, Content } = Astro.props.post; + +const { title, author, description, ogImage, datetime, tags } = frontmatter; --- - +
-

{post.frontmatter.title}

- +

{title}

+
- +
    - {post.frontmatter.tags.map((tag) => )} + {tags.map((tag) => )}