In website operation, the Title (title), Keywords (keywords), and Description (description) of the homepage are the first impression presented to users on the search engine results page (SERP), and are also the key for search engines to understand the core content of the website.They not only affect the website's SEO optimization effect, but also directly relate to whether users will click to enter your website.AnQiCMS as a rich-featured enterprise-level content management system provides an intuitive and powerful way to manage these important SEO elements.

Next, we will explore how to configure and dynamically display the Title, Keywords, and Description information on the homepage of AnQiCMS, ensuring that your website has an excellent 'digital business card' in search engines.

Backend settings: Define the 'digital business card' of the website

Firstly, we need to configure these core information in the AnQiCMS backend management system for the homepage.AnQiCMS manages these settings centrally, making it convenient for you to make global adjustments.

You can find and configure the TDK information of the homepage through the following path: Log in to AnQiCMS backend, navigate to“Backstage Settings” -> “Home TDK Settings”.

On this page, you will see three core input boxes, which correspond to:

  1. Home Title (Title)This is the text displayed in the browser tab of the website, which is also the most important click element in the search engine results page.Here, you should fill in a concise, accurate title that includes the core keywords of your website.It should be able to summarize the main content or brand characteristics of the website.
  2. Home page keywords (Keywords)However, modern search engines have reduced the weight of keywords, but AnQiCMS still provides this setting for you to fill in core keywords highly relevant to the website content.You can separate the core services, products, or themes of the website with English commas.
  3. Home page description (Description)This text will be displayed as a summary below the title on the search engine results page.An engaging, concise description with main keywords that effectively increases user click-through rate.It should be a concise summary of the website content, encouraging users to learn more.

After completing these settings, remember to save the changes. This information will then be stored in the AnQiCMS system and ready to be called by the template.

Dynamic call in the template: make the information vivid.

In the AnQiCMS template system, you can use the "Universal TDK tag"}tdk”to dynamically retrieve and display this information set up in the background. AnQiCMS template engine is similar to Django syntax, using double curly braces{{变量}}Define a variable, using single curly braces and percent signs{% 标签 %}Define a tag. Typically, these SEO metadata are placed in the website template<head>Within the area.

Here is the specific calling method:

1. Call Home Page Title (Title)

The title of the website is crucial, as it directly affects the first impression and click-through rate of users.

<title>{% tdk with name="Title" %}</title>

This code will directly output the homepage title you configured in the "Homepage TDK Settings" on the backend.

If you want to automatically append the website name at the end of the title to enhance brand recognition, you can do it like this:

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

here,siteName=trueWill intelligently obtain the website name from the system settings and append it to the title. You can alsosepcustomize the separator between the title and the website name, for examplesep="_"change the separator to underscore.

2. Call the home page keywords (Keywords)

Although the weight of keyword tags has decreased, they are still auxiliary information to help search engines understand the theme of the page.

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

This code will dynamically display the homepage keywords you set in the background on the page<meta name="keywords">in the tag.

3. Call the homepage description (Description)

The description tag is the 'ad slogan' on the search engine results page, which directly affects the user's click decision.

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

Through this code, the homepage description you set in the background will be displayed on the page.<meta name="description">in the tag.

4. Additional Optimization: Page's Canonical URL

In addition to TDK, the canonical link (CanonicalUrl) of the page is also an important SEO element, which helps search engines identify the original version of the page and avoid duplicate content issues. AnQiCMS'stdkThe tag also supports calling this information.

Since the specification link is not required for all pages, it is usually recommended to make a conditional judgment:

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

This code will first try to get the specification link, if it exists, then add it to the page<head>area.

Practical suggestions for optimizing TDK

After configuring the TDK tags, it is also important to write high-quality content:

  • Home Title (Title) Aim to be concise and clear, containing the most important core keywords of the website and having the characteristics of attracting users to click.The length is usually controlled within 25-30 Chinese characters. Ensure that each page title is unique.
  • Home page keywords (Keywords)Select 3-5 precise keywords that best represent the core business or theme of the website. Avoid keyword stuffing, as this may backfire.
  • Home page description (Description)Write a catchy, concise sentence that accurately summarizes the main content of the website and encourages users to click.Can include some call-to-action language. The length is usually between 80-120 Chinese characters.

Through AnQiCMS flexible backend settings and template calling mechanism, you can easily manage the TDK information on the home page of your website, lay a solid foundation for your website SEO, and achieve better performance in search engines.

Frequently Asked Questions (FAQ)

Q1: How long after setting up the homepage TDK can the effect be seen in search engines?A1: The process of crawling, indexing, and updating search results takes time, and this process may vary from a few days to several weeks, depending on the crawling frequency of your website and the algorithm updates of search engines.You can accelerate the crawling process of search engines by submitting Sitemap, actively pushing links, and other methods.The AnQiCMS backend provides advanced SEO tools such as 'Link Push' and 'Sitemap Generation' to assist you.

Q2: How to set and call the TDK of article detail pages or category pages besides the homepage?A2: AnQiCMS provides independent TDK setting options for different types of content (such as articles, products, categories, and single pages).For example, in the "Publish Document" or "Document Category" management interface, you can find fields such as "SEO Title", "Keywords", and "Description" for personalized configuration.In the template, corresponding toarchiveDetail(Document Details),categoryDetail(Category Details) orpageDetail(Single Page Details) tags, also supports retrieving the TDK information of these specific pages. The TDK of these pages will be displayed before the TDK of the homepage.

Q3: TDK withinKeywordsIs the field still useful for SEO?A3: Mainstream search engines (such as Google) have explicitly statedKeywordsThe meta tag has a minimal impact on ranking, even it can be ignored. But it may still have a slight impact on some niche search engines, site search, or certain specific analysis tools.AnQiCMS reserves this field for compatibility and flexibility, you may optionally fill it, but you should focus more on writing high-quality titles and descriptions, content quality, and external link construction.