lecms文章页面结构化数据代码,包含首页,列表页,内容页
<title>{$cfg[titles]}</title>
<meta name="keywords" content="{$cfg[seo_keywords]}" />
<meta name="description" content="{$cfg[seo_description]}" />
<meta name="Copyright" content="爱食谱" />
<link rel="canonical" href="{$cfg[weburl]}"/>
<meta property="og:type" content="index"/>
<meta property="og:title" content="{$cfg[titles]}" />
<meta property="og:description" content="{$cfg[seo_description]}" />
<meta property="og:image" content="{$cfg[webroot]}{$cfg[tpl]}images/af.jpg" />
<meta property="og:url" content="{$cfg[weburl]}" />
<link rel="shortcut icon" href="/favicon.ico">
首页使用

<title>{$cfg[titles]}</title>
<meta name="keywords" content="{$cfg[seo_keywords]}" />
<meta name="description" content="{$cfg[seo_description]}" />
<meta name="Copyright" content="爱食谱" />
<link rel="canonical" href="{$cfg[webroot]}{$cfg_var[url]}"/>
<meta property="og:type" content="category"/>
<meta property="og:title" content="{$cfg[titles]}" />
<meta property="og:description" content="{$cfg[seo_description]}" />
<meta property="og:image" content="{$cfg[webroot]}{$cfg[tpl]}images/af.jpg" />
<meta property="og:url" content="{$cfg[webroot]}{$cfg_var[url]}" />
<link rel="shortcut icon" href="/favicon.ico">

列表页面使用
<title>{$cfg[titles]}</title>
<meta name="keywords" content="{$cfg[seo_keywords]}" />
<meta name="description" content="{$cfg[seo_description]}" />
<meta name="Copyright" content="芷兰养生" />
<link rel="canonical" href="{$cfg[webroot]}{$gdata[url]}"/>
<meta name="author" content="{$gdata[author]}">
<meta property="og:type" content="article"/>
<meta property="og:title" content="{$gdata[title]}" />
<meta property="og:description" content="{$cfg[seo_description]}..." />
<meta property="og:image" content="{$cfg[webroot]}{$gdata[pic]}" />
<meta property="og:url" content="{$cfg[webroot]}{$gdata[url]}" />
<meta property="og:release_date" content="{php} echo date('Y-m-d', $gdata['dateline']).' '.date('H:i:s', $gdata['dateline']);{/php}" />
<meta property="og:updated_time" content="{php} echo date('Y-m-d', $gdata['dateline']).' '.date('H:i:s', $gdata['dateline']);{/php}" />
<meta property="og:article:author" content="{$gdata[author]}"/>
<meta property="article:published_time" content="{php} echo date('Y-m-d', $gdata['dateline']).'T'.date('H:i:s', $gdata['dateline']);{/php}+08:00" />
<link rel="shortcut icon" href="/favicon.ico">
内容页面使用!
声明:本站所有内容/本文内容/及图片/由互联网用户投稿自发贡献,该文观点仅代表其作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭/侵权/违法违规的内容, 请发送邮件至 123456@qq.com 举报,一经查实,本站将立刻删除。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。