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 enhancing 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?

Understand the importance of homepage TDK

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

  • Title (Title)It appears in the browser tab and search engine results title, the information that users see first, directly affecting the click-through rate.
  • KeywordsHowever, even though modern search engines have reduced the weight of keywords, a reasonable arrangement of core keywords is still helpful for search engines to confirm the theme of a website.
  • Description: Displayed below the search result 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 focused on SEO optimization naturally provides intuitive and powerful support for the setting of home page TDK.

Second, set the home page TDK information in AnQiCMS

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

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

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

  • Home titleThis field will be directly used to generate the website homepage HTML's<title>Content label. To better optimize for 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 keywordsIt is still recommended to fill in core keywords highly relevant to the website content, using English commas between multiple keywords.,Separate, this conforms to the recognition habits of search engines. Choose those that can accurately summarize the business and content of the website.
  • Home page 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 the core keywords and also be able to stimulate the user's click desire. It is recommended to control the word count between 80-120 characters to ensure it can be fully displayed in the search results.

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

3. Display home page TDK information in AnQiCMS (template call)

AnQiCMS uses a template engine to render the front-end page, therefore, the TDK information you set for the home page needs to be displayed correctly on the website page through specific template tags. AnQiCMS provides powerful 'Universal TDK tags'tdkMake template calls very flexible.

These tags are usually placed in website template files (such as)index.htmlOr public header fileheader.html)的<head>area. The following is the common way to display the TDK of the home page using the tag:tdkThe common way to display the TDK of the home page with the tag:

  1. Display the 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 to display the website name suffix and separator.

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

    This code generates the title of the website homepage.name="Title"Specified to retrieve the title information,siteName=trueIt will automatically append the website name you configured in the "Global Function Settings" to the end of your homepage title,sep=" - "Then 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" ...>in the tag.

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

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

  3. Display page description (Description): Description information will be displayed.<meta name="description" ...>in the tag.

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

    This code will also directly output the homepage description content you set in the background.

  4. Standard Link (Canonical URL): Although it is not a traditional TDK, the canonical link (Canonical URL) is also an important SEO element that indicates which page is the preferred version to search engines, avoiding duplicate content issues. AnQiCMS also providestdkTag to call it.

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

    This code first tries to obtain the specification link, if it exists, then add it to the page header. This is very beneficial for dealing with some internal website URL parameters or multi-version pages.

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

Summary

Managing the TDK information of the website homepage in AnQiCMS is a straightforward and efficient process. It is easy to configure the title, keywords, and description from the "Homepage TDK Settings" in the background, and then through the powerfultdkThe template tags accurately present on the front-end page, the entire process design fully considers SEO requirements and user convenience.Make good use of these features, your website homepage will get better display effects and click-through rates in search engines.


Frequently Asked Questions (FAQ)

How to set the TDK information for pages other than the homepage?A1: AnQiCMS provides independent TDK settings for different types of content.For the detail pages of articles, products, and other specific content, you can find fields such as "SEO title", "keywords", "summary", and others to configure when publishing or editing.For the category page, you can edit categories in the "Document Category" management, as well as options such as "SEO Title", "Keywords", and "Category Description".Single page (such as "About Us", "Contact Us") is independently set in "Page Management"。These settings will automatically overwrite the TDK information of the corresponding page.

What will AnQiCMS do if I don't fill in the TDK information for the homepage?A2: If the homepage TDK information is not manually filled in, AnQiCMS usually adopts some default strategies.For example, the page title may default to showing the website name you have configured in the "Global Function Settings";Keywords and description fields may be left blank, or in some template designs, attempts may be made to extract other general information or parts of the content from the website as fillers.To ensure the SEO effect of **, 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.tdkThe tag provides high flexibility. You cansiteNamecontrol whether to display the website name suffix, andsepcustomize the separator between the title and the website name. For example,{% tdk with name="Title" siteName=true sep=" | " %}Will connect your homepage title with the website name using the " | " delimiter. If you want the website name to appear before the title, you may need to manually adjust the template.tdkThe order of tag calls or the use of more advanced template logic.