The meta information of disucz can be automatically generated. I thought it would be optimized, but upon closer inspection, it turns out there are many problems.
#First look at the default settings of discuz:
This template is applied to three types of pages: home page, section list page, post content page, which will cause some problems.
1. seotitle is an additional word for the background title, which will make the title in all post pages become title + page name + site name + title additional words, which is too lengthy and the title repetition rate is too high (of course, there will be no problem if this content is not set in the background) ).
2. seokeywords is a keyword set globally in the background, which will be repeated in all pages of the site. The keywords have no personality and are piled up.
3.seodescription: The description attribute set globally in the background will be displayed on the homepage and each section list page.
#After optimization, each page only displays its own unique and concise title and meta information:
1. Home page: title is the site name + title additional words; keywords and description are the values in the background "Global" Optimization Settings
2. List page: title is the section name; meta is the "section keywords and section introduction" set in the background "section" section management"
3. Post page: title is the title + site name; keywords is the tag tag; description is the original automatically intercepted content
#Modification method
Of course, these values are all originally implemented by DZ, but the display is a bit confusing. Some variables have also changed their uses in different pages. If it is troublesome to modify each program, a non-standard method is used here, and only one file needs to be modified. :
Add the original template file header.htm to
Author: SEO Xiaogong Original Post: http://seo.banmutian.org/
All rights reserved. Please retain this statement and indicate the author, source and original text link when reprinting.