refactor: use semantic elements
This commit is contained in:
parent
75a8ab3124
commit
bab04a4057
1 changed files with 11 additions and 5 deletions
|
@ -10,8 +10,14 @@ export interface Props {
|
|||
|
||||
{
|
||||
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>
|
||||
) : (
|
||||
""
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue