Optimize the website facade: Display and application of TDK information in Anqi CMS

In website operation, TDK (Title, Keywords, Description) is an indispensable basic element of Search Engine Optimization (SEO).They are like the 'business card' of a website, directly telling search engines the theme, core content, and most important keywords of your page, thereby affecting the ranking and click-through rate of the search results.A well-set TDK can make your website stand out among competitors.

AnQiCMS (AnQiCMS) fully understands the importance of TDK and has integrated flexible and powerful TDK management functions into the system design, allowing you to manage global website information with ease, as well as to refine and optimize specific content.

AnQi CMS backend TDK information setting overview

AnQi CMS provides multi-level TDK settings, convenient for you to perform global management and local optimization:

1. Set the TDK information of the website homepage

This is the 'front page' of your website, crucial for brand display and core business

You can navigate to the Anqi CMS backend toBackend settings -> Home page TDK settingsPage. Here, you can set them separately:

  • Home title:This is the main title displayed on the website homepage in the browser tab and search results. It is recommended to include your brand name and core business keywords, striving for brevity, clarity, and attractiveness.
  • Homepage keywords: List the core keywords most relevant to your website's homepage. Please note that keywords should be natural and relevant, avoiding clutter.
  • Home page description:This text will be displayed as the page summary in search results. It should be a concise introduction, attractive to users to click, and contain important keywords.

2. Configure the TDK for articles, categories, single pages, and tag pages

Except for the homepage, each specific page of the website also has unique TDK requirements. Anqi CMS allows you to customize settings for different types of content:

  • Articles (documents):When adding or editing an article, you will see the 'Other parameters' option, expand it to findSEO title/Document keywordandDocument Introductionsuch fields. These settings will override the global TDK of the article page.
  • Document classification:When creating or editing a category, you can also set the page of the category in the "Other Parameters".SEO title/KeywordsandCategory introduction.
  • Single page:For pages such as "About Us", "Contact Information", and others, you can directly set them on the editing pageSEO title/KeywordsandSingle page introduction.
  • Document Tag:Even on the tab page, Anqi CMS allows you to set up each tab in the tab managementSEO title/Tab keywordsandTab description.

These detailed settings ensure that each page can have the most accurate "business card", thereby better being understood and indexed by search engines.It is worth noting that the TDK settings of these specific pages have a higher priority than the home page TDK, and when users visit these specific pages, the system will prioritize using their exclusive TDK.

Display TDK information flexibly in the website template

Set up the TDK data in the background, and then you need to correctly present this information in the website's HTML structure. Anqi CMS provides powerfultdkTags, allowing you to easily call TDK data in the template.

Generally, these tags are placed in your template file (for example,base.html)的<head>Part, to ensure that it can be indexed by search engines as soon as the page loads.

1. Display the page title (<title>)

The page title is one of the most important TDK elements. ThroughtdkLabel, you can control the display of the title:

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

This code will directly display the title set in the background of the current page (whether it is the home page title, article title, or category title).

If you want the website name to be automatically appended to the end of the title, you cantdkadd in thesiteName=trueparameters:

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

This way, the page title will display as "Current Page Title - Website Name", which is helpful to strengthen brand recognition. You can alsosepcustom separator parameters, for examplesep="_"change the separator to underscore.

For pages that contain hierarchical relationships (such as category pages), if you want to display the parent category name in the title, you can useshowParent=trueparameters:

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

2. Display page keywords (<meta name="keywords">)

Keywords are usually used for<meta name="keywords" content="...">Use in tag.tdkTags get keyword information very directly:

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

3. Display page description (<meta name="description">)

The page description will be displayed in the search results summary. Similarly, you can alsotdkEasily obtain tags:

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

4. Display specification link (<link rel="canonical">)

Standard links are crucial for avoiding duplicate content issues, as they tell search engines which version of the page is the preferred one.The Anqi CMS also supports calling the specification link.

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

This has been used{%- ... %}and{%- if ... %}Hyphen-, to remove extra blank lines that may be generated during template rendering, making the generated HTML code cleaner.

Useful suggestions for setting TDK

  • Unique:Ensure that the TDK of each page on the website is unique and highly relevant, and avoid using the same title and description.
  • Keywords should naturally integrate:Keywords should naturally appear in the title and description, avoid keyword stuffing for ranking purposes, which may be considered as cheating by search engines.
  • Attract clicks:The title and description must not only contain keywords but also be able to attract users to click, allowing users to see your advantages at a glance in the search results.
  • Control length:The title and description have recommended character lengths, and any part beyond that may not be displayed completely. Please adjust according to the latest recommendations from search engines.
  • Standard Link:Take seriously the setting of standard links, especially in multiple versions (such as HTTP/HTTPS, with www/without www, and multilingual) or pages with similar content, and clearly specify the preferred URL.

AnQi CMS offers these detailed features to help you manage website content more efficiently, and provides a friendly SEO foundation, enabling your website to achieve better visibility and performance in search engines.


Frequently Asked Questions (FAQ)

Q1: Why did I set the TDK of the article page, but the website title still shows the homepage?A1: If you used it directly in the template file{% system with name="SiteName" %}or hard-coded it<title>您的网站名称</title>Then no matter how the TDK is set on the article page, it will be overridden by these codes. Make sure your template file (usually) is correctly used inbase.htmlor the page-specific template) in<head>part.{% tdk with name="Title" %}Tags to dynamically retrieve the current page's TDK information. This way, the system can automatically display the corresponding level's TDK based on the type of page accessed.

Q2:<link rel="canonical">What is the role of tags? When do you need them?A2:canonicalThe tag tells the search engine which page is the main and authoritative version, which can solve SEO problems caused by duplicate content. It is strongly recommended to use it when your website has the following situations:

*   同一个内容可以通过多个URL访问(例如 `yourdomain.com/article/1` 和 `yourdomain.com/article?id=1`)。
*   不同页面内容相似度很高,可能会被搜索引擎认为是重复内容。
*   您在其他平台发布了相同内容(例如,文章在AnQiCMS发布后,同步发布到其他媒体平台)。
*   您有AMP页面、打印页面或移动端独立页面。

Use correctlycanonicalHelps to concentrate page weight, avoid dispersion, and thus improve SEO effect.

Q3: Does AnQiCMS support TDK settings for multilingual websites? How can I set different TDKs for pages in different languages?A3: Yes, AnQiCMS supports multilingual website management and TDK settings. You can manage it in the background'sMulti-site managementCreate an independent site for each language version, each site can have its own TDK settings. In addition, AnQiCMS also provides<link rel="alternate" hreflang="xx">The feature of calling the tag, which is crucial for the SEO of multilingual websites. You can combine it with the templatelanguagesto generate these tagshreflangLabel, correctly inform the search engine of the correspondence between your different language pages, helping users in different languages find the content most suitable for them.