How to set and display the TDK information (title, keywords, description) on the home page of AnQiCMS?

Calendar 👁️ 73

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.

Related articles

How to retrieve and display the detailed content of the current article in AnQiCMS

In AnQi CMS, to retrieve and display the detailed content of the current article, it mainly revolves around the organization of template files and built-in template tags.Understanding these core mechanisms allows you to flexibly control the presentation of articles on the frontend page. ### Core Concept: The Composition of Article Detail Page In AnQi CMS, the detailed content of each article is usually displayed through a specific template file.This template file will be automatically or manually called by the system according to the content model of the article (such as "Article Model" or "Product Model") and the settings in the background.By default

2025-11-08

How to use AnQiCMS template tags to display article lists on the page?

In AnQiCMS, flexibly displaying article lists on website pages is one of the core needs of website content management.Whether it is to build news dynamics, product display, blog articles, or any other content that needs to be presented in a list, the powerful template tag system of AnQiCMS can help you easily achieve it.This article will provide a detailed introduction on how to use the `archiveList` template tag, combining the various functions of AnQiCMS, to efficiently and beautifully present article lists on your website page.### Understand `archiveList`

2025-11-08

How to obtain the Logo image and Banner group image of a specified article or category in Anqi CMS, and apply them flexibly in templates?

## Play with Visual Content: Flexible Calling and Display of Article and Category Logo Images, as well as Banner Group Images in AnQi CMS When building and operating a website, eye-catching visual content is the key to attracting users and conveying the brand image. AnQi CMS understands this and therefore provides a powerful and flexible image management and calling function in the system design, whether it is the cover Logo of the article, the representative thumbnail of the category, or the Banner group images used to create an atmosphere, they can all be easily realized and applied to the website template

2025-11-08

How to ensure that the old link traffic is not lost and the new content is displayed correctly after adjusting the page content structure, by using 301 redirect?

During the operation of a website, content updates, adjustments of the classification structure, or optimization of URL addresses are common operations.However, if not handled properly, these changes are likely to lead to a loss of website traffic and a drop in search engine rankings.幸运的是,AnQiCMS(AnQiCMS)内置了强大的301重定向功能,能够帮助我们平稳地度过这些调整期,确保旧链接的流量能够无缝过渡到新内容。Why 301 Redirects Are Indispensable?301 redirect, i.e., permanent transfer

2025-11-08

How does AnQiCMS achieve independent display of multi-site content under different domain names?

When using AnQiCMS to build and manage websites, users often face the need to create independent sites for different brands, businesses, or regions, and they also hope that these sites can be displayed independently under their respective domain names.AnQiCMS powerful multi-site management function, which is designed to solve this pain point.It allows users to easily create and operate multiple websites with independent content and domain names on the basis of a set of AnQiCMS core programs.### AnQiCMS The Core Concept of Multi-Site Management AnQiCMS

2025-11-08

How to customize AnQiCMS URL static rules to optimize search engine link display?

In today's digital world, a clear, friendly, and easily searchable URL structure is crucial for the visibility of a website.As one of the core functions of a content management system, the custom ability of URL static rules can make your website perform better in search engines.AnQiCMS is a content management system that focuses on SEO optimization and provides very flexible static configuration options, allowing you to easily achieve this goal.### Understanding the Importance of URL Rewrite Static Firstly, let's briefly understand what a pseudo-static URL is

2025-11-08

How to ensure that custom fields of the content model are correctly displayed on the front page in AnQiCMS?

In AnQiCMS, we often encounter situations where we need to display various personalized content.The built-in articles and product models are powerful, but sometimes they still cannot meet specific business needs.At this time, the custom fields in the content model become our helpful assistants, making website content management more flexible.But the custom field is set up, how can we ensure that they are displayed correctly on the website front-end for visitors to see?Today, let's delve deep into this issue. ### Custom Field Creation and Management of Content Model Firstly

2025-11-08

How to configure AnQiCMS to implement multilingual content switching and display?

Today, with the increasing popularity of globalization, multilingual support for websites is no longer an optional feature, but an important cornerstone for enterprises to expand into international markets and serve global users.AnQiCMS (AnQiCMS) is an efficient and customizable enterprise-level content management system that fully considers this requirement and provides a flexible multi-language content switching and display solution.This article will discuss in detail how to configure and manage multilingual content in AnQiCMS, allowing your website to easily face the world.--- ### One

2025-11-08