Skip to content

Commit

Permalink
Render author information
Browse files Browse the repository at this point in the history
  • Loading branch information
stasadev committed Dec 20, 2024
1 parent 6a50f7d commit 324cdb7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/blog/author/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function getStaticPaths() {
const { author, posts } = Astro.props
const title = `Posts by ${author.data.name}`
// const { Content } = render(author)
const { Content } = await render(author)
---

<Layout
Expand All @@ -42,8 +42,7 @@ const title = `Posts by ${author.data.name}`
<div class="lg:flex lg:space-x-12 py-24 px-6 lg:px-0">
<h1 class="font-bold text-4xl dark:text-white">{author.data.name}</h1>
<div class="prose mt-6 lg:mt-0 dark:prose-invert">
<!-- author.render() -->
<!-- <Content /> -->
<Content />
</div>
</div>

Expand Down

0 comments on commit 324cdb7

Please sign in to comment.