How to customize the separator of the `sep` attribute for the AnQi CMS page title?

Calendar 👁️ 67

In today's digital world, every detail of a website can affect its performance in search engines and the first impression of users.The page title (Title) serves as the 'face' of the website content, its importance is self-evident.It is not only a key clue for search engines to understand the theme of a web page, but also a direct factor for users to decide whether to click in the search results.

AnQiCMS (AnQiCMS) understands this and is committed to providing users with an efficient, customizable content management solution, including fine-grained control over page titles.As a senior website operations expert, I know that every minor adjustment can bring long-term value.Today, let's delve into a very practical and easily overlooked detail feature of Anqi CMS - how to usesepAttribute custom page title separator, thus further optimizing your website SEO and brand display.

Page title: Details are the essence.

In website operation, the composition of page titles usually includes multiple parts, such as article titles, category names, and even website brand names.These parts need a clear separator to distinguish them, which improves readability.A safe CMS handles page TDK (Title, Description, Keywords) information by template in the{% tdk %}Tags to dynamically generate and call.

By default, if you do not specify it explicitly, AnQi CMS will use a half-width hyphen-As a separator between different parts of the page title. For example, if your article title is 'AnQi CMS Quick Start Tutorial', and the website name is 'AnQi Content Management System', the final page title may display as 'AnQi CMS Quick Start Tutorial - AnQi Content Management System'.Such a default setting is functionally complete, but in some cases, you may want to use other symbols to enhance the visual effect or match the brand style.

The charm of custom delimiter:sepIn-depth analysis of properties

In order to meet this refined requirement, Anqi CMS providessepProperty. This property allows you to calltdkWhen getting the page title, you can freely specify the separator for each part of the connection title.

sepThe usage of the attribute is very intuitive, it acts astdka parameter of the tag, used to obtainTitleThe delimiter is defined at-But you can easily change it to any character or string you want.

Let's understand its usage with a simple example:

If you want to use an underscore_Just write like this in the template:

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

This way, your page title may become "AnQi CMS Quick Start Tutorial_ AnQi Content Management System".

In addition to underscores, you can also try other common symbols to find the separator that best suits your website style and SEO strategy. For example:

  • Use the pipe symbol and add space to increase the visual separation between parts of the title:
    
    <title>{% tdk with name="Title" sep=" | " %}</title>
    
    The effect might be: 'AnQi CMS Quick Start Tutorial | AnQi Content Management System'
  • Use double colons to create a more formal or unique feeling:
    
    <title>{% tdk with name="Title" sep=" :: " %}</title>
    
    The result might be: "AnQi CMS Quick Start Guide :: AnQi Content Management System"
  • Even commas can be used to increase a list-like reading experience in certain contexts:
    
    <title>{% tdk with name="Title" sep=", " %}</title>
    
    The result might be: "AnQi CMS Quick Start Tutorial, AnQi Content Management System"

This seemingly minor change can bring significant brand recognition and SEO detail optimization to your website.A clear, beautiful title separator that aligns with the brand style, making it easier for users to identify your website among a vast number of search results, thereby improving click-through rates.

How to modify and take effect in practical application?

To customize the title separator in AnQi CMS, you need to edit your template file. Usually, the page title'smetaInformation is concentrated in the common header template of the website, for examplebase.htmlOr through{% include "partial/header.html" %}Introducedheader.htmlfile.

  1. Locate the template file:According to the template design conventions of Anqi CMS, first find the folder of the template you are currently using, and look for the file responsible for outputting<head>the part (especially<title>the tag) file. This is usuallybase.htmlor is referred to as beingbase.htmla public fragment file is referred.
  2. Find{% tdk %}Tags:In the file, find the attribute used to output the page title and specify the desired delimiter.{% tdk with name="Title" %}.
  3. addsepattribute:Inname="Title"After, addsepThe attribute will also control the unification.

It is worth mentioning,sepThe attribute will also control the unification.tdkThe style of other attributes related to the title in the tag. For example, if you enablesiteName=trueto add the website name at the end of the title ({% system with name="SiteName" %}value), orshowParent=trueto display the parent category title, thensepProperties will seamlessly integrate the separation between these parts. For example:

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

This will ensure that your entire page title structure maintains a consistent style.

Optimization suggestions for SEO and user experience

Choose a suitable separator, not arbitrarily, as it concerns the overall image and SEO effect of the website. Here are some suggestions:

  • Maintain consistency:Once a delimiter has been chosen, try to maintain consistency throughout the entire site. This helps to strengthen the brand image and allows search engines to form a unified understanding of your website structure.
  • Maintain readability:Avoid using overly complex or long separators, which may reduce the efficiency of users quickly understanding the title in search results. Conciseness is the choice.
  • Consider character limitations:AlthoughsepIt is usually short, but the title length is still an important consideration for SEO. Make sure that the custom delimiter does not exceed the display length limit of the current search results.
  • Test effect:Check the title display effect of the website in the browser tab, favorites, and more importantly, the search engine results page (SERP) after modification, to ensure that it meets expectations and is attractive.

Summary

Of Security CMSsepThe attribute provides a simple and powerful tool that allows website operators to control the display of page titles more finely.By cleverly using this attribute, you can not only make the website title more in line with the brand character, but also attract users' attention with a clearer and more professional posture among the vast search results.On the path to excellence in SEO and user experience, every detail is worth our attention and optimization, andsepThe attribute is another tool provided by Anqi CMS for you.


Frequently Asked Questions (FAQ)

1.sepDoes the attribute directly affect the SEO ranking of the website?

sepThe attribute itself does not directly improve your keyword ranking. However, a clear, beautiful, and brand-tune title separator can indirectly affect SEO, mainly through improving user experience and increasing click-through rate (CTR).When the title is more readable and professional in the search results, users are more likely to click on your link, and click-through rate is one of the important indicators for search engines to judge the relevance and quality of the page.

2. On which pages can I use Anqi CMS?sepProperty comes from custom title separator?

sepProperty is used anywhere{% tdk with name="Title" %}A tag to output the page title template is valid in all template files. This means you can use it on various pages of the website (including the homepage, article detail page,

Related articles

What is the difference between `siteName=true` and `siteName=false` in the Title tag of AnQi CMS?

The secret of the Title tag in AnQi CMS: Deep analysis of `siteName=true` and `siteName=false`The title tag acts as the 'face' of a webpage, its importance is self-evident.It is not only a key signal for search engines to understand the theme of a page, but also the primary information that users determine at a glance in search results.

2025-11-07

What parameters should be noted when using the `tdk` tag of AnQi CMS?

As an experienced website operations expert, I know that TDK (Title, Description, Keywords) are crucial for the performance of a website in search engines.AnQi CMS provides us with powerful and flexible TDK management capabilities with its SEO-friendly design philosophy.Today, let's delve into the various parameters that need to be paid attention to when using the `tdk` tag in Anqi CMS, to help everyone better master this core SEO element.

2025-11-07

How to customize the display logic of Title, Description, and Keywords in AnQi CMS template?

As an old soldier who has been deeply involved in website operations for many years, I know that every detail can affect the performance of a website in search engines.Among them, Title (title), Description (description), and Keywords (keywords) - commonly referred to as TDK, are also the foundation of website SEO optimization.They are like the 'front door' and 'map' of a website, directly telling search engines and users what your page is about.

2025-11-07

How long after setting the TDK tag of AnQi CMS can it be indexed by search engines?

How long after setting the TDK tags of AnQi CMS can it be indexed by search engines?A deep analysis by an operations expert In the daily work of website operations, the setting of TDK (Title, Description, Keywords) tags is undoubtedly the cornerstone of SEO optimization.They are the key windows for search engines to understand the theme and content of a page.

2025-11-07

How to use the `showParent=true` attribute in AnQi CMS to display more hierarchical information in the Title?

AnQi CMS, as an enterprise-level content management system that deeply understands the way of content operation, its powerful functional design reflects a profound understanding of user needs and search engine optimization.The importance of page title (Title) in website operation is self-evident, it is not only the first entry point for users to click, but also the core basis for search engines to judge the relevance of page content.Today, let's delve into how AnQi CMS cleverly utilizes the `tdk` tag's `showParent=true` attribute to give the page title more rich and hierarchical information

2025-11-07

What is the correct way to call `CanonicalUrl` in the `tdk` tag of AnQi CMS?

As an experienced website operations expert, I know that search engine optimization (SEO) plays a key role in the success of a website, and one often overlooked but crucial detail is the correct use of `Canonical Url`. In such a powerful content management system as AnQiCMS, we also need to master the practice of calling `CanonicalUrl` with the `tdk` tag to ensure the uniqueness and authority of the website content, thereby achieving better performance in search engines.

2025-11-07

What is the role of the variable name of the `tdk` tag in the AnQi CMS template?

## The `tdk` tag in Anqi CMS template: The key to mastering SEO and building high-performance websites As an experienced website operations expert, I deeply understand the core status of TDK (Title, Description, Keywords) in website SEO.They are not only key signals for search engines to understand web content, but also the first line of defense to attract users and increase website traffic.In daily content operations, how to efficiently and flexibly manage TDK is an important factor in enhancing website competitiveness. Today

2025-11-07

How can AnQi CMS automatically generate Sitemap to help search engines crawl TDK information?

In today's highly competitive online environment, it is the goal of every website operator to efficiently have their website content discovered, crawled, and accurately displayed by search engines.Among these, the TDK (Title, Description, Keywords) information of the website, is like the "business card" of your website presented on the search engine results page (SERP), and its quality directly affects the click-through rate and user access.However, how can we ensure that these carefully prepared TDK information can be effectively read by search engine spiders and presented to users?AnQi CMS knows this pain point

2025-11-07