style: center images if less than post width
This commit is contained in:
parent
9a7c372ca8
commit
b1e93845ec
2 changed files with 8 additions and 11 deletions
|
@ -53,7 +53,6 @@ const datePublished =
|
|||
font-size: small;
|
||||
}
|
||||
p,
|
||||
img,
|
||||
table,
|
||||
ul {
|
||||
margin: 1em 0;
|
||||
|
|
|
@ -8,17 +8,15 @@ const params = Astro.url.searchParams;
|
|||
const url = params.get('url') || '';
|
||||
let article;
|
||||
|
||||
try {
|
||||
try {
|
||||
article = await extract(url);
|
||||
} catch {
|
||||
} catch {
|
||||
article = {
|
||||
title: "Something is not right",
|
||||
content: "<p>The article extractor did not get any result.</p>",
|
||||
};
|
||||
}
|
||||
}
|
||||
---
|
||||
|
||||
|
||||
<Layout title={url !== "" ? article?.title : "Your modern-day reading assistant"}>
|
||||
<AddressBar url={url} />
|
||||
{url && <Post article={article} />}
|
||||
|
|
Loading…
Reference in a new issue