feat: display article source

This commit is contained in:
Ayo 2023-05-13 23:35:26 +02:00
parent 6a4221d34a
commit 30e185b0f7

View file

@ -12,6 +12,7 @@ const datePublished =
{ {
article && ( article && (
<div class="post"> <div class="post">
{article.source && <span class="source">{article.source}</span>}
{article.title && <h1 class="title">{article.title}</h1>} {article.title && <h1 class="title">{article.title}</h1>}
{(article.author || datePublished) && ( {(article.author || datePublished) && (
<ul class="publish-info"> <ul class="publish-info">
@ -42,6 +43,10 @@ const datePublished =
h1.title { h1.title {
font-size: xx-large; font-size: xx-large;
} }
span.source {
color: #555;
font-size: normal;
}
p, p,
img, img,
table, table,