When building a website, Search Engine Optimization (SEO) is the key to ensuring that content is discovered by search engines and attracts potential visitors.And SEO title (Title), keywords (Keywords), and description (Description), abbreviated as TDK, is one of the most fundamental and important elements in website optimization.They directly affect the way a website is displayed in search results and the click-through rate.

AnQiCMS was designed with SEO-friendliness in mind from the beginning, built-in with comprehensive TDK setting functions, allowing you to easily perform fine-grained SEO configuration for all levels of your website, and flexibly display it in the front-end template.

Global website TDK settings

First, let's take a look at the TDK settings for the website homepage or global level. This is usually a reflection of the core slogan and main keywords of your website brand.

Log in to the AnQiCMS admin interface, you will find a menu item named “Backend settings”. Click to enter and select “Home TDK settingsHere, you can see the three main input boxes:

  • Home title:This is the main title displayed on your website's homepage in the browser tab and search engine results page (SERP).A good homepage title should include your core brand name and the most important keywords, while being attractive to encourage users to click.
  • Homepage keywords: These are words highly related to your website content. Although modern search engines have reduced the weight of keywords, a reasonable setting still helps search engines understand the theme of your website.Suggest using commas to separate multiple keywords.
  • Home page description:This is usually a brief summary displayed below the title on the search engine results page.It should succinctly summarize the main content of your website, the services or product advantages provided, to attract users to click.

These global settings will be used as the default TDK for the website, applied to pages that do not have a separate TDK set.

精细化配置 of TDK at content level

The strength of AnQiCMS lies in its ability to allow independent TTDK configuration for each content type on the website.This means you can tailor the most suitable TDK according to the specific content of articles, products, categories, single pages, even tags, thereby achieving more accurate SEO optimization.

1. TDK settings for documents (articles and products)

Whether it is to publish a new article or product, AnQiCMS provides detailed SEO settings options.

When you are in theContent Managementselect thePublish documentOr when editing an existing document, in the "Other parameters" section (usually expanded) you will see fields related to TDK:

  • SEO Title:The title here will override the global settings and the title of the document itself, serving as the exclusive title displayed in the search engine results.If you want the document title to be different from the actual title displayed on the page, you can set it here.
  • Document keywords:For specific keywords of the current article or product, it is also recommended to separate them with English commas.
  • Document summary:Write a summary that accurately reflects the core content of the article or product. If you leave it blank, the system will automatically extract the first 150 characters of the article content as a description.

2. Category page TDK settings

The category page of the website (such as "News Dynamic", "Product Category") also needs to have a unique TDK to help search engines understand the content theme under this category.

In theContent ManagementSelect from the menuDocument CategoryThen click on the category you want to edit. In the category edit page, you can find it in the "Other parameters" section.

  • SEO Title:Custom title for the category page, usually including the category name and some general keywords.
  • Keywords:Overall keywords for the content under the category.
  • Category introduction:Describes the scope and characteristics of the content on the category page.

3. TDK settings for single-page

The TDK settings are also important for single pages such as "About Us", "Contact Us", etc.

Through "Page Resources" menu under the "Page ManagementYou can edit any single page. At the relevant location on the editing page, you can set:

  • SEO Title:The exclusive title of the single page.
  • Keywords:Keywords for the content of the single page.
  • Single page introduction:Summary of the content of the single page.

4. Tag tab TDK settings

AnQiCMS also supports setting independent TDK for Tag tag pages, which is very beneficial for Tag pages aggregating specific thematic content.

In theContent Management"under the "Document TagIn editing a tag, you will find:

  • SEO Title:The title of the tag page.
  • Tag keywords:Keywords associated with the tag.
  • Tag description:Describe the content theme represented by the tag.

By these detailed settings, you can ensure that each level and specific content of the website has the most optimized and relevant TDK, thereby improving the overall SEO performance.

Display TDK in the front-end template

After setting up the TDK information, how to correctly call and display them in the website's front-end template is a key step to achieving SEO effects.AnQiCMS provides a user-friendly and powerful template tag system to complete this task.

AnQiCMS has a built-in namedtdkThe universal tag, which can intelligently identify the type of the current page, and automatically obtain the TDK information with the highest priority for display. For example, when you visit a document detail page,tdkThe tag will prioritize calling the TDK set separately for the document; if the document is not set, it will try to call the TDK of the document's category;If not, it will call the global TDK. This hierarchical calling mechanism greatly simplifies the development and maintenance of templates.

Generally, you would place the TDK tags in the website template file (such asbash.htmlorheader.html)的<head>in the area. Here is a typical usage example:

<head>
    <meta charset="UTF-8">
    <!-- 页面标题,附加网站名称后缀,使用短横线分隔 -->
    <title>{% tdk with name="Title" siteName=true sep="-" %}</title>
    <!-- 页面关键词 -->
    <meta name="keywords" content="{% tdk with name="Keywords" %}">
    <!-- 页面描述 -->
    <meta name="description" content="{% tdk with name="Description" %}">

    <!-- 如果页面有规范链接,则显示 -->
    {%- tdk canonical with name="CanonicalUrl" %}
    {%- if canonical %}
    <link rel="canonical" href="{{canonical}}" />
    {%- endif %}

    <!-- 其他头部信息 -->
</head>
  • {% tdk with name="Title" siteName=true sep="-" %}:This tag will retrieve the SEO title of the current page.siteName=trueThe parameter indicates that the website name will be automatically appended to the page title (e.g., "Page Title - Website Name"), andsep="-"specifies the separator between the title and the website name.
  • {% tdk with name="Keywords" %}:Used to output the keywords of the current page.
  • {% tdk with name="Description" %}:Used to output the description of the current page.

In addition, in SEO optimization, the canonical link (Canonical URL) is also a very important part, which is used to inform search engines which URL is the original version of the content, avoiding duplicate content issues. AnQiCMS also providesCanonicalUrlThe calling method:

  • {%- tdk canonical with name="CanonicalUrl" %}and{%- if canonical %}:This code will first try to get the canonical link of the current page. If it exists, it will generate the corresponding in<head>.<link rel="canonical" href="..." />.-The symbol before and after the template tag is used to remove any blank lines that the tag may generate, making the HTML code more tidy.

In this way, you do not need to write complex logic on each page template to determine the source of TDK,tdkThe universal tag automatically handles these details, ensuring that the website's TDK is always presented in the most optimized form to search engines and users.

AnQiCMS provides powerful and flexible SEO optimization capabilities through this hierarchical, refined TDK setting and intelligent template calling, helping your website stand out in a competitive online environment.


Frequently Asked Questions (FAQ)

1. Why is the website name not appended to the document title in the home page TDK settings, after I set the SEO title in a document?

This is becausetdkThe universal tag does not add the website name suffix by default when calling the page title. If you want to add the website name to the SEO title of the document, category, single page, etc., you need to specify it explicitly when calling the templatesiteName=truefor example:<title>{% tdk with name="Title" siteName=true %}</title>Thus,tdkThe label will automatically add the website name to the page title according to your settings.

**2. I have set the TDK for all pages, but the search engine is catching up.