As an experienced website operation expert, I know that TDK (Title, Description, Keywords) is crucial for the performance of a website in search engines.The Anqi CMS provides us with powerful and flexible TDK management capabilities with its SEO-friendly design philosophy.tdkThe various parameters that need to be paid attention to when using the tag, helping everyone better control this core SEO element.
Navigating the TDK tags of Anqi CMS: Key parameters for refined SEO analysis
AnQi CMS, as a modern content management system developed based on the Go language, took full consideration of the needs of search engine optimization (SEO) from the very beginning. Its built-in "Universal TDK tag" -tdkThe tag is the core tool for fine-grained control of page TDK information.Understanding and flexibly applying the various parameters of this tag is the key to improving the visibility and click-through rate of a website in search engines.
In a macro sense,tdk
Core TDK parameters: define the 'identity' of the page
tdkWhen using tags, the most basic and important parameter is that of,name. It tells CMS which part of the TDK information you want to retrieve.
Page title (
name="Title")This is for each HTML page<head>The most important element, directly affecting the display of the title in the search engine results page (SERP), and the content that users see in the browser tab. Anqi CMS'stdkThe tag can intelligently extract the **title** from the "Home TDK settings" or the "SEO title" of specific documents, categories, or single pages.For example, you would typically write to output the page title:
<title>{% tdk with name="Title" %}</title>Page keywords (
name="Keywords")Although the weight of keywords has decreased in modern SEO, they still serve as auxiliary signals for search engines to understand the theme of a page.Our AnQi CMS allows us to retrieve keywords from the 'Homepage Keywords' or the 'Keywords' field of each content module.Call the keyword in the template:
<meta name="keywords" content="{% tdk with name="Keywords" %}">Page description (
name="Description")The page description is usually displayed as a summary in the SERP to the user and is an important factor in encouraging clicks.A captivating description can effectively enhance click-through rate.The Anqi CMS retrieves this content from the 'Home Description' field or the 'Introduction' field of documents, categories, and single pages.Output the page description:
<meta name="description" content="{% tdk with name="Description" %}">The specification link of the page (
name="CanonicalUrl")Standard links are a tool for dealing with duplicate content on websites.It tells the search engine which URL is the preferred version of the content, thereby avoiding SEO penalties due to similar or duplicate content.This value is usually set in the 'Standard Link' field on the document editing page.Since not all pages need to set up a standard link, we usually check if it exists first.Recommended safe calling method:“
{%- tdk canonical with name="CanonicalUrl" %} {%- if canonical %} <link rel="canonical" href="{{canonical}}" /> {%- endif %}
Advanced control: Make TDK more personalized and strategic
exceptnameparameter,tdkThe tag also provides some more detailed parameters, especially suitable forname="Title"when, helps us build page titles more flexibly.
Appending the website name (
siteName)This boolean type parameter, defaults tofalseIt determines whether the website name is automatically added to the end of the page title. When set totrueIt will retrieve the "site name" from the "Global Feature Settings" and display it at the end of the page title. This is very useful for brand exposure and consistency.For example, if you want the title to display as 'Article Title - AnQi CMS', you can do it like this:
<title>{% tdk with name="Title" siteName=true %}</title>Custom separator (
sep)WhensiteName=trueorshowParent=truethen,sepThe parameter allows you to customize the separator between the page title and the website name or parent title. By default, the separator is a hyphen.-You can change it to an underscore based on the brand or design requirements._Or other characters.For example, to set the separator to an underscore:
<title>{% tdk with name="Title" siteName=true sep="_" %}</title>Display the parent category title (
showParent)This boolean type parameter, defaults tofalseOnly whenname="Title"It takes effect. When set totrueWhen, it will automatically attach the title of its parent category to the current page title.This is very helpful for SEO performance in certain deeply layered, contextually clear category pages.For example, a product detail page may need to display "Product Name - Product Series - Brand Name",
showParent=trueIt can help us build such a hierarchical title.<title>{% tdk with name="Title" showParent=true %}</title>Multi-site ID(
siteId)This is a general parameter, AnQi CMS supports multi-site management. In very rare cases, if you need to call in the template of the current site,other sitesThe TDK information, you can pass throughsiteIdTo specify the ID of the target site. Usually, we operate on the current site, so this parameter is usually not filled in manually.
Practical suggestions and **practice
Priority set by TDK:The AnQi CMS follows a certain priority when obtaining TDK information.Generally, the 'SEO title', 'keywords', and 'description' set for specific pages (such as documents, categories, and single pages) take precedence over the general information in the 'Home TDK settings'.This means we can customize the most accurate TDK for each page.
Combination of dynamic and static:For most general pages, utilize:
tdkThe default label behavior is sufficient. However, for core landing pages, key promoted products, or articles, it is essential to perform fine-grained customized TDK settings in the background.Simple and attractive:
- Title:Keep it within 50-60 characters, including core keywords, and able to attract user clicks.
- Description:Suggest within 120-150 characters to summarize the page content, highlight the selling points or value, and encourage users to visit.
- Keywords:Select 2-3 relevant keywords, avoiding keyword stacking.
- Canonical URL:Ensure that each page has a clear standard URL, even if the content is completely original. This helps to concentrate the SEO weight of the page.
Of Security CMStdkThe tag and its rich parameters provide powerful SEO tools for website operators.By deeply understanding and skillfully using these parameters, we can not only make the website perform better in search engines, but also provide users with clearer and more valuable browsing experiences.
Frequently Asked Questions (FAQ)
Q1: Why is the website name not displayed in my page title, even though I want it to appear?
A1: Anqi CMS'tdkThe tag is being calledname="Title"When, by default, the website name will not be automatically appended.This is because not all pages are suitable to include the website name in the title, especially some long titles may cause truncation.tdkthe tag withsiteName=trueThis parameter. For example:<title>{% tdk with name="Title" siteName=true %}</title>.
**Q2: I modified the TDK information of an article in the background, but the front page did not update