In website operation, TDK (Title, Description, Keywords) information is the foundation of Search Engine Optimization (SEO), especially for the home page of the website, its importance is self-evident.A clear and accurate homepage TDK can effectively help search engines understand the core content of the website, thereby improving the visibility and attractiveness of the website in search results.How can we conveniently and quickly set up and manage these key information in AnQiCMS, and ensure that they are presented correctly to the users?

1. Understand the importance of the homepage TDK

Home page title (Title), keywords (Keywords), and description (Description) are the 'business card' that communicates the theme and value of the website to search engines.

  • Title (Title)Appears in the browser tab and search engine results title, it is the information that users see first and directly affects the click-through rate.
  • Keywords (Keywords)Although modern search engines have reduced the weight of keywords, reasonable layout of core keywords still helps search engines confirm the theme of the website.
  • Description:Displayed below the search results title, it is a brief summary of the website content. An excellent description can effectively attract users to click.

AnQiCMS as a content management system focusing on SEO optimization, naturally provides intuitive and powerful support for the setting of the home page TDK.

二、English setting of homepage TDK information

In AnQiCMS, setting the TDK information for the homepage is very direct. After logging into the AnQiCMS management backend, you can find and configure them according to the following path:

  1. Enter the background settingsIn the left navigation bar of the background management interface, you will find the option 'Background Settings'. Click to enter, where you can find various global configurations of the website.
  2. Select Home Page TDK SettingsIn the "Background Settings" menu, there is a special option called "Home Page TDK Settings". Click on it, and you will see input boxes for configuring the home page title, keywords, and description.

Here, you can clearly see the three main configuration items:

  • Home Page TitleThis field will be directly used to generate the HTML of the website homepage:<title>Label content.To better perform SEO, we usually fill in the core name or brand of the website here, and can appropriately add 1-2 core keywords.For example: "Your brand name - Providing high-quality products and services".
  • Home page keyword:Although its direct ranking impact on SEO is not as strong as before, it is still recommended to fill in core keywords highly relevant to the website content. Please use English commas between multiple keywords.,Separate them, which conforms to the recognition habits of search engines. Choose words that can accurately summarize the business and content of the website.
  • Homepage descriptionThis is a very important part, it will appear below the title on the search engine results page.Here, you need to use a concise and attractive text to summarize the core business, advantages, or problems that the website can solve for users.This description must include core keywords and also be able to inspire users to click, with a recommended word count of 80-120 characters to ensure complete display in search results.

After completing the filling, remember to click save, and your home page TDK information will take effect immediately.

Section 3: Displaying home page TDK information in AnQiCMS (template call)

AnQiCMS uses a template engine to render front-end pages, therefore, the homepage TDK information you set needs to be displayed correctly on the website page through specific template tags. AnQiCMS provides powerful "Universal TDK tags"}]tdk

index.htmlheader.html) of<head>tdkLabel display of the home page TDK common methods:

  1. Display page title (Title)Title tags are one of the most important pieces of information. To ensure the completeness and flexibility of the title,tdktags provide parameters to control whether the website name suffix and separator are displayed.

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

    This code will generate the title of the website homepage.name="Title"Specified to get the title information,siteName=trueRepresents that the website name you configured in the "Global Function Settings" will be automatically appended after the title on your home page.sep=" - "The separator between the title and the website name is defined as “ - ”. If you do not need the website name suffix or want to customize the separator, you can adjust it as needed.

  2. Display page keywords (Keywords)): Keywords will be placed in<meta name="keywords" ...>the tag.

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

    This code will directly output the home page keywords content you set in the background.

  3. 显示页面描述(Description): 描述信息则会呈现在<meta name="description" ...>the tag.

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

    这段代码同样直接输出你在后台设置的首页描述内容。

  4. Canonical URL (Standard URL): Although not a traditional TDK, the canonical URL is also an important SEO element, indicating which page is the preferred version to search engines and avoiding duplicate content issues. AnQiCMS also providestdkthe tag.

    {%- tdk canonical with name="CanonicalUrl" %}
    {%- if canonical %}
    <link rel="canonical" href="{{canonical}}" />
    {%- endif %}
    

    This code first attempts to retrieve the standard link, if it exists, it will add it to the page header. This is very beneficial for handling internal URL parameters of some websites or multi-version pages.

Through these flexible template tags, AnQiCMS ensures that the TDK information you configure is accurately rendered on the website front-end, laying a solid foundation for the website's SEO performance.

Summary

Managing the TDK information of the website homepage in AnQiCMS is an intuitive and efficient process. Easily configure the title, keywords, and description from the "Homepage TDK Settings" in the background, and then through the powerfultdkThe template tag precisely presents the label on the front-end page, and the entire process design fully considers SEO requirements and user convenience.Use these features well, and your website's homepage will get better display effects and click-through rates in search engines.


Common Questions (FAQ)

Q1:How to set TDK information for other pages except the homepage?

Q2:If I have not filled in the TDK information for the homepage, how will AnQiCMS handle it?A2:If the home page TDK information is not manually filled in, AnQiCMS usually adopts some default strategies.For example, the page title may default to displaying the "website name" you configured in the "Global Feature Settings"; the keywords and description fields may be left blank, or in some template designs, they may attempt to extract other general information or parts of the content of the website as fillers.To ensure the SEO effect, it is strongly recommended to manually configure detailed and optimized TDK information for the homepage.

Q3:I want to customize the display position and separator of the website name in the home page title, can AnQiCMS do that?A3:Yes, AnQiCMS can do that.tdkLabels provide high flexibility. You cansiteNamecontrol whether to display the website name suffixsepand customize the separator between the title and the website name. For example,{% tdk with name="Title" siteName=true sep=" | " %}The homepage title will be connected with the website name using the " | " separator. If you want the website name to appear before the title, you may need to adjust it manually in the template.tdkThe call order of labels or using more advanced template logic.