DEDECMS Head tag (title, keywords, description tag) (borrowed)

Source: Internet
Author: User

First talk about DEDECMS head title, keywords, describe the role of tags
I believe there is a lot of such information on the Internet, so why do I have to write this? Because this is more important for us beginners, because it is necessary to use these tags for SEO.
First I write ere page header tag
I'll write these labels down first so that we can read them conveniently.
<title>{dede:global.cfg_webname/}</title>
<meta name= "description" content= "{dede:global.cfg_description/}"/>
<meta name= "keywords" content= "{dede:global.cfg_keywords/}"/>
Here {dede:global.cfg_webname/} is the meaning of the site name. Hehe, the text shown here is appearing in the Search engine title section. The more important part.
{dede:global.cfg_description/} This is a description tag. Oh, this is appearing in the search engine simple text introduction. is also a more important part.
{dede:global.cfg_keywords/} here is the keyword tag that everyone should know, is the key word we often say.
These tag contents can be set in the background.
Below is the cover channel, the list page, the content Page header label, does not introduce one by one, hoped that the beginner like us can master skillfully.
DEDECMS Website Home Header label:
<title>{dede:global.cfg_webname/}</title>
<meta name= "description" content= "{dede:global.cfg_description/}"/>
<meta name= "keywords" content= "{dede:global.cfg_keywords/}"/>
Dedecms Cover Template Header label:
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name= "keywords" content= "{Dede:field name=keywords/}"/>
<meta name= "description" content= "{Dede:field name=description function=html2text (@me)/}"/>
DEDECMS List page Label:

<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name= "keywords" content= "{Dede:field name=keywords/}"/>
<meta name= "description" content= "{Dede:field name=description function=html2text (@me)/}"/>
Dedecms article page Tags:
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name= "keywords" content= "{dede:field.keywords/}"/>
<meta name= "description" content= "{dede:field.description function=html2text (@me)/}"/>
Summary: Dedecms provides a title tag for the first page, theme cover, List page, article page four pages, so that we could optimize the different topics. We beginners only step by step to learn the label, in order to make the site we want.

Original address: http://blog.chinaunix.net/uid-22672540-id-1771540.html

DEDECMS Head tag (title, keywords, description tag) (borrowed)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.