Search Engine Optimization (SEO) is an indispensable part of website operation, and the Title (title), Description (description), and Keywords (keywords) - abbreviated as TDK - are the foundation of SEO.They are the first step for search engines to understand page content, and also the key factor for users to decide whether to click on the search results.For AnQiCMS users, the system is built with powerful and flexible TDK setting functions that can help you easily create search engine-friendly pages.

This article will give a detailed introduction on how to set up and effectively use TDK in AnQiCMS, so that your website can perform better in search engines.

TDK:Page 's 'business card' in front of search engines

TDK is like the first business card your website page hands over to search engines.

  • Title (Title)This is the most important element in the search engine results page, and it is the first text users see. A good title should not only accurately summarize the page content but also attract users to click.
  • Description (Description):Although it no longer directly affects ranking, a high-quality description is the 'slogan' on the search results page, which can effectively improve click-through rate (CTR) and allow users to choose your page among many results.
  • Keywords (Keywords)Although modern search engines no longer heavily rely on Meta Keywords tags, AnQiCMS still provides a setting entry as an auxiliary for content classification and self-reminder.It is more important that in AnQiCMS, the advanced SEO tools such as keyword library management and anchor text setting, combined with TDK strategy, can play a greater role.

AnQiCMS was designed with SEO friendliness in mind from the very beginning, providing options for TDK configuration from global to specific pages, and supporting features such as pseudo-static and 301 redirection, laying a solid foundation for website SEO optimization.

In AnQiCMS backend settings TDK

AnQiCMS provides multi-level TDK settings to ensure you can manage the SEO information of each page accurately.

1. Set the home page TDK of the website

The TDK of the home page is the facade of the entire website, usually configured in the global settings.

  • Operation path:Enter AnQiCMS background, navigate to 'Background Settings' -> 'Homepage TDK Settings'.
  • Configure content:
    • Home Page Title:This is the website homepage<title>Label content should include your brand name and core business keywords.
    • Home page keyword: Enter the main keywords of the website, separated by English commas.,Separate. It is recommended to choose 3-5 words highly relevant to the overall theme of the website.
    • Homepage description: Concisely summarize the main business or content of the website, usually within 150 words, and attract users to click.

These settings will be used as the default TDK information for the website homepage and will be displayed to search engines when users visit the homepage.

2. Set the TDK for the category page.

The category page of a website is often an important entry for user browsing and search engine crawling. It is crucial to set independent TDK for each category.

  • Operation path:Enter 'Content Management' -> 'Document Category', edit or add a new category.
  • Configure content:In the 'Other Parameters' section of the category editing page, you will see:
    • SEO titleThis field allows you to set a dedicated Title for the category. If not filled in, the system may use the category name as the default title.
    • KeywordsEnter keywords directly related to the category content, separated by English commas,.
    • Category IntroductionThis field content will be used as the Meta Description for the category page. It is recommended to write it carefully, summarize the category content, and enhance user click intention.

Through configuring TDK separately for each category, you can ensure that the SEO information of each category page is highly relevant.

3. Set TDK for a single page

For single pages such as "About Us" and "Contact Us", TDK settings are also required.

  • Operation path:Enter "Page Resources" -> "Page Management", edit or add a new single page.
  • Configure content:In the single page editing page, you will find:
    • SEO title:用于自定义该单页面的Title in English。
    • Keywords:填写与该单页面内容相关的关键词 in English。
    • Single page introductionThis field content will be used as the Meta Description of the single page.

4. Set the TDK of the document detail page.

Each document's (article, product, etc.) detail page is the smallest unit of website content, and the accuracy of its TDK directly affects the search visibility of individual content.

  • Operation path:Enter "Content Management" -> "Publish Document" (or edit an existing document).
  • Configure content:In the "Other Parameters" section of the document editing page, you will see:
    • SEO titleDefault settings, the document title will be used as the page Title.But through the SEO title field, you can display a more optimized and attractive custom title for search engines.
    • Document keywords:Fill in keywords highly relevant to the document content, separated by English commas,Separate. AnQiCMS also provides keyword library management functions to facilitate your selection and management of keywords.
    • Document SummaryThis field content will be used as Meta Description.If left blank, AnQiCMS will automatically extract the first 150 characters from the document content as a description, but this is usually less accurate and attractive than writing it manually.

In AnQiCMS template, TDK is displayed

AnQiCMS template system adopts syntax similar to Django template engine, through 'universal TDK tag'{% tdk %}You can flexibly call and display the page TDK information in the template.The wonder of this tag is that, no matter whether you are on the home page, category page, single page, or document detail page, it can intelligently obtain the TDK data of the current page.

通常,这些标签会被放置在模板文件(如base.html或每个页面的头部模板)的<head>areas.

1. 页面标题(Title)的显示

<title>{% tdk with name="Title" siteName=true sep=" - " %}</title>
  • name="Title":指定获取页面标题。
  • siteName=trueThis will automatically append the website name to the page title, for example, “Article Title - Your Website Name”. This helps with brand exposure.
  • sep=" - ":Specify the separator between the website name and page title, the default is a hyphen-.

2. Display of page keywords (Keywords)

<meta name="keywords" content="{% tdk with name="Keywords" %}">
  • name="Keywords":Specify the page keyword. The tag will automatically obtain the keyword settings corresponding to the current page.

3. Display of Page Description (Description)

<meta name="description" content="{% tdk with name="Description" %}">
  • name="Description":Specify the page description. The tag will intelligently obtain the corresponding description content of the current page.

4. Display of the canonical URL

The canonical URL is an important concept in SEO, used to inform search engines which is the 'authoritative' version of the content, to avoid duplicate content issues.AnQiCMS also supports its configuration and display.

{%- tdk canonical with name="CanonicalUrl" %}
{%- if canonical %}
<link rel="canonical" href="{{canonical}}" />
{%- endif %}
  • name="CanonicalUrl":Get the specification link of the current page.
  • Pass{%- if canonical %}Determine if there is a specification link, and if so, output it to avoid outputting an empty one.linkLabel.

Unifiedly configure these TDK tags in the template.<head>Part, it can ensure that the entire website page can display its TDK information correctly and dynamically, providing clear page signals to search engines.

Practical tips and suggestions for TDK settings

Reasonable setting of TDK is the key to improving SEO effect. Here are some practical suggestions:

  1. UniqueEnsure that each page's Title and Description are unique. Duplicate TDK will weaken the page's SEO effect.
  2. Relevance first:Title, Description and Keywords must be highly relevant to the content of the current page. Avoid using unrelated words to attract clicks.
  3. Title writing:
    • Moderate lengthIt is recommended to be within 60-80 characters, as it will be truncated by search engines if too long.
    • Keyword prominenceThe most important keywords should be placed at the beginning of the Title.
    • Include brand wordsAdd the brand name at the end of the title to enhance brand exposure and recognition.
    • Attract clicks:Combine user search intent, using numbers, unique selling points, or questions to attract users.
  4. Description writing:
    • Moderate length:English typically within 120-160 characters, ensuring it is fully displayed in search results.
    • Summary content:Use a brief and concise sentence to summarize the core content of the page, stimulate user interest.
    • Integrate keywords:Naturally integrate the core keywords of the page, but avoid clutter.
    • Call to ActionIf applicable, you can add a simple call to action (such as "Learn More
  5. Keywords writing:
    • Simplify:Choose 3-5 core keywords that best represent the page content.
    • Avoid keyword stuffing.:Do not list a large number of keywords, as this may be considered as cheating behavior by search engines.
    • Multi-word phraseConsider using some long-tail keywords or multi-word phrases to improve the accuracy of matching.
  6. Using the automated features of AnQiCMS:
    • If the document summary or category summary is not manually filled in, AnQiCMS will automatically extract the content, but this may not be optimized enough. Try to write manually to achieve **the effect**.
    • Combine the pseudo-static function of AnQiCMS to generate more descriptive and keyword-containing URLs, further enhancing SEO friendliness.

Summary

TDK is the cornerstone of website SEO, and AnQiCMS provides users with comprehensive, intuitive TDK management and flexible template calling mechanism.Through reasonable configuration of the homepage, category page, single page, and document detail page TDK, and combined with other advanced SEO tools provided by AnQiCMS, you will be able to effectively improve the visibility and click-through rate of the website in search engines, laying a solid foundation for the successful operation of the website.


Common Questions (FAQ)

Q1: Why does the search engine display a different TDK than I set?

A1:Search engines (especially Google and Baidu) may dynamically adjust or rewrite the Title and Description based on the user's search query, the quality of the page content, and other factors to provide the most relevant search results.This is usually to better match the user's intention.If the TDK you set is not highly relevant to the page content or does not accurately summarize the page, search engines are more likely to generate it themselves.Therefore, ensuring your TDK is high-quality, highly relevant, and attractive is the key to reducing the probability of search engine rewriting.

Q2: Will AnQiCMS automatically generate TDK?

A2:Yes, AnQiCMS has certain automatic functions. For example, if you do not fill in 'Document Introduction' or 'Category Introduction' when publishing documents or editing categories, the system