detoon模板熊掌號搜索結果出圖代碼
阿新 • • 發佈:2018-04-02
destoon手機模板 destoon熊掌號出圖
上次寫過關於destoon手機端熊掌號頁面改造,今天繼續上次的熊掌號代碼改造之熊掌號搜索結果出圖,演示:https://author.baidu.com/home/1594888518697810
如圖:
![](http://i2.51cto.com/images/blog/201804/02/442bfc000be4d89d41109c3132262179.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
打開手機端模板header.htm文件,在<head>裏添加:
`<!--百度出圖!-->
<script type="application/ld+json">
{
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
"@id": "{$DT_URL}",
"appid": "你的熊掌號ID",
"title": "{$head_title}",
"images": [
"{$thumb}",
"http://zhimo.yuanzhumuban.cc/skin/pengcheng1688/ad/sell/11-51-28-19-836892.jpg",
"{if $MODULE[$moduleid][logo]}{DT_SKIN}image/logo_{$moduleid}.gif{elseif $DT[logo]}{$DT[logo]}{else}{DT_SKIN}image/logo.gif{/if}"
],
"pubDate": "<?php
$dateTime2= date("H:i:s",$editdate);
echo date("Y-m-d")."T"."$dateTime2"
?>"
}
</script>`
好了以上就是熊掌號出圖適用於destoon手機模板改造,如有疑問可以在底部回復,歡迎一起交流探討!
detoon模板熊掌號搜索結果出圖代碼