Skip to content

Commit

Permalink
docs: use consistent "post" in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Aug 19, 2024
1 parent 413a802 commit 5a0e309
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,20 +178,20 @@ export async function loader({ request, params }) {
}

const { slug } = params
const book = await getBookBySlug(slug)
const post = await getPostBySlug(slug)

return { book }
return { post }
}

export default function Template() {
const { book } = useLoaderData()
const { post } = useLoaderData()

return (
<div
id="og-image"
className="w-[1200px] h-[630px] bg-blue-100 flex items-center justify-center"
>
<h1 className="text-4xl">{book.title}</h1>
<h1 className="text-4xl">{post.title}</h1>
</div>
)
}
Expand Down

0 comments on commit 5a0e309

Please sign in to comment.