From c94ccb2c03f8040fe59e878f073cc182c87f3542 Mon Sep 17 00:00:00 2001 From: Enoch Ma Date: Wed, 27 Mar 2024 16:25:06 +0100 Subject: [PATCH] fix(route): AEON's banner (#14984) * use publishedAt * fix banner --- lib/routes/aeon/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/aeon/utils.ts b/lib/routes/aeon/utils.ts index 5afcb4f57..346ebe4df 100644 --- a/lib/routes/aeon/utils.ts +++ b/lib/routes/aeon/utils.ts @@ -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) => '

' + author.name + author.authorBio.replaceAll(/^

/g, ' ')).join('');