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;
|
font-size: small;
|
||||||
}
|
}
|
||||||
p,
|
p,
|
||||||
img,
|
|
||||||
table,
|
table,
|
||||||
ul {
|
ul {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
|
|
|
@ -8,17 +8,15 @@ const params = Astro.url.searchParams;
|
||||||
const url = params.get('url') || '';
|
const url = params.get('url') || '';
|
||||||
let article;
|
let article;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
article = await extract(url);
|
article = await extract(url);
|
||||||
} catch {
|
} catch {
|
||||||
article = {
|
article = {
|
||||||
title: "Something is not right",
|
title: "Something is not right",
|
||||||
content: "<p>The article extractor did not get any result.</p>",
|
content: "<p>The article extractor did not get any result.</p>",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
<Layout title={url !== "" ? article?.title : "Your modern-day reading assistant"}>
|
<Layout title={url !== "" ? article?.title : "Your modern-day reading assistant"}>
|
||||||
<AddressBar url={url} />
|
<AddressBar url={url} />
|
||||||
{url && <Post article={article} />}
|
{url && <Post article={article} />}
|
||||||
|
|
Loading…
Reference in a new issue