The importance of TDK information for the homepage of a website

Before we delve into how to configure, we first need to understand why TDK is so important for the home page of a website:

  • Title(标题):The title of the website is the first line of text that users see on the search engine results page, and it is also the content displayed in the browser tab.It directly tells users and search engines what your website or page is about.A good title can attract user clicks and increase website traffic.<title></title>the tag.
  • Description(描述):The website description is usually displayed below the title on the search engine results page and is a brief summary of the web content.Although it does not directly affect ranking, a high-quality description can attract users and increase click-through rate.<meta name="description" content="">Tags inside.
  • Keywords(关键词):The keyword is the words or phrases that you think users may use when searching for your website content.Although modern search engines have reduced the weight of Keywords meta tags, reasonably setting core keywords still helps search engines understand the theme of your website, especially that it may still have a辅助作用 in some vertical industries or regional searches.<meta name="keywords" content="">the tag.

The design of AnQiCMS fully considers SEO-friendliness, its TDK configuration is not only easy to operate, but also can effectively improve the search engine visibility of the website.

In AnQiCMS backend, configure the home page TDK information

Configure the TDK information of the website homepage is a simple and direct process, AnQiCMS provides a special interface for you to operate: English

  1. Log in to the backend:First, you need to log in to the AnQiCMS admin panel.
  2. Navigate to Settings:In the left navigation menu of the backend, find and click.“Backend Settings”.
  3. Enter the Home Page TDK Settings:In the submenu of "Background Settings", you will see a menu named“Home Page TDK Settings”The option, click it to enter the configuration page.

On this page, you will see three core input boxes, each corresponding to Title, Keywords, and Description:

  • Home Page Title:Please enter the title of your website homepage.Suggest including your brand name and the core business or theme of your website, and ensure that the title is concise, attractive, and of moderate length (usually recommended to be within 50-70 characters to avoid being truncated in search results).
  • Home page keywords:Enter the core keywords of your website homepage. Separate multiple keywords with English commas,Separate the content. When selecting keywords, consider their relevance and search volume, and avoid keyword stuffing.
  • Home page description:Write a concise and clear text to summarize the content of your website homepage.This description should attract users to click and naturally include some core keywords.The length of the description is generally recommended to be within 150-180 characters.

After filling in, remember to click the save button, your home page TDK settings will take effect.

Show home page TDK information in the website template

The background configuration is complete, AnQiCMS will automatically output this information to the HTML code of the website homepage. To ensure that this information is displayed correctly and indexed by search engines, your website template (usually theindex.htmlorbase.html)Needs to be<head>Use the TDK tags provided by AnQiCMS within the tag.

AnQiCMS provides a "Universal TDK tag" for this.tdkThis tag allows you to flexibly retrieve and display the configured Title, Keywords, and Description:

  1. Get the page title (Title):

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

    Here,name="Title"Specified that the page title is to be retrieved.siteName=trueRepresents that the website name will be automatically appended to the end of the title (e.g., "My Website - Title")sep=" - "The separator between the title and the website name is defined. You can adjust these parameters as needed.

  2. Get the page keywords (Keywords):

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

    name="Keywords"The output will be the home page keywords you configured in the background.

  3. Get page description (Description):

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

    name="Description"The output will be the home page description you configured in the background.

In SEO optimization, it is also very important to standardize links (Canonical URL), which can avoid search engine penalties due to content duplication. AnQiCMS also supports obtaining standard links through TDK tags:

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

This code will check for standard links, if they exist, then add them to<head>.

Place the above tag code in your website template's<head>区域内,即可确保首页的TDK信息能够被正确渲染。

AnQiCMS的SEO工具箱

Configure the home page TDK is just a part of AnQiCMS's powerful SEO features. In addition to TDK management, AnQiCMS also provides:

  • Static URLs and 301 redirections:Optimize URL structure, improve search engine crawling and ranking, and effectively handle traffic loss after page adjustments.
  • Sitemap generation:Automatically generate a sitemap to help search engines more comprehensively discover and index your pages.
  • Robots.txt configuration:Precisely control the crawling permissions of search engine spiders on website content.
  • Keyword library management:Manage the core keywords of the unified website, assist in content creation and optimization.
  • Anchor text settings:Enhance the SEO value of internal links.

These features collectively build a comprehensive SEO tool system, helping your website perform better in search engines.

Through AnQiCMS, even if you are not a professional SEO person, you can easily manage and optimize the TDK information of the home page of the website, laying a solid foundation for the successful operation of the website.


Common Questions (FAQ)

  1. Why did I set the home page TDK, but the front page did not take effect?This is usually because the website cache has not been updated.In AnQiCMS backend, you can find the 'Update Cache' feature (usually at the bottom of the left navigation bar), click it to clear the system cache, and then visit the homepage of the website again, the TDK information should be displayed correctly.tdktags to call this information.

  2. How should I write the title, keywords, and description of the home page to be better indexed by search engines?Writing high-quality TDK information requires following some principles:

    • Title:Maintain brevity, uniqueness, include core keywords, and keep the word count between 50-70 characters. Ensure each page has a unique title.
    • Description:Attractive, accurately summarizes the page content, naturally incorporates 2-3 core keywords, and keeps the word count between 150-180 characters. Encourage users to click.
    • Keywords:Select keywords highly relevant to the page content, avoiding keyword stuffing. Usually, 3-5 core keywords are sufficient. Avoid using general or irrelevant words.
  3. What are the SEO features of AnQiCMS that can improve website ranking except for the home page TDK?AnQiCMS provides a comprehensive set of SEO tools. In addition to the home page TDK, you can also take advantage of its pseudo-static and 301 redirection