fix(route): AEON's banner (#14984)

* use publishedAt

* fix banner
This commit is contained in:
Enoch Ma
2024-03-27 16:25:06 +01:00
committed by GitHub
parent fa91b3b133
commit c94ccb2c03
+1 -1
View File
@@ -36,7 +36,7 @@ const getData = async (ctx, list) => {
const article = data.props.pageProps.article;
const capture = load(article.body);
const banner = article.thumbnail?.urls?.header;
const banner = article.image?.url;
capture('p.pullquote').remove();
const authorsBio = article.authors.map((author) => '<p>' + author.name + author.authorBio.replaceAll(/^<p>/g, ' ')).join('');