refactor: use semantic elements

This commit is contained in:
Ayo 2023-05-11 17:16:14 +02:00
parent 75a8ab3124
commit bab04a4057

View file

@ -9,9 +9,15 @@ export interface Props {
---
{
article ? (
article ? (
<article>
<h1>{article.title}</h1>
<p>by <em>{article.author}</em></p>
<span set:html={article.content} />
) : ''
<p>
by <em>{article.author}</em>
</p>
<content set:html={article.content} />
</article>
) : (
""
)
}