Skip to content

Commit

Permalink
Don’t nest 'p' tags
Browse files Browse the repository at this point in the history
  • Loading branch information
smockle committed Nov 15, 2019
1 parent a554d8d commit 42478a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/blog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function PostsPage({ data }: PostsPageProps) {
{node.frontmatter.title ? (
<p>{node.excerpt}</p>
) : (
<p dangerouslySetInnerHTML={{ __html: node.htmlExcerpt }}></p>
<div dangerouslySetInnerHTML={{ __html: node.htmlExcerpt }} />
)}
</article>
))}
Expand Down

0 comments on commit 42478a9

Please sign in to comment.