ZBlog is a good website template. Currently, our company has two websites ("Chat Robot" http://im.abot.cn and "Mail Bulk" http://qunfa.abot.cn) both of which use this template. , maintenance and modification are very convenient. However, if you want to use Zblog to obtain better SEO results, targeted modifications are necessary. As for how to put the article title first, we won’t go into details here. There are many on the Internet, just search on Baidu. Of course, if you really don’t understand, you can ask our company’s SEOER. Here I will talk about the technique I used to modify the description field of each article page on the content page to automatically read the article introduction.
We know that the article introduction in ZBlog has HTML tags, which can define the color, size and other information of this text, and even define Table. If this information is placed in the description tag in meta, it will have disastrous consequences. , therefore, the first step is to filter out these tags. This is not difficult, ZBlog provides a ready-made function TransferHTML, just call it.
Thirdly, we need to control the length of the description content. Conventional search engine optimization recommends that this article should not exceed 200. We can set it to 190. That is, to intercept the content after TransferHTML, there is a ready-made function in VBScript. As everyone knows, it is Left.
The last step is to put the finished content into the template. Here we need to add a new tag. I set article/intro_text. So in the single.html file in the Template directory, add between the heads:
<meta name="description" content="<#article/intro_text#>" />
At this point, the optimization is completed. The first and second steps are to modify FUNCTIONc_system_lib.asp, the code is as follows:
aryTemplateTagsName(50)="article/intro_text"
aryTemplateTagsValue(50)=Left(TransferHTML(HtmlIntro, "[nohtml]"), 190)
As for the effect, you can go to the "bulk email" website I have made to see it.
It should be pointed out that similar problems have been mentioned in the forum before, and there are two general solutions:
1. Add the following code to the single.html file
<meta name="description" content="<#BlogTitle#>">
The description of the web page generated in this way is the same as the text title. As an SEO, this effect is definitely unacceptable.
2. If you want to control the content of the article introduction and ensure that no HTML tags appear, add the following code to the single.html file and just change the tags.
<meta name="description" content="<#article/intro#>">
If there are HTML tags automatically added by FCKEditer, it will have disastrous effects on a web page, so everyone should use it with caution.
Source http://www.qunfa158.com Original post address