改进文档页面的 onebox

在 Let’s Encrypt 论坛中,我们经常链接到文档。我很想改善这一体验。例如,下面是一个生成的 Onebox 示例:

image

特别是,我想省略“最后更新时间……查看所有文档”这段文字。我知道 Google 支持使用 data-nosnippet HTML 属性 来禁止对某些元素生成摘要片段。Discourse 的 Onebox 是否有等效的功能?

此外,当 URL 指向我们自己的网站(letsencrypt.org)时,我希望能够选择性地内联显示更大块的页面文本。这可行吗?

谢谢,
Jacob

在这些页面上添加一些 OpenGraph 标签应该就足够了。具体需要添加:

og:title
og:image
og:description

目前我们回退到使用 <head> 中的 twitter 标签,但其质量较低。您可能希望摆脱自动生成的描述标签,因为当前的 twitter 标签描述中包含过多噪音:

<meta name="twitter:description" content="Last updated: Jul 30, 2019 | See all Documentation When reporting issues it can be useful to provide your Let's Encrypt account ID. Most of the time, the process of creating an account is handled automatically by the ACME client software you use to talk to Let's Encrypt, and you may have multiple accounts configured if you run ACME clients on multiple servers.
Your account ID is a URL of the form https://acme-v02.">