生成 Article 或 FAQPage 的 JSON-LD。页面标签仍在 Meta 标签
页面可以把自己说成一篇 Article,或一组问答。这一页把 JSON-LD 写进 script 标签。标题和卡片标签仍在 Meta 标签。
Ada Lovelace notes,描述设为 Short notes on the analytical engine.,作者设为 Ada Lovelace,发布日期设为 2026-01-01,图片网址设为 https://example.com/ada.jpg,页面网址设为 https://example.com/ada。@context 是 https://schema.org,@type 是 Article。headline 是 Ada Lovelace notes。author 是名为 Ada Lovelace 的 Person。datePublished 是 2026-01-01。image 是那张 jpg。mainEntityOfPage 是 https://example.com/ada。整段放在 type 为 application/ld+json 的 script 标签里。Article 必须有标题。描述、作者、日期、图片和页面网址为空就不写。FAQPage 会藏起文章字段。每组之间空一行,第一行是问题,后面几行是答案。有问题没有答案会报错。类型名 Article、FAQPage、Person、Question 和 Answer 保持原文。
不会。它填的是 Article 字段,问答框是空的。
页面网址写成 mainEntityOfPage。标题是标题文本。