织梦熊掌号推送百度规则文章页面底部文件

文章页代码如下

   <script src="https://xiongzhang.baidu.com/sdk/c.js?appid={dede:global.xzappid/}"></script>

<script src="//msite.baidu.com/sdk/c.js?appid={dede:global.xzappid/}"></script> 

<link rel="canonical" href="{dede:global.cfg_basehost/}{dede:field name='arcurl'/}">  

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

{

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

    "@id": "{dede:global.cfg_sjbdhost/}{dede:field name='arcurl'/}",

    "appid": "{dede:global.xzappid/}",

    "title":"{dede:field.title/}",

    "images":["{dede:field.litpic runphp='yes'}

         $base=$GLOBALS['cfg_basehost'];

        @me = (strpos(@me, 'defaultpic') ? "" : "$base.@me");{/dede:field.litpic}"],

    "pubDate": "{dede:field.pubdate function='strftime("%Y-%m-%dT%H:%M:%S",@me)'  /}"

}

 

    </script>

列表页代码

<script src="https://xiongzhang.baidu.com/sdk/c.js?appid={dede:global.xzappid/}"></script>

<script src="//msite.baidu.com/sdk/c.js?appid={dede:global.xzappid/}"></script> 

    <link rel="canonical" href="{dede:global.cfg_basehost/}{dede:type row=1}[field:typelink /]{/dede:type}">  

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

{

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

    "@id": "{dede:global.cfg_sjbdhost/}{dede:type row=1}[field:typelink /]{/dede:type}",

    "appid": "{dede:global.xzappid/}",

    "title":"{dede:field.typename/}",

    "images":[{dede:arclist row="3" flag="p"}"[field:array runphp='yes']$base=$GLOBALS['cfg_basehost'];@me=(strpos(@me['litpic'],'defaultpic')?'':"".$base.@me['litpic']."");[/field:array]"[field:global name='autoindex'runphp='yes']if(@me<3){@me=",";}else{@me='';}[/field:global]{/dede:arclist}],

    "pubDate": {dede:arclist row=1}"[field:pubdate function='strftime("%Y-%m-%dT%H:%M:%S",@me)'  /]"{/dede:arclist}}

 

    </script>


首页代码

<script src="https://xiongzhang.baidu.com/sdk/c.js?appid={dede:global.xzappid/}"></script>

<script src="//msite.baidu.com/sdk/c.js?appid={dede:global.xzappid/}"></script> 

<link rel="canonical" href="{dede:global.cfg_basehost/}">  

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

{

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

    "@id": "{dede:global.cfg_sjbdhost/}",

    "appid": "{dede:global.xzappid/}",

    "title":"{dede:global.cfg_webname/}",

    "images":[{dede:arclist row="3" typeid='top' flag="p"}"[field:array runphp='yes']$base=$GLOBALS['cfg_basehost'];@me=(strpos(@me['litpic'],'defaultpic')?'':"".$base.@me['litpic']."");[/field:array]"[field:global name='autoindex'runphp='yes']if(@me<3){@me=",";}else{@me='';}[/field:global]{/dede:arclist}],

    "pubDate": {dede:arclist typeid="top" row=1}"[field:pubdate function='strftime("%Y-%m-%dT%H:%M:%S",@me)'  /]"{/dede:arclist}}

    </script>


相关内容

发表评论

验证码:
点击我更换图片

最新评论