帝国cms模板制作技巧:首页列表页内容页SEO头部写法示例

首页 <title>[!--pagetitle--]-<?=$public_r[sitename]?></title>
<meta name="keywords" content="[!--pagekey--]" />
<meta name="description" content="<?=$public_r[s

<meta charset="utf-8">

首页
 
<title>[!--pagetitle--]-<?=$public_r[sitename]?></title>HOGECMSPLUS
<meta name="keywords" content="[!--pagekey--]" />HOGECMSPLUS
<meta name="description" content="<?=$public_r[sitename]?>,<?=$public_r['add_sort']?>[!--pagekey--]等,服务热线:<?=$public_r['add_tel']?>" />
 
 
列表页
<title>[!--pagetitle--]-[!--class.name--]-<?=$public_r[sitename]?></title>HOGECMSPLUS
<meta name="keywords" content="[!--pagekey--]" />HOGECMSPLUS
<meta name="description" content="[!--pagedes--]" />
 
内容页
<meta name="description" content="[!--smalltext--]">

如下示例代码:

&lt;title&gt;&#091;!--pagetitle--]-&#091;!--class.name--]-&lt;?=$public_r[sitename]?&gt;&lt;/title&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;&lt;?php
$kr=explode(&quot;,&quot;,$navinfor[keyboard]);
foreach($kr as $keyword){
echo &#039;&#039;.$keyword.&#039;,&#039;;
}
?&gt;&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;&#091;!--smalltext--]&quot; /&gt;
分享到 :
相关推荐

发表评论

登录... 后才能评论

评论(3)

加入本站VIP会员订阅计划,海量资源免费下载查看

目前为止共有3位优秀的VIP会员加入!

立即加入VIP会员