很多人有时候会碰到百度不收录文章缩略图,想让自己在百度搜索结果里出现缩略图的情况。除了我们从百度上搜索到的,针对图片大小,alt标签的完善,其实还有一个办法,能帮助我们。

数据化JSON-LD结构代码

其实谷歌很早就已经在使用schema代码,来展示结构化数据,而百度则是18年跟随熊掌号才开始使用,20年初熊掌号已经彻底落幕,但是这段代码其实仍然可以使用。

百度JSON-LD格式示例:

<script  type="application/ld+json"> {

       "@context": "https://zhanzhang.baidu.com/contexts/cambrian.jsonld",

       "@id": "https://zhanzhang.baidu.com/",

       "title":"百度站长平台_让网站更具价值",

       "images": [

           "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png",

           "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png",

           "https://m.baidu.com/static/index/plus/plus_logo.png"

       ],

       "description": "全球最大的面向中文互联网管理者、移动开发者、创业者的搜索流量管理的官方平台。提供有助于搜索引擎收录的工具、SEO建议、API接口、多端适配服务的能力等。",

       "pubDate": "2017-06-06T08:00:01",

       "isOriginal": "0"

}</script>

具体的使用规范可见《百度搜索落地页时间因子规范》

熊掌号既然已经不在,熊掌号ID可以选择不填。

下面可以看看谷歌的schema代码,一般谷歌对于收录速度和样式展现还是比较符合预期的,所以基本没有怎么用过。

谷歌JSON-LD格式示例:

<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Product",
  "name": "BENZ ECOM DoIP Diagnostic and Programming Tool with USB Dongle for Latest Mercedes Till 2019",
  "image": ["https://www.chinaobd2.com/upload/pro/benz-ecom-for-latest-mercedes-1.jpg","https://www.chinaobd2.com/upload/pro/benz-ecom-for-latest-mercedes-2.jpg","https://www.chinaobd2.com/upload/pro/benz-ecom-for-latest-mercedes-3.jpg","https://www.chinaobd2.com/upload/pro/benz-ecom-for-latest-mercedes-4.jpg","https://www.chinaobd2.com/upload/pro/benz-ecom-for-latest-mercedes-5.jpg","https://www.chinaobd2.com/upload/pro/benz-ecom-for-latest-mercedes-6.jpg"],
  "description": "ECOM is the diagnostic and swipe communication interface used by daimler-benz&#39;s production and r&d department. It supports the after sales diagnostic software Xentry, Vediamo, and the Monaco DTS.",
  "sku": "0190312005385",
  "mpn": "COBD25385",
  "brand": {
    "@type": "Thing",
    "name": "ChinaOBD2"
  },
  "review": {
    "@type": "Review",
    "reviewRating": {
      "@type": "Rating",
      "ratingValue": "5",
      "bestRating": "5"
    },
    "author": {
      "@type": "Person",
      "name": "walter geerinckx"
    }
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "5",
    "reviewCount": "9"
  },
  "offers": {
    "@type": "Offer",
    "url": "https://www.chinaobd2.com/wholesale/benz-ecom-for-latest-mercedes-5385.html",
    "priceCurrency": "USD",
    "price": "899.00",
    "priceValidUntil": "2019-3-23",
    "itemCondition": "https://schema.org/UsedCondition",
    "availability": "https://schema.org/InStock",
    "seller": {
      "@type": "Organization",
      "name": "ChinaOBD2"
    }
  }
}
</script>
最后修改:2020 年 05 月 13 日 01 : 18 PM