feat: reverse twitter images metadata, close #1038
This commit is contained in:
parent
4ff18beb8e
commit
55db2992b7
|
|
@ -68,7 +68,7 @@ export async function generateMetadata({
|
|||
card: useLargeOGImage ? "summary_large_image" : "summary",
|
||||
title,
|
||||
description,
|
||||
images,
|
||||
images: images.reverse(),
|
||||
site: "@_xLog",
|
||||
creator: twitterCreator ? `@${twitterCreator}` : undefined,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -40,8 +40,9 @@ export async function generateMetadata({
|
|||
const title =
|
||||
site?.metadata?.content?.site_name || site?.metadata?.content?.name
|
||||
const description = site?.metadata?.content?.bio
|
||||
const images =
|
||||
site?.metadata?.content?.avatars || `${SITE_URL}/assets/logo.svg`
|
||||
const images = site?.metadata?.content?.avatars || [
|
||||
`${SITE_URL}/assets/logo.svg`,
|
||||
]
|
||||
const twitterCreator =
|
||||
"@" +
|
||||
site?.metadata?.content?.connected_accounts
|
||||
|
|
@ -74,7 +75,7 @@ export async function generateMetadata({
|
|||
card: "summary_large_image",
|
||||
title,
|
||||
description,
|
||||
images,
|
||||
images: images.reverse(),
|
||||
site: "@_xLog",
|
||||
creator: twitterCreator,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue