Z-Blog是国内最优秀的ASP博客程序之一,可能很多人觉得Z-Blog不好用,可是我却认为Z-Blog容易上手、可自定义的功能很多、耐玩,特别Z-Blog 1.8提供的全新主题管理系统以及全自动在线安装主题功能,给所有的ZBLOGGER带来了莫大的惊喜。

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

在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#>” />

PS:Cloudream最近开发了一个TitleSEO 0.2 for Z-Blog 1.8插件,可以将默认网页标题更换为“文章标题 – 分类名 – Blog名”顺序,有利于搜索引擎排名,有兴趣的朋友可以去看看。

Comments are closed.