In website operation, the display effect of the page in search results is crucial for attracting users and increasing traffic.Among them, TDK (Title, Description, Keywords) is the core element that search engines understand the content of the page and decide how to display it.AnQiCMS (AnQiCMS) provides users with flexible and powerful TDK customization features, helping us refine the page optimization to achieve better performance in search results.
This article will deeply explore how to customize TDK in Anqi CMS and combine actual operations to provide you with a set of effective optimization strategies.
Understand the importance of TDK.
Before starting to customize TDK, let's quickly review their meanings and their value to SEO:
- Title (Title):This is the most prominent part displayed on the search engine results page (SERP), as well as the name displayed in the browser tab.A good title can attract users to click and clearly convey the theme of the page.
- Description (description):The description is usually displayed below the title in the SERP, and is a brief summary of the page content.It does not directly affect ranking, but it can greatly influence the user's click intention, therefore, it is crucial to write an engaging description.
- Keywords (keywords):The keyword is the term or phrase you think users may use when searching for related content.Although modern search engines have reduced the weight of keyword tags, they still help search engines better understand the theme of the page and play a role in some vertical searches.
The strength of AnQi CMS lies in its support for global TDK settings, as well as its ability to customize content of different types (such as articles, categories, tags, and single pages), even allowing for more advanced control at the template level.
Custom TDK in AnQi CMS: Hierarchical Management
AnQi CMS divides the custom TDK into several levels, allowing you to flexibly configure according to your actual needs.
1. Website Global TDK Settings (Homepage TDK)
This is the facade of your website, usually used to define the TDK information of the homepage. You can easily find and configure these settings in AnQi CMS:
- Operation path:Log in to the Anqi CMS backend, navigate to "Backend Settings" -> "Home TDK Settings".
- Configuration items:
- Home title:Enter the core title of your website's homepage. It will be displayed on the homepage.
<title>in the tag. - Homepage keywords: Enter the core keywords related to your website's overall business or theme. They will be displayed on the homepage.
<meta name="keywords" content="">in the tag. - Home page description:Write a concise and engaging text that summarizes the main content and value of your website. This description will be displayed on the homepage.
<meta name="description" content="">in the tag.
- Home title:Enter the core title of your website's homepage. It will be displayed on the homepage.
These global settings are the foundation of the entire website, especially crucial for the SEO of the homepage.
2. Optimization of TDK for content detail pages.
Except for the homepage, each article, product, category, tag, and even single page on the website has an independent TDK configuration option.This level of granularity is the key to boosting long-tail traffic and covering a wider range of user needs.
a. Article/Product Detail Page's TDK
In Anqi CMS, whether you are publishing new articles or editing existing articles/products, you can find the TDK settings area in the "Add/Edit Document" interface.
- Operation path:Log in to the AnQi CMS backend, navigate to 'Content Management' -> 'Document Management' -> 'Add/Edit Document'.
- Configuration items:Scroll down on the edit page to find the "Other Parameters" area:
- SEO Title:If you wish to change the current page's
<title>Label content is distinct from the title of the article/product itself, and can be customized here. This is very useful for optimizing page titles for specific keywords. - Document keywords:Enter keywords or phrases highly relevant to the current article/product content. It is recommended to use English commas
,Separate multiple keywords to comply with search engine habits - Document summary:This content will automatically be displayed on the page
descriptionLabel. If you do not fill it in, the system will automatically extract the first 150 words of the article content as a summary. It is recommended to write it manually to make it more attractive.
- SEO Title:If you wish to change the current page's
b. TDK of the category page.
Category pages usually aggregate multiple articles or products under a theme, and their TDK should reflect the breadth and representativeness of the category.
- Operation path:Log in to the Anqi CMS backend, navigate to "Content Management" -> "Document Category" -> "Add/Edit Category".
- Configuration items:Scroll down on the edit page to find the "Other Parameters" area:
- SEO Title:Used for customizing category pages.
<title>. - Keywords:Enter the core keywords related to this category.
- Category introduction:The content here will serve as the
description.
- SEO Title:Used for customizing category pages.
TDK of the tag page.
The tag page is usually used to aggregate content with the same 'tag' attribute, and its TDK should be more focused and specific.
- Operation path:Log in to the Anqi CMS backend, navigate to 'Content Management' -> 'Document Tags' -> 'Add/Edit Tag'.
- Configuration items:
- SEO Title:Used to customize the tag page.
<title>. - Tag keywords:Enter the most relevant specific keyword for this tag.
- Tag description:The content here will be used as the
description.
- SEO Title:Used to customize the tag page.
d. TDK for a single page
About Us, Contact Us, and other independent pages, although the content is relatively fixed, their TDK still needs to be carefully set.
- Operation path:Log in to the AnQi CMS backend, navigate to 'Page Resources' -> 'Page Management' -> 'Add/Edit Single Page'.
- Configuration items:
- SEO Title:Used to customize single pages.
<title>. - Keywords:Enter keywords related to the content of this single page.
- Single page introduction:The content here will be used as the
description.
- SEO Title:Used to customize single pages.
3. Flexible application of TDK at the template level (advanced control)
For advanced users familiar with template development, Anqi CMS also providestdkThe universal tag allows you to directly control the output method of TDK in the template file, achieving a higher degree of customization.
This tag automatically retrieves and outputs the corresponding TDK information based on the type of the current page (home page, article, category, tag, etc.) and the backend configuration.
Basic usage:In your template files (such as
head.htmlorbase.html), it is usually the following method to output TDK:<title>{% tdk with name="Title" siteName=true %}</title> <meta name="keywords" content="{% tdk with name="Keywords" %}"> <meta name="description" content="{% tdk with name="Description" %}">{% tdk with name="Title" siteName=true %}This will output the current page title and automatically append the "Website Name" configured in the background "Global Function Settings" (bysiteName=trueparameters control). You can also usesep="_"Custom separator between title and website name.{% tdk with name="Keywords" %}: Output the keywords of the current page.{% tdk with name="Description" %}: Output the description of the current page.
The application of the canonical URL specification:To avoid search engines from making incorrect judgments due to content repetition (for example, the same article accessed through different URLs), Canonical URL (standard link) is a very useful tool. Anqi CMS also supports outputting standard links in templates:
{%- tdk canonical with name="CanonicalUrl" %} {%- if canonical %} <link rel="canonical" href="{{canonical}}" /> {%- endif %}This code will first try to get the specification link of the current page. If the background has set a specification link for this page, it will be output to the page's
<head>Chinese. This is very critical for precise SEO control.
TDK content writing skills
It is not enough to know where to set TDK, how to write high-quality TDK content is the core of optimization.
- Title (Title):
- Uniqueness and accuracy:Ensure that each page title is unique and accurately reflects the content of the page.
- Keyword integration:Naturally integrate the core keywords into the first half of the title, but avoid keyword stuffing.
- Attract clicks:The title should be attractive,激发用户点击的欲望,can be added with numbers, questions, emotional words, etc. * **