AH 增加结构化标签:文章、面包屑
parent
2a41c674a6
commit
adc2aa4cf1
@ -0,0 +1,28 @@
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Article",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id": "https://www.asiahighlights.com<?php echo $information->ic_url; ?>"
|
||||
},
|
||||
"headline": "<?php echo $information->ic_seo_title; ?>",
|
||||
"image": [
|
||||
"https://images.asiahighlights.com<?php echo $information->ic_photo; ?>"
|
||||
],
|
||||
"datePublished": "<?php echo $information->is_datetime; ?>",
|
||||
"dateModified": "<?php echo date('Y-m-d\TH:i:s'); ?>",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "<?php echo $author->OPI_FirstName; ?>"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "China Highlights",
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": "https://data.asiahighlights.com/pic/logo-ah.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,28 @@
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "Home",
|
||||
"item": "https://www.chinahighlights.com/"
|
||||
}
|
||||
<?php foreach ($breadcrumb_data as $index => $item) {?>
|
||||
,{
|
||||
"@type": "ListItem",
|
||||
"position": <?php echo ($index + 2) ?>,
|
||||
"name": "<?php echo $item['ic_url_title'] ?>",
|
||||
"item": "https://www.chinahighlights.com<?php echo $item['ic_url'] ?>"
|
||||
}
|
||||
<?php }?>
|
||||
<?php if ($information->ic_url != '/') {?>
|
||||
,{
|
||||
"@type": "ListItem",
|
||||
"position": <?php echo (count($breadcrumb_data) + 2) ?>,
|
||||
"name": "<?php echo $information->ic_title ?>"
|
||||
}
|
||||
<?php }?>
|
||||
]
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue