【发布时间】:2020-01-30 01:04:29
【问题描述】:
我正在尝试使用 Nuxt.js 在一个脚本标签中返回多种结构化类型。 我正在使用这个插件:https://github.com/ymmooot/nuxt-jsonld
在我的网站https://kassebil.dk/ford-kassebil/ford-transit-custom 上,您可以看到此代码已经可以使用:
jsonld() {
const { brand, modelTitle, seoText, modelImage } = this.modelInfo
const price = this.lowOffer
return {
'@context': 'https://schema.org',
'@type': 'product',
'brand': `${brand}`,
'model': `${modelTitle}`,
'name': `${modelTitle}`,
'description': `${seoText.replace(/<[^>]*>?/gm, '')}`,
'image': `https://res.cloudinary.com/kassebil/image/upload/${modelImage}`,
'url': `https://kassebil.dk${this.$route.path}`,
'offers': {
'@type': 'AggregateOffer',
'lowPrice': `${price}`,
'priceCurrency': 'DKK'
}
}
}
但是,我希望为常见问题解答模式添加另一个模式。我根本无法弄清楚这是如何工作的。你能帮帮我吗?
【问题讨论】: