熊掌號為優(yōu)質圖文內容生產(chǎn)者提供結搜索結果出圖權益,幫助站點獲取更好的搜索結果展現(xiàn)樣式,為搜索用戶提供更好的瀏覽體驗。
對于落地頁及圖片質量符合要求的資源,將在搜索結果中展現(xiàn)一圖、三圖樣式。
官網(wǎng)給出的示例
這里的難點就是時間如何按百度規(guī)范處理
直接給出代碼:
<script type="application/ld+json"> { "@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld", "@id": "<yunu:config name='wapurl'/>", "appid": "1602*****7817", "title": "{$content.title}", "images": [" {$content.content|str2img}"], "description": "{$content.content|str2sub=100, true}", "pubDate": "{$content.create_time|date='Y-m-d',###}T{$content.create_time|date='H:i:s',###}", "upDate": "{$content.update_time|date='Y-m-d',###}T{$content.update_time|date='H:i:s',###}" } </script>