花了一些时间把博客建起来了,用的程序为国内知名asp程序zblog。但程序模版中对分类、文章的titke、keywords、description的优化支持不太好,需要进行修改让其SEO方面更符合搜索引擎。
下面介绍下本博客中简单修改的几个地方(大部分网上有需要),希望对使用本博客程序的朋友有帮助:
主要修改的模版有default.html catalog.html single.html search.html tags.html这五个。
一、在default.html模板里<head></head>部分加入
<meta name="Description" content="你自己的博客描述"/>
<meta name="keywords" content="关键词"/>
<title></title>改为<title><#ZC_BLOG_TITLE#></title>
二、在catalog.html模板里找到原来的<titel></title>删除
<head></head>中加入
<title><#BlogTitle#><#ZC_MSG044#><#ZC_BLOG_TITLE#></title>
<meta name="description" content="<#ZC_BLOG_TITLE#><#ZC_MSG044#><#BlogTitle#>"/>
<meta name="keywords" content="<#BlogTitle#>" />
三、在single.html里删除原来的<titel></title>
使用的NOBIRDArticleSEO插件,增加description、keywords。
四、search.html模板里加入
<meta name="description" content="<#ZC_BLOG_TITLE#><#ZC_MSG044#><#BlogTitle#>"/>
<meta name="keywords" content="Search,<#ZC_BLOG_TITLE#>"/>
五、tags.html模板里加入
<meta name="description" content="<#ZC_BLOG_TITLE#><#ZC_MSG044#><#BlogTitle#>"/>
<meta name="keywords" content="<#BlogTitle#>,blog" />
对zblog进行SEO优化其实不难,关键是要认识各个模块的作用。