Search engine optimization (SEO) is an indispensable part of website operation, and the Title (title), Description (description), and Keywords (keywords) - known as TDK - on the website page are the foundation of SEO.They are the first step for search engines to understand the content of a page and a key factor for users to decide whether to click in 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 introduce how to set up and effectively use TDK in AnQiCMS, so that your website can perform better in search engines.

TDK: The 'business card' of the page in front of the search engine

TDK is like the first business card your website page hands out to the search engine.

  • Title (Title)This is the most important element on the search engine results page, which is the first text that users see. A good title not only accurately summarizes the content of the page but also attracts 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.What is more important, 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 beginning, providing TDK configuration options from global to specific pages, and supporting features such as pseudo-static and 301 redirection, laying a solid foundation for the website's SEO optimization.

Set TDK in AnQiCMS backend

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

1. Set the home page TDK

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

  • Operation path: Enter AnQiCMS backend, navigate to "Backend Settings" -> "Homepage TDK Settings".
  • Configure content:
    • Home title: This is the website homepage<title>The content of the label should include your brand name and core business keywords.
    • Home page keywords: 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.
    • Home page description: Concisely summarize the main business or content of the website, usually within 150 words, to attract users to click.

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

2. Set the TDK for category pages.

The category page of a website is often an important entry point for users to browse and for search engines to crawl. 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 unique Title for the category. If it is not filled in, the system may use the category name as the default title.
    • KeywordsFill in keywords directly related to the content of this category, separated by English commas,Separated.
    • Category introductionThis field content will be used as the Meta Description of the category page. It is recommended to write it carefully, summarize the category content, and enhance the user's willingness to click.

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

3. Set the TDK for a single page.

For 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: Used to customize the title of this single page.
    • Keywords: Fill in keywords related to the content of this single page.
    • Single page introductionThis field's content will be used as the single page's Meta Description.

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 the single piece of content.

  • Operation pathEnter "Content Management" -> "Publish Document" (or edit an existing document).
  • Configure contentIn the "Other Parameters" section of the document editing page, you will see:
    • SEO titleBy default, the document title will be used as the page's Title.But by the SEO title field, you can display a more optimized, more attractive custom title for search engines.
    • Document keywordFill in keywords highly relevant to the document content, separated by English commas,Separate. AnQiCMS also provides a keyword library management function for easy selection and management of keywords.
    • Document IntroductionThis 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 not as accurate and attractive as writing it manually.

Display TDK in AnQiCMS template

AnQiCMS template system uses syntax similar to Django template engine, through 'Universal TDK tag'{% tdk %}You can flexibly call and display the page's TDK information in the template.The beauty of this tag lies in its ability to intelligently retrieve the TDK data of the current page, whether you are on the homepage, category page, single page, or document detail page.

These tags are usually placed in template files (such asbase.htmlor the header template of each page) of<head>Within the area.

1. Display of the page title (Title)

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

2. Display page keywords (Keywords)

<meta name="keywords" content="{% tdk with name="Keywords" %}">
  • name="Keywords"Specify the page keywords. Tags will automatically retrieve 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 retrieval of the page description. The tag will intelligently retrieve the corresponding description content of the current page.

4. Display of canonical link (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.
  • By{%- if canonical %}Determine if there is a specification link. If it exists, output it to avoid outputting empty.link.

Configure these TDK tags uniformly in the template.<head>Part, it can ensure that the entire site pages can display their TDK information correctly and dynamically, providing clear page signals to search engines.

Practical tips and suggestions for setting TDK

Setting TDK reasonably is the key to improving SEO effectiveness. Here are some practical suggestions:

  1. UniqueEnsure that each page's Title and Description are unique. Duplicate TDK will weaken the SEO effect of the page.
  2. Relevance first: The 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:
    • Medium length: It is recommended to be within 60-80 characters, as longer ones may be truncated by search engines.
    • Keyword PriorityThe most important keywords should be placed at the beginning of the Title.
    • Contains brand wordsAdd the brand name at the end of the title to enhance brand exposure and recognition.
    • Attract clicksCombine user search intent, use numbers, unique selling points, or questions to attract users.
  4. Write Description:
    • Medium length: Usually within 120-160 characters, ensuring it can be fully displayed in search results.
    • Summarize the content.Summarize the core content of the page in a few sentences to stimulate user interest.
    • Integrate keywordsNaturally integrate the core keywords of the page but avoid repetition.
    • Call to ActionIf applicable, you can add a simple call to action (such as 'Learn more', 'Buy now').
  5. Keyword writing:
    • SimplifySelect 3-5 of the most core keywords that can represent the page content.
    • Avoid cluttering.Do not list a large number of keywords, as this will be regarded as cheating by search engines.
    • Multi-word phraseConsider using some long-tail keywords or multi-word phrases to improve precise matching.
  6. Utilize the automation 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. Try to write manually to achieve **effect.**
    • Combine AnQiCMS's pseudo-static function to generate more descriptive and keyword-rich URLs, further enhancing SEO friendliness.

Summary

TDK is the foundation of website SEO, and AnQiCMS provides users with a comprehensive and intuitive TDK management and flexible template calling mechanism.By reasonably configuring the homepage, category page, single page, and document detail page TDK, and combining 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.


Frequently Asked Questions (FAQ)

Q1: Why did I set TDK, but the search engine still shows a different one?

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

Q2: Will AnQiCMS automatically generate TDK?

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