元标签与 Open Graph 检查清单

当搜索摘要或分享卡片显示异常时,检查 HTML 标签、公开 URL、图片地址和缓存。

检查准备发布的 HTML

将 head 粘贴到元标签预览工具中,检查 title、description、canonical 和 viewport。该工具读取粘贴的代码;如需获取已发布页面,请使用 URL 检查器。

<title>Image to PDF Converter | Example</title>
<meta name="description" content="Combine JPG and PNG images into a PDF.">
<link rel="canonical" href="https://example.com/image-to-pdf/">

检查分享卡片标签

Open Graph 将 og:title、og:type、og:image 和 og:url 定义为基本属性。可添加 og:description 作为说明。请确认图片地址可公开访问。HTML 预览仅显示远程图片 URL,不会实际获取。

<meta property="og:title" content="Image to PDF Converter">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/image-to-pdf/">
<meta property="og:image" content="https://example.com/share.png">

解析相对地址并检查已发布页面

如果图片使用 /share.png 之类的相对路径,请输入基础 URL 以检查解析结果。发布后,使用 URL 检查器对照公开页面的值。登录要求或抓取限制可能导致部分值不可用。

考虑卡片缓存和摘要重写

更新 HTML 后,分享服务可能仍保留旧卡片。请使用其官方分享调试工具要求重新抓取页面。搜索引擎也可能为不同查询选择其他说明,因此显示的摘要可能与 description 标签不同。

本指南使用的工具

参考资料

审核日期: