问题标签 [og-meta]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
25 浏览

automation - 如何将 OG 元数据添加到 Shopify 描述?

如何自动将 Twitter 中的 OG 元描述添加到 Shopify 中的元描述?

<meta property="og:description" content="here is the meta description i want to automatically add to the shopify description for every product.">

0 投票
0 回答
22 浏览

schema - 解析错误:数组声明中缺少 ',' 或 ']'

我为我的网站视频编写了此架构代码,但在 Google 网站管理员工具上出现此错误:

为什么会这样?我的架构代码:

在 Google 网站管理员工具中,“名称”元标记发生错误,其内容颜色为红色:

0 投票
0 回答
13 浏览

html - 以角度动态更新 og 元标记

我想向 WhatsApp 分享一些动态内容,动态内容来自 API。因此,我在 component.ts 文件中使用了 angular Meta 类来使用动态内容更新 index.html 中的默认元标记属性。

当我将 URL 导航到要更新 og 元标记的特定页面时。在 DOM 中添加了元标记。但是当我与 WhatsApp 共享相同的页面 URL 时。动态内容不出现。

索引.html

app.module.ts

pub-details.component.ts

更新 og 元标记后的 HTML DOM(内容已更新) 在此处输入图像描述

与 WhatsApp 共享相同的 URL(内容未更新) 在此处输入图像描述