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

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

Background settings: Define the website's 'digital business card'

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

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

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

  1. Home Title (Title)This is the text displayed on the browser tab of the website and is 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):Although modern search engines have reduced the weight of keywords, 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.A description that is attractive, has strong comprehensiveness, and includes the main keywords, which can effectively increase the willingness of users to click.It should be a concise summary of the website content, encouraging users to learn more.

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

Dynamic call in the template: make the information vivid

In AnQiCMS template system, you can use the "Universal TDK Tag"}]tdk”to dynamically retrieve and display these Title, Keywords, and Description information that are set up in the background. AnQiCMS's template engine is similar to Django syntax, using double curly braces{{变量}}Define a variable, use single curly braces and the percent sign.{% 标签 %}Define a label. Usually, these SEO metadata are placed in the website template.<head>areas.

The following is the specific calling method:

1. Call the 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 retrieve the website name from the system settings and append it to the title. You can also customize the separator between the title and the website name, for example,sepCustomize the separator between the title and the website name, for example,sep="_"Will change the delimiter to underscore.

2. Call the home page keywords (Keywords)

The keyword tags may have decreased in weight, but they are still auxiliary information to help search engines understand the page theme.

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

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

3. Call the home page description (Description)

The description label is the '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">the tag.

4. Additional Optimization: Page's Canonical URL

除了TDK,页面的规范链接(CanonicalUrl)也是重要的SEO元素,它能帮助搜索引擎识别页面的原始版本,避免重复内容问题。AnQiCMS的EnglishtdkThe label 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 obtain the standard link, if it exists, then add it to the page<head>area.

Practical suggestions for optimizing TDK

How to write high-quality content after setting up the TDK tags is also important:

  • Home Title (Title)English: Strive for conciseness and clarity, containing the most important core keywords of the website, and possessing the characteristics of attracting user clicks.The length is usually controlled within 25-30 Chinese characters.Ensure that each page's title is unique.
  • Home page keywords (Keywords):Select 3-5 keywords that best represent the core business or theme of the website. Avoid keyword stuffing, as this may have the opposite effect.
  • Home page description (Description)Write a short sentence that accurately summarizes the main content of the website, engaging and encouraging users to click.Can include some call-to-action language.The length is usually between 80-120 Chinese characters.

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

Common Questions and Answers (FAQ)

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

Q2: How to set and call the TDK on the article detail page or category page, 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 CategoryarchiveDetail(Document Details),categoryDetail(Category Details) orpageDetailTags such as (Single Page Details) etc., also support obtaining TDK information for these specific pages. The TDK of these pages will be displayed before the home page TDK.

Q3: TDK中的Keywords字段现在对SEO还有用吗?A3: 目前主流搜索引擎(如Google)已经明确表示KeywordsThe meta tags have a minimal impact on ranking, even to the point of being negligible.It may still have a slight impact on some niche search engines, in-site search, or certain specific analytical tools.AnQiCMS retains this field for compatibility and flexibility, you can optionally fill it out, but you should focus more on writing high-quality titles and descriptions, content quality, and external link construction.