Skip to content

Commit

Permalink
Update [slug].tsx
Browse files Browse the repository at this point in the history
fix a bug, the version has no `.html` attr , instead  `.raw`
  • Loading branch information
shifenhutu committed Feb 26, 2023
1 parent 0132264 commit 8c58b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/posts/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const PostLayout = ({ post }: { post: Post }) => {
</time>
<h1>{post.title}</h1>
</div>
<div dangerouslySetInnerHTML={{ __html: post.body.html }} />
<div dangerouslySetInnerHTML={{ __html: post.body.raw }} />
</article>
</>
);
Expand Down

0 comments on commit 8c58b5e

Please sign in to comment.