王尘宇
王尘宇

如何在Z-blog-中加description,keywords?

访客1310

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

标签:zblog优化

抱歉,评论功能暂时关闭!