Add gallery description (#434)

Add gallery description
This commit is contained in:
Ilya Y 2024-04-24 12:30:17 +03:00 committed by GitHub
parent c1d1f05edf
commit 9028618067
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -330,7 +330,7 @@ export const FullArticle = (props: Props) => {
width: 1200, width: 1200,
}) })
const description = getDescription(props.article.description || body()) const description = getDescription(props.article.description || body() || media()[0]?.body)
const ogTitle = props.article.title const ogTitle = props.article.title
const keywords = getKeywords(props.article) const keywords = getKeywords(props.article)
const shareUrl = getShareUrl({ pathname: `/${props.article.slug}` }) const shareUrl = getShareUrl({ pathname: `/${props.article.slug}` })