【发布时间】:2021-04-13 01:05:33
【问题描述】:
我有一个动态打开图形标记是 nuxt.js 应用程序中的元标记。它的预览版在 Twitter、Facebook、Linkedin、skype、telegram 中运行良好......但它仅在 Slack 中运行。
head() {
return {
title: TITLE,
meta: [
{
hid: 'twitter:card',
name: 'twitter:card',
content: 'summary',
},
{
hid: 'twitter:title',
name: 'twitter:title',
content: this.job.title,
},
{
hid: 'twitter:description',
name: 'twitter:description',
content:
this.job.description.length > 100
? this.job.description.substr(0, 100)
: this.job.description,
},
{
hid: 'twitter:image',
name: 'twitter:image',
content: this.job.companyLogoThumb,
},
{
hid: 'og:title',
property: 'og:title',
content: this.job.title,
},
{
hid: 'og:image',
property: 'og:image',
content: this.job.companyLogoThumb,
},
{
hid: 'og:type',
property: 'og:type',
content: 'website',
},
{
hid: 'og:description',
property: 'og:description',
content:
this.job.description.length > 100
? this.job.description.substr(0, 100)
: this.job.description,
},
],
}
对于大多数媒体来说看起来不错,但只有 slack 不起作用。
【问题讨论】:
-
你发现了吗?我也有同样的问题
标签: nuxt.js facebook-opengraph meta-tags meta