The TDK of a website, i.e., Title (Title), Description (Description), and Keywords (Keywords), are the basic elements of Search Engine Optimization (SEO), which directly affect the display effect of the website in the Search Engine Results Page (SERP) and the willingness of users to click.For the 'front door' of a website - the homepage, precise and attractive TDK information is crucial.
In AnQiCMS, managing and dynamically displaying the TDK information of the website homepage is a straightforward and efficient task.The system design fully considers SEO requirements, allowing website operators to configure flexibly, and easily call through template tags, ensuring that the home page TDK is always up-to-date and in line with **practice.
Configure the homepage TDK information in the AnQi CMS backend
All the related TDK settings of the homepage are concentrated in the Anqi CMS backend management interface. After logging in to the backend, you can find "Backend settingsClick to enter, and you will see a special Homepage TDK settingsOption. Here, you can fine-tune the Title, Keywords, and Description for the homepage.
- Home Title (Title)This is the title displayed in search engine results for the website's homepage, as well as the content displayed in the browser tab.A good homepage title should contain the core keywords of the website, accurately summarize the theme of the website, and have a certain appeal. It is recommended to control the number of characters within 60.In the 'Home Page TDK Settings' of Anqi CMS, you can directly enter the title content you expect.
- Home Keywords (Keywords)Although modern search engines have reduced the weight of the Keywords tag, it is still a way to explicitly indicate the core theme of a website to search engines. You can enter keywords highly relevant to the website's business here, and separate multiple keywords with English commas.
,Separate them. When choosing keywords, it is recommended to avoid clutter and strive for accuracy. - Home Description (Description)This is the website summary displayed below the search engine title.A compelling description can effectively increase the click-through rate.It should concisely introduce the content or services provided by the website, include core keywords, and encourage users to click.The number of characters is generally recommended to be controlled between 120-150.
Through these backend settings, you can always adjust the TDK information of the homepage according to the website's positioning and current content strategy without touching any code.
Dynamically call the home page TDK information in the website template
It is not enough to set the information only in the background; you also need to ensure that these information can be correctly displayed in the website's HTML code for search engines to read. Anqi CMS provides a very convenient 'Universal TDK Tag' for this.tdkIt allows you to dynamically call these configured TDK information in website templates (usuallyheadwithin the tags).
The followingtdkare common methods and examples of the tags:
Call Home Page Title (Title) In HTML's
<head>area, you can usetdktag to dynamically display the home page title.<title>{% tdk with name="Title" %}</title>This tag has a major highlight that it can intelligently combine with the website name. If you wish to automatically add the 'Website Name' configured in the backend 'Global Settings' after the homepage title, followed by a hyphen
-[en]Separate, you can do it like this:<title>{% tdk with name="Title" siteName=true %}</title>If you want to customize the separator between the title and the website name, for example, using an underscore
_:<title>{% tdk with name="Title" siteName=true sep="_" %}</title>Calling the home page keywords (Keywords)[en]: Similarly in
<head>Area, usedtdkTag call keyword information:<meta name="keywords" content="{% tdk with name="Keywords" %}">Call home page description (Description): In
<head>Area, call description information:<meta name="description" content="{% tdk with name="Description" %}">Call Specification Link (CanonicalUrl)To avoid content repetition issues affecting SEO, AnQi CMS also supports dynamically generating canonical URLs (CanonicalUrl). In the template, it is usually first checked whether a canonical URL exists before proceeding with the output:
{%- tdk canonical with name="CanonicalUrl" %} {%- if canonical %} <link rel="canonical" href="{{canonical}}" /> {%- endif %}This ensures that the search engine can identify the original source of the content, avoiding the dispersion of weight.
Advantages of dynamic TDK management of Anqi CMS.
Through the backend TDK settings provided by Anqi CMS,tdkTemplate tags, you can enjoy the following main advantages:
- Centralized managementAll the SEO meta information of the home page can be managed and modified in one place on the backend, without the need to log in to FTP or modify code files.
- Flexibility and convenience【en】The update response of TDK content is quick, only needs to be modified and saved in the background, and it takes effect immediately, greatly improving the operational efficiency.
- 【en】SEO friendlinessThe intelligent combination of tags (such as automatically adding website names, custom separators) helps websites better follow the recommended rules of search engines.
- Error avoidanceThe dynamic calling mechanism reduces syntax errors or spelling errors that may occur due to manual HTML code writing.
In summary, Anqi CMS provides a powerful and user-friendly solution for TDK dynamic display, allowing website operators to focus on the content itself without having to worry too much about technical details, ensuring better visibility and ranking in search engines.
Common Questions (FAQ)
Q1: Why did I set the home page TDK, but the website front-end did not display or displayed incorrectly?A1: First, please check your website template (usually)base.htmlorindex.htmlWhether the public header files) have been used correctly.tdkThe tag to call the corresponding information. For example,.<title>The tag within should contain{% tdk with name="Title" %}.[en] Secondly, confirm whether you have cleared the website cache.The Anqi CMS usually caches configuration information. After clearing the cache (at the bottom left menu of the background), the new TDK settings can take effect on the front page.
Q2: What are the differences between the TDK settings on the home page, category page, and article detail page?A2: The homepage TDK is the default TDK information for the entire website, mainly targeting the overall brand and core business of the website.And for content such as category pages, article detail pages, single pages, etc., Anqi CMS also provides independent TDK settings (such as when editing categories or articles, there are usually fields for 'SEO title', 'keywords', and 'description').These page-level TDKs will override the homepage TDKs, making them more targeted and helpful for improving the search rankings of specific content.
Q3: Do I need to regularly update the TDK information on the home page?A3: Unless your website undergoes significant changes (such as a change in brand name, a shift in the focus of core business, or the launch of important new products/services), it is usually not necessary to frequently update the TDK information on the homepage.The frequent modification may confuse the search engine.Suggest performing targeted optimization and adjustment when the website content strategy changes or when data analysis shows that the existing TDK is not effective.