Hi I am running ghost from the docker image in production. I am using ghost content api and then fetching the posts to be displayed as blogs on our website https://avail.global .
The website is built with next js and I have written out the required metadata over there, so it would change based on the blog/post being rendered and mainly we required this to be able to display a twitter card.
We also set the metadata from ghost cms that sets it for the site deployed by ghost, ours being hosted at https://cms.avail.global . We are having issues with twitter as the metadata is not being fetched correctly and for some reason I believe that is fetching the metadata from the cms not from our website.
The metadata is as follows:
title: metaData.title,
description: metaData.excerpt,
keywords: metaData.meta_title,
openGraph: {
images: metaData.feature_image,
title: metaData.title,
description: metaData.excerpt,
url: "https://avail.global/blog/"+metaData.slug,
siteName: 'Avail Blog',
type: 'article',
publishedTime: metaData.published_at,
authors: metaData.primary_author.name,
},
twitter: {
images: {
url: metaData.feature_image,
alt: metaData.feature_image_alt,
secureUrl: metaData.feature_image,
width: 1240,
height: 620,
},
card: 'summary_large_image',
title: metaData.twitter_title,
description: metaData.excerpt,
site: '@avail.global',
creator: '@availwallet',
},
That is how it is set on our next.js, the issue we are having is that this is being rendered as summary
card type not summary_large_image
but on every web page that can be effecting this i.e the blog itself on the cms or the blog at What is Avail? both export metadata as summary_large_image
.
Any reason why this would be failing?