In website operation, Title (title), Keywords (keywords) and Description (description) - abbreviated as TDK, are the core elements of Search Engine Optimization (SEO).They directly affect the display of websites on search engine result pages (SERP), thereby determining the click-through rate and traffic of the website.For content-rich websites, manually setting TDK for each page is neither realistic nor efficient.AnQiCMS as a powerful content management system, provides flexible mechanisms to help users dynamically generate and manage these key SEO elements, thereby achieving more refined optimization.

The Importance of TDK in SEO

Before delving into how AnQiCMS dynamically generates TDK, it is necessary to briefly review the SEO value of TDK.

  • Title (Title)This is the information that users see first in the search engine, and it is also one of the most important bases for search engines to judge the theme of the page.An meticulously written title can accurately convey the page content, attract user clicks, and include core keywords to help improve relevance rankings.
  • Keywords (Keywords)Although modern search engines have reduced the weight of Keywords meta tags, they can still be used as auxiliary information to help search engines understand the focus of page content.It is more important that in AnQiCMS, the "Document Keywords" field during content management can provide richer SEO information for content models (such as articles, products) and be effectively utilized.
  • Description (Description):The page description meta tag is usually displayed as a summary (Snippet) in the search engine results page.A description that is attractive and contains keywords, capable of arousing user interest and improving click-through rate.

The core value of dynamically generating TDK is that it allows each page of the website to have a unique and highly relevant TDK, avoiding duplicate content issues and greatly improving the overall SEO performance of the website.

AnQiCMS in English

AnQiCMS divides the TDK configuration into global settings and fine-grained management at the content level, ensuring comprehensive coverage from macro to micro.

Firstly, for the website'sHome TDKYou can uniformly configure it under 'Home TDK Settings' in the 'Background Settings' on the backend.Here you can set the title, keywords, and description of the homepage, laying the SEO foundation for the entrance page of the website.These settings are usually fixed and unchangeable, representing the core theme and brand information of the website.

The dynamic TDK generation of website content mainly relies on AnQiCMSContent ModelThe powerful function.Whether it is an article detail page, product detail page, category list page, or tag page and single page, AnQiCMS provides the corresponding fields to allow users to customize their TDK information for each content item.

  • Articles and productsIn "add documentwhere the 'SEO title' allows you to set a special title for this article/product for search engines, distinguishing it from the H1 title displayed on the page.“Document keywords” are used for inputting keywords highly relevant to the content, while “Document summary” provides the content source for the page Description.If the 'Document Summary' is left blank, the system will usually automatically extract the first 150 words of the article content as a description.
  • Category PageIn the "Document ClassificationThese will be used for the category list page's TDK.When the 'Category Introduction' is not filled in, the system will use the category name as part of the Title and try to extract the Description from other metadata.
  • Tab Page:Similar to the category page, in the addition or editing of "Document Tags
  • single pageFor independent pages such as 'About Us' and 'Contact Information', you can also independently set 'SEO Title', 'Keywords', and 'Single Page Description' in 'Page Management' to ensure that each single page has its own exclusive TDK.

This hierarchical management method allows website administrators to flexibly set TDK based on the importance and characteristics of the content, thus maximizing SEO benefits.

In the template, dynamically call TDK:{% tdk %}The art of tags

One of the core charms of AnQiCMS lies in its concise and efficient template tag system. To achieve dynamic generation and display of TDK,{% tdk %}Tags are your helpful assistants. This versatile TDK tag can intelligently read the corresponding TDK data based on the current page type (homepage, article page, category page, etc.) and output it.

通常,You will place these tags in the template file (for examplebase.html, that is, the general header template of the website) of<head>areas.

1. Dynamically generate the page title (Title)

of the page<title>The label is the most important aspect of SEO. Use{% tdk with name="Title" %}It can obtain the most appropriate title of the current page. AnQiCMS provides additional parameters to make the generation of titles more intelligent and flexible:

  • Default Call:{% tdk with name="Title" %}This will intelligently retrieve the title of the current page.For example, on the article detail page, it will display the "SEO title" of the article (if set) or the article title; on the category page, it will display the category name; on the homepage, it will display the title configured in the homepage TDK.
  • Add Suffix to Website Name:siteName=true: You usually want the brand name of the website to be included in the title.{% tdk with name="Title" siteName=true %}The website name configured in the "Global Settings" will be automatically appended after the page title.
  • Custom delimiter:sep=" - ": You can access the category information through.sepThe parameter custom page title and website name separator, default is hyphen. For example,{% tdk with name="Title" siteName=true sep=" | " %}It will use " | " as the separator.
  • Display parent category title:showParent=trueIn some category list pages or detail pages, you may want the title to include the name of its parent category to provide more complete hierarchical information.{% tdk with name="Title" showParent=true %}This can achieve this requirement.

An example of a typical Title tag application is as follows:

<title>{% tdk with name="Title" siteName=true sep=" - " %}</title>

This line of code will intelligently output titles like "Article Title - Website Name

2. English dynamic generation of page keywords (Keywords)

Keyword meta tags may not have the weight they once had, but they still provide contextual information.

<meta name="keywords" content="{% tdk with name="Keywords" %}">

This label will dynamically obtain the "document keywordsIf the page does not set a specific keyword, it may be left blank or try to extract it from the content.,Separate it to ensure its accuracy.

3. Dynamically generate page description (Description)

The page description meta tag is the key information that attracts users to click. It should be concise and summarize the content of the page.

<meta name="description" content="{% tdk with name="Description" %}">

{% tdk with name="Description" %}Extracts the corresponding content items (articles, products, categories, tags, single pages) set "Document Summary