How to set up the `Are the `、` <meta keywords> and <meta description> tags dynamically setting content?</h1> <div class="flex items-center gap-4 text-sm text-gray-400 dark:text-gray-500 mb-6 pb-6 border-b border-gray-100 dark:border-gray-800"> <span>📅 </span> <span>👁️ 40</span> </div> <p>As an experienced security CMS website operations personnel, I know that website SEO optimization is the core work to attract and retain users, and improve the visibility of the website.It is crucial to accurately set the <code><title></code>, <code><meta keywords></code>, and <code><meta description></code> tags (collectively known as TDK, i.e., Title, Description, Keywords) for each page.AnQi CMS was designed with SEO-friendliness in mind from the beginning, providing powerful and flexible TDK dynamic setting capabilities, allowing operation personnel to easily achieve fine-grained control over page metadata.</p> <h3>Importance of Dynamic TDK Setting in AnQi CMS</h3> <p>In today's internet environment, search engines are the main way users discover content.The page's TDK information directly affects the search engine's understanding, indexing, and ranking of the content. A clear, relevant, and attractive title can improve click-through rate, precise keywords help the content be retrieved by the target users, and an attractive description can effectively improve the page's exposure effect.The dynamic TDK setting function provided by Anqi CMS is exactly to enable each page to generate metadata that is most consistent with SEO standards and user search habits according to its unique content, thereby maximizing the value of the content.</p> <h3>Use AnQi CMS backend to configure TDK information</h3> <p>AnQi CMS backend management system integrates the TDK configuration entry in the content publishing and management process, ensuring the synchronization update of content and metadata.For the <strong>home page</strong>, operators can directly configure the global title, keywords, and description of the website under "Background Settings" -> "Home Page TDK Settings".The content set here will serve as the metadata baseline for the entire website, taking effect on the homepage and other pages that have not been configured with specific TDK.Administrators can directly enter exclusive TDK information for this document. If the "Document Introduction" is not manually filled in, the system will intelligently extract the first 150 characters from the document content as the default description, thereby reducing some workload for administrators.For the <strong>category page</strong>, such as article categories or product categories, the editing interface also has fields such as 'SEO title', 'keywords', and 'category description'.By configuring unique TDK for each category, it can better reflect the aggregated theme of the content under the category, improving the search engine performance of the category page. Similarly, the single-page (such as "About Us", "Contact Us") and label detail page (such as the document list under a specific label) also provide similar TDK setting options, ensuring that all important content types on the website can have customized metadata.</p> <h3>Call TDK tags dynamically in the template</h3> <p>Safe CMS uses a Django-style template engine, which implements dynamic data rendering through specific template tags.To dynamically display TDK information in the <code><head></code> area of the front-end page, Anqi CMS provides a powerful <strong>universal TDK tag <code>{% tdk %}</code></strong>.This tag can intelligently obtain and output the most relevant TDK data based on the context of the current page (such as a document page, category page, or home page).<p> In the <code>head</code> section of the template file, it is usually used like this:<code>{% tdk %}</code> tag: <pre><code class="language-twig"><head> <meta charset="UTF-8"> <title>{% tdk with name="Title" siteName=true %}</title> <meta name="keywords" content="{% tdk with name="Keywords" %}"> <meta name="description" content="{% tdk with name="Description" %}"> {%- tdk canonical with name="CanonicalUrl" %} {%- if canonical %} <link rel="canonical" href="{{canonical}}" /> {%- endif %} </head> </code></pre> <p>Let's analyze the usage of the <code>{% tdk %}</code> tag in detail:</p> <ul> <li><p><strong>Page title (<code>title</code>)</strong>: Use <code>{% tdk with name="Title" %}</code> to get the page title.</p></li> </ul></p> <ul> <li><code>siteName=true</code> Attribute: The website name can be automatically appended to the page title.For example, if the page title is “Advantages of AnQi CMS”, and the website name is “AnQi CMS”, then the final displayed title may be “Advantages of AnQi CMS - AnQi CMS”.This is very beneficial for brand exposure.</li> <li><code>sep</code> Attribute: It is possible to customize the separator between the title and the website name, with the default being a hyphen<code>-</code>.For example, the <code>sep="_"</code> will change the separator to an underscore.<li><code>showParent=true</code> attribute: On category or subcategory pages, you can control whether to display the title of the parent category in the title to provide more complete hierarchical information.<li></li> <ul></ul> <li> <p><strong>Page keywords (<code><meta keywords></code>)</strong>:Use the <code>{% tdk with name="Keywords" %}</code> to dynamically insert the keyword list.</p>The AnQi CMS will prioritize the use of specific keywords configured for the current page, and if none are available, it will intelligently fill based on the page type.</p></li> <li><p><strong>Page Description (<code><meta description></code>)</strong>: Page description is dynamically inserted using <code>{% tdk with name="Description" %}</code>.This will prioritize the description of the page-specific configuration, otherwise, it will use the document summary, category summary, or the default system description.</p></li> <li><p><strong>Standard link (<code><link rel="canonical"></code>)</strong>: <code>{% tdk canonical with name="CanonicalUrl" %}</code> can obtain the standard link of the page.The standard link is crucial for avoiding duplicate content issues, concentrating page authority, especially for foreign trade websites. It is recommended to use the <code>if</code> statement to ensure that the tag is only output when there is a standard link.The dynamic TDK mechanism of Anqi CMS ensures that no matter which page of the website you are on, you can obtain the most optimized and accurate metadata information for the current content through a consistent tag calling method, greatly enhancing the SEO efficiency and management convenience of the website.</p> <h3>**Practical and Optimization Suggestions</h3> <p>Setting TDK dynamically is not a one-time task, continuous optimization is the key to website operation.</p> <p>First, <strong>ensure the uniqueness and relevance of the content</strong>. The title and description of each page should accurately summarize the core content of the page, avoiding general or repetitive expressions.Keywords should match the content closely, avoiding irrelevant or excessive stacking.</p> <p>Secondly, <strong>Make good use of the TDK inheritance and override mechanism of Anqi CMS</strong>.Use the background to set TDK for the homepage, category, document, single page, and tag respectively, which can form a clear metadata hierarchy structure. When there is no specific setting for the page, the system will automatically provide default values, but manual optimization is still recommended for key pages to achieve **effect.**</p> <p>Moreover, <strong>focus on user intent and click-through rate</strong>. The title and description are not only for search engines but also for users.When writing, simulate the user's search scenario so that the user can see the value of the page at a glance, thereby increasing the click-through rate. Finally, <strong>Regularly monitor and adjust</strong>.By using traffic statistics and crawler monitoring tools, analyze the TDK performance of the page. If some pages have low click-through rates or poor rankings, it is necessary to adjust their TDK content in a timely manner and conduct A/B testing to find the **solution.The "Advanced SEO Tools" and "Traffic Statistics" features of AnQi CMS can provide you with data support. <h3>Common Questions and Answers (FAQ)</h3> <p><strong>Q1: Why is my page title not displaying as I set the "SEO Title"?</strong> A1: Please check whether the <code><title></code> tag is used correctly in your template file <code>{% tdk with name="Title" %}</code> tag.At the same time, confirm whether the "SEO title" field of this page has been filled in on the content management backend. The TDK tags of AnQi CMS will prioritize reading the SEO settings at the page level, followed by the content title, and finally the global title of the website.If your template uses the <code>siteName=true</code> attribute, the site name will also be appended to the title, which may make you feel that the title is not completely the 'SEO title' you manually entered.<p></p> <p><strong>Q2: What will happen if I do not set the 'Document Introduction' or 'Category Introduction' for the document or category?</strong> A2: If these summary fields are not manually set, Anqi CMS will intelligently extract a portion of the text from the document content or category content as the page's <code><meta description></code> content.This is usually the first 150 characters or so of the content. Although the system provides automatic filling, we still recommend that you write and optimize these descriptions manually to better control the attractiveness and keyword density.<p></p> <p><strong>Q3: Can I set a universal TDK template for a specific content model (such as </strong> A3: The TDK tag design concept of Anqi CMS supports high customization, and it will prioritize reading the most specific TDK configuration of the current page.Although there is no direct feature to provide a 'Model Level TDK template', you can add custom fields (such as 'Product SEO Description Template') in the content model, and then judge the existence of these custom fields in the template logic. If they exist, they should be used preferentially.Or, by using the category TDK settings under the content model, the TDK of products under the same product category can be managed uniformly, which can also achieve a similar effect.</p> </article> <!-- Prev / Next -->\n \n <div class=\ </span> </a> </div> <div class="flex-1 justify-end"> <a href="https://en.anqicms.com/blog/3855.html" class="prev-next-link group flex flex-col items-end px-5 py-3 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-blue-500 dark:hover:border-blue-400 transition-all duration-200 min-w-[140px]"> <span class="text-xs text-gray-400 dark:text-gray-500 mb-0.5">Next</span> <span class="text-sm font-medium text-gray-700 dark:text-gray-300 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors flex items-center gap-1"> How to build a multi-level navigation menu in AnQiCMS templates? <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path> </svg> </span> </a> </div> </nav> </div> <!-- Related articles --> <div class="mt-10"> <h3 class="text-base font-semibold text-gray-800 dark:text-gray-200 mb-4">Related articles</h3> <div class="grid sm:grid-cols-2 gap-4"> <a href="https://en.anqicms.com/blog/3853.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to call the contact information set in the AnQiCMS background template?As an experienced senior person proficient in Anqi CMS content operation, I am well aware that the efficiency of website information management is crucial for attracting and retaining users.Especially contact information such as this basic yet crucial information, its unified management and flexible invocation is the foundation for improving operational efficiency and ensuring information accuracy. Below, I will introduce in detail how to call the contact information set in the AnQiCMS template. *** ### Unified Management of AnQiCMS Backend Contact Information Contact information for the website is centrally managed in AnQiCMS. <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> </a> <a href="https://en.anqicms.com/blog/3852.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to obtain and display the website name and logo in AnQiCMS templates?As an experienced security CMS website operations personnel, I am well aware of the importance of effectively displaying brand information in templates for user experience and brand recognition.The following article will provide a detailed guide on how to obtain and display the website name and logo in the AnQiCMS template. ### Practical Guide to Obtaining and Displaying the Website Name and Logo in AnQiCMS Template Clearly displaying brand identity is a crucial element in attracting users and building trust in any website operation.The website's name and logo are the core visual elements of the brand</p> <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> </a> <a href="https://en.anqicms.com/blog/3851.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">What template engine syntax does AnQiCMS support, and what are the formats of its variables and tags?As an experienced AnQiCMS website operations manager, I am well aware of the importance of an efficient and easy-to-use template system for website content management and user experience.AnQi CMS performs very well in this aspect, it provides a powerful and flexible template mechanism, making content presentation intuitive and highly customizable.Now, let's delve into the syntax, variables, and tag formats supported by AnQiCMS templates. The core of AnQiCMS's template system lies in its support for **Django template engine syntax**, and its expression is similar to popular </p> <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> </a> <a href="https://en.anqicms.com/blog/3850.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to use custom templates for specific documents, categories, or single pages in AnQiCMS?As an experienced AnQiCMS website operator, I fully understand the importance of content in attracting and retaining users, and a flexible template system is the key to personalized content display.AnQiCMS provides powerful custom template features, allowing operations personnel to create unique page layouts and styles according to different content needs. ### Overview of AnQiCMS Template Working Principle AnQiCMS's template system is based on Go language and adopts syntax similar to Django's template engine, files are formatted with `</p> <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> </a> <a href="https://en.anqicms.com/blog/3855.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to Build Multilevel Navigation Menus in AnQiCMS Templates?<h4> <p class="text-xs text-gray-400 mt-1 line-clamp-2">Hello, I am the familiar Anqi CMS website operation veteran you know.The importance of navigation menus in daily website maintenance and content optimization is self-evident; they are not only guides for users to browse the website but also crucial for search engines to understand the website structure.Today, let's delve into how to build a flexible and efficient multi-level navigation menu in the AnQiCMS template. ### Understanding the AnQiCMS Navigation System The core of building a multi-level navigation menu in AnQiCMS lies in the flexible application of the backend navigation settings and frontend template tags. <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> <a href="https://en.anqicms.com/blog/3856.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to generate breadcrumb navigation paths in AnQiCMS templates?</h4> </a> As an experienced security CMS website operation personnel, I am well aware of the importance of a clear and efficient website navigation system for user experience and Search Engine Optimization (SEO).Breadcrumbs navigation is an important part of website auxiliary navigation, which can intuitively show the user's position on the website and provide a convenient return path. Anqi CMS, with its flexible template engine, makes it easy and efficient to generate breadcrumbs in website templates. ### In AnQiCMS template, generate breadcrumb navigation path Integrate breadcrumb navigation in AnQiCMS template</p> <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> </a> <a href="https://en.anqicms.com/blog/3857.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to list category information in AnQiCMS template by module or parent relationship?The detailed guide on how to list category information by module or parent relationship in AnQiCMS (AnQiCMS) template As an experienced AnQiCMS website operator, I am well aware of the importance of content organization.A clear and easy-to-navigate classification system not only improves user experience but is also the foundation of SEO optimization. Anqi CMS, with its flexible content model and powerful template tag system, provides us with multiple ways to display classification information in website templates according to module or parent-child relationship.This article will deeply explore how to make efficient classification lists by utilizing these features. ###<p></p> <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> <a href="https://en.anqicms.com/blog/3858.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to obtain and display detailed information about specified categories in AnQiCMS templates?</h4> </a> As an experienced CMS website operation personnel, I know that it is crucial to display content efficiently and accurately in the template for the attractiveness and SEO performance of the website.Categorization information is the core of website architecture, able to accurately obtain and present on the front-end page, not only improving user experience, but also providing a clear structure for search engine crawling.Today, let's discuss in detail how to obtain and display the detailed information of a specified category in the Anqi CMS template. ### Understanding Anqi CMS Template and Content Display Basics Anqi CMS uses syntax similar to the Django template engine</p> <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> </a> </div> </div> </div> </div> <!-- ==================== FOOTER ==================== --> <footer class="border-t border-gray-200 dark:border-gray-800 bg-white dark:bg-[#0f172a]"> <div class="max-w-[1440px] mx-auto px-4 sm:px-6 lg:px-8 py-12"> <div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-8"> <div> <div class="flex items-center gap-2.5 mb-4"> <div class="w-8 h-8 flex items-center justify-center"> <img src="https://en.anqicms.com/uploads/202606/15/2144e205d561d0a5.webp" alt="搜外科技安企CMS" /> </div> <span class="text-lg font-bold text-gray-800 dark:text-gray-100">搜外科技安企CMS</span> </div> <p class="text-sm text-gray-500 dark:text-gray-400 leading-relaxed">Based on GoLang, memory usage is reduced by about 80% compared to PHP CMS, supports multi-site, multi-language, AI intelligent dialogue and tool calls, and is the preferred solution for small and medium-sized enterprises to build high-performance websites.</p>\n <div class=\ al.src = "/api/log?action=views&code=200&id=3854&path=http%3A%2F%2Fwww.anqicms.com%2Fblog%2F3854.html&type=archive&nonce="+Date.now();document.body.appendChild(al); })(); </script> </html>