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,