关于Z-blog-中加description,keywords方法

Posted by caiwaji 14 September,2008 (1)Comment

版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明


本文链接地址:http://www.caiwaji.net/post/13.html

blog默认里面是没有description,keywords这连个标签的`需要我们自己添加,对SEO有用!

如何在Z-blog中添加meta标签的,其实我也是在不断的学习和总结别人经验的基础上知道如何灵活在Z-blog中添加meta标签的,之前有网友写过这样的文章,不过没有展开来说,写这篇文章主要是结合在我给竞博客优化的基础,再把每个步骤细化一下,希望能起到抛砖引玉的效果。

在Z-blog中添加meta标签主要涉及到这几个页面:default.html,single.html,catalog.html,tags.html,search.html,以下步骤,都是先用记事本打开相应的页面然后在<head></head>之间添加的。

1.在default.html中添加meta标签:
    <meta name=”description” content=”在这里填写你的Z-Blog的描述,会在Google搜索中出现” />
    <meta name=”keywords” content=”在这里填写你的Z-Blog站内关键字” />

2.在single.html中添加meta标签:
    <meta name=”description” content=”<#ZC_BLOG_TITLE#><#ZC_MSG044#><#BlogTitle#>” />
    <meta name=”keywords” content=”<#BlogTitle#>,<#article/tagtoname#>” />

注:<#ZC_BLOG_TITLE#>就是博客标题,<#ZC_MSG044#>就是“-”,<#BlogTitle#>如果在default.html就是BLOG的子标题,在single.html就是文章的标题,在catalog.html就是相关分类等的名称,<#article/tagtoname#>就是文章的tags。

3.在catalog.html、tags.html中添加meta标签:
    <meta name=”description” content=”<#ZC_BLOG_TITLE#><#ZC_MSG044#><#BlogTitle#>” />
    <meta name=”keywords” content=”<#BlogTitle#>,blog” />

4.在search.html中添加meta标签:
    <meta name=”description” content=”<#ZC_BLOG_TITLE#><#ZC_MSG044#><#BlogTitle#>” />
    <meta name=”keywords” content=”Search,<#ZC_BLOG_TITLE#>” />


原创文章如转载,请注明:转载 彩瓦机械资料站 [ http://www.caiwaji.net/ ]
本文链接地址:http://www.caiwaji.net/post/13.html

Related Items

Categories : 彩瓦机 Tags :
Comments
2014/8/18 11:47:00

谢谢分享
http://www.lubanluban.com

Posted by 匿名网友 Gravatar Icon

发布评论

Or, take a look at Archives and Categories

Category

Archives