How to set the SEO title, keywords, and description for a single page in AnQiCMS, and customize its template?

Calendar 👁️ 77

Manage website content in AnQiCMS, a single page (also known as a standalone page) is a very practical feature, such as common pages like 'About Us', 'Contact Information', etc.These page contents are relatively fixed, but their SEO performance and display form are crucial for the overall image and user experience of the website.AnQiCMS was designed with SEO-friendliness in mind and offers flexible template customization capabilities, allowing us to easily set up exclusive SEO information and customize the display templates for each single page.

Configure a dedicated SEO title, keywords, and description for a single-page

To improve the search engine visibility of a single page, setting accurate SEO titles (Title), keywords (Keywords), and descriptions (Description) is a fundamental and crucial step.In AnQiCMS, this process is intuitive and easy to operate.

First, you need to log in to the AnQiCMS backend management interface, find "Page ResourcesHere will be listed all the single pages of your website.Whether you are creating a new page or editing an existing page, you will enter a detailed editing form.

In this form, you will see several fields specifically used for SEO optimization:

  • Page NameThis is the page title that users see on the website.
  • SEO titleThis field is specifically prepared for search engines.<title>Label content.Generally, we would fill in a title here that is more attractive than 'Page Name' and contains core keywords.A good SEO title should be able to summarize the page content and attract users to click.AnQiCMS allows you to define a title different from the page name here to meet more refined SEO needs.
  • KeywordsYou can set relevant keywords for the page here. It is recommended to use English commas between multiple keywords,Separate it, which helps search engines better understand the core theme of the page.Choose keywords that are highly relevant to the page content and have search volume, which can effectively improve the ranking of the page in related search results.
  • Single page introductionThe content of this field will be used as the page description (<meta name="description">Tag) display to search engines.A concise and accurate description that not only attracts users to click but also helps search engines understand the main purpose of the page.It is usually recommended not to exceed 150 characters and to naturally integrate core keywords.

In addition to these, AnQiCMS also provides the option of 'custom URL'.By default, the system will automatically generate a pinyin format URL alias based on the page name you enter, which is very helpful for optimizing pseudo-static URLs.If you are not satisfied with the automatically generated URL, you can also enter it manually, but make sure it is unique throughout the site.A concise and meaningful URL structure, which is beneficial for user experience and search engine crawling.

Custom single page template: Create a personalized display

The strength of AnQiCMS lies in its flexible template customization capabilities. You can use completely different templates for different single-page applications, achieving highly personalized content display.

On the single-page editing interface, you will see an input box named "Single Page Template". This is where you specify the page template.

The template files of AnQiCMS are stored by default in/templatethe directory, and.htmlis used as the suffix. The system has a set of default naming rules, for example, the default template path for a single page ispage/detail.htmlIf you want to set a dedicated template for a single-page with ID 10, you can name the template file aspage/10.htmlthe system will automatically apply it.

But a more flexible way is to use a custom template name. For example, if you have a single-page "About Us" that you want to have a unique design, you can create a name for itpage/about_us.htmlthe template file. Then simply fill in the input box for "Single Page Template"about_us.html(No need to fill in)page/prefix), the system will automatically load this exclusive template.

Inside a custom template file, you can use the Django-like template engine syntax provided by AnQiCMS to display page content and SEO information. For example, to call the title, description, and content of a single page, you can usepageDetailTags:

  • {{ pageDetail with name="Title" }}Get page title
  • {{ pageDetail with name="Description" }}Get page description
  • {{ pageDetail with name="Content" | safe }}Get page content (note|safeTo prevent HTML content from being escaped)

To ensure the SEO effect of the customized template, you should also add in the template's<head>partly usedtdktag to dynamically output SEO information:

  • <title>{% tdk with name="Title" siteName=true %}</title>: Output the page title and optionally add the website name as a suffix.
  • <meta name="keywords" content="{% tdk with name="Keywords" %}">: Output the page keywords.
  • <meta name="description" content="{% tdk with name="Description" %}">: Output the page description.

In this way, even if you switch the page SEO settings, the template can automatically update this information without modifying the code, greatly improving operational efficiency.

Operation process example: Take the "About Us" page as an example

Suppose we want to create a single page "About Us" and customize its SEO and template:

  1. Create or edit a single pageIn AnQiCMS backend, navigate to "Page Resources" -> "Page Management", click "Add New Page" or edit an existing page.
  2. Configure SEO information:
    • Enter the page name: About Us
    • Enter the SEO title: About AnQiCMS - Efficient Corporate Website Builder Expert
    • Fill in the keyword: AnQiCMS, Corporate website, Content management, Go language CMS
    • Fill in the "Single Page Introduction" to understand the core strengths, development philosophy, and team of AnQiCMS, providing your enterprise with an efficient and secure website content management solution.
    • Enter in the 'Custom URL': about-us
  3. Specify a custom templateEnter in the 'Single Page Template' box:about_us.html.
  4. Create a template file: Through FTP or the 'Template Design' function in the background, in the current template theme'spage/Create a file namedabout_us.html.
  5. write the template contentInabout_us.htmlfile, you can construct it like this:
    
    <!DOCTYPE html>
    <html lang="zh-CN">
    <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" %}">
        <link rel="stylesheet" href="{% system with name="TemplateUrl" %}/css/style.css">
    </head>
    <body>
        <!-- 引入公共头部 -->
        {% include "partial/header.html" %}
    
        <main class="main-content">
            <section class="about-hero">
                <h1>{{ pageDetail with name="Title" }}</h1>
                <p class="page-description">{{ pageDetail with name="Description" }}</p>
            </section>
    
            <section class="about-content">
                {{ pageDetail with name="Content" | safe }}
            </section>
        </main>
    
        <!-- 引入公共底部 -->
        {% include "partial/footer.html" %}
    </body>
    </html>
    
  6. save and publish: Save the page configuration and template file, then visit your "About Us" page to see the customized display and SEO effects.

By using these features provided by AnQiCMS, you can provide SEO optimization for each single page of the website, and flexibly design its user interface, thereby better serving your website's operational goals.


Frequently Asked Questions (FAQ)

Q1: What will AnQiCMS do if I don't set the SEO title, keywords, and description for a single page?

A1: If you have not manually set the SEO title, keywords, and description for a single page, AnQiCMS will take the default strategy to fill in this information.In most cases, the SEO title will use the "page name" you set, the keywords may be left blank or use the default keywords from the global settings, and the page description will be automatically extracted from a portion of the text at the beginning of the single page content.We still strongly recommend that you fill in this information manually for each important page to achieve better SEO effects.

Q2: Can I get the content of other single pages in a custom template? For example, display part of the 'About Us' single page content in the homepage template?

A2: It is completely okay. AnQiCMS template tags are very flexible. You can usepageDetailLabel and specify its ID to get the content of other single pages. For example, if the "About Us" page ID is 5, you can call it like this in any template:{% pageDetail aboutPage with name="Content" id="5" %}{{ aboutPage|safe }}This will fetch the content of a single page with ID 5 and display it, allowing you to easily reuse content modules between different pages.

Q3: How to ensure the SEO effect of a custom single-page template?

A3: Ensure the SEO effect of the custom template, the key is to use the SEO-related template tags provided by AnQiCMS correctly. First, in your custom template's<head>Area, must be usedtdkTags to dynamically output the page's SEO title, keywords, and description instead of hardcoding this information.This way, no matter how you adjust the page SEO settings in the background, the front-end can update in real time.Secondly, ensure the correct use of the H1 tag (page title) in the template content, and that the page structure is clear and easy for search engines to understand.{% tdk with name="CanonicalUrl" %}Add it to the tag<head>.

Related articles

How to build a multi-level menu and display it on the front end using the AnQiCMS navigation list tag (`navList`)?

The navigation system of the website is the core bridge for users to interact with content, especially for sites with rich content or deep levels, a clear and efficient multi-level menu is crucial.AnQiCMS provides a powerful and flexible navigation list tag (`navList`), allowing you to easily build and display a fully functional multi-level menu.To make full use of the navigation function of AnQiCMS, we need to start from the background configuration and then proceed to the rendering of the front-end template, step by step building the menu structure we desire.### One, Back-end Navigation Configuration

2025-11-08

How to use the AnQiCMS custom field feature to add additional display parameters to the product detail page?

In a content management system, the product detail page often needs to display more rich and specific product parameters than basic information to meet the personalized needs of different industries and products.AnQiCMS provides a powerful custom field feature, allowing us to easily add these additional display parameters to the product detail page without modifying the core code.The next step is to detail the three-step process of using AnQiCMS custom fields to inject more vitality into your product detail page.

2025-11-08

How to implement scheduled article publishing in AnQiCMS to ensure content is displayed to users as planned?

## Content publishing no longer chaotic: AnQiCMS's scheduling feature helps you easily plan your content schedule In the fast-paced digital content world, maintaining the rhythm of content publishing is crucial.Whether it is a small and medium-sized enterprise, a self-media operator, or a multi-site manager, everyone knows that presenting content to users according to a plan can effectively enhance brand image and increase user stickiness.However, manual publishing is not only time-consuming and labor-intensive, but it is also easy to disrupt the established plan due to various unexpected situations.AnQiCMS is well-versed in this, and its built-in scheduled publishing function is exactly designed to solve these pain points

2025-11-08

How to configure the recommended attributes of articles (such as headlines, sliders) in AnQiCMS and display them in different areas on the front end?

Manage website content in Anqi CMS and make important information stand out to users, which is crucial for enhancing user experience and content marketing effectiveness.Among them, the recommendation attribute configuration of the article and the front-end display are important functions to achieve this goal.By reasonable settings, you can easily display articles such as "headline", "slide" and the like in different positions on the website, attracting visitors' attention.### First part: Set recommendation properties for articles in the background Firstly, we need to log in to the Anqi CMS backend management interface to assign "recommendation properties" to specific articles

2025-11-08

How to use the `thumb` filter to get a thumbnail image in AnQiCMS?

In a content management system, image thumbnails play a crucial role.They can not only accelerate page loading speed and optimize user experience, but also maintain visual consistency in various layouts, especially in list pages, recommendation positions, and other scenarios, which is particularly important.AnQiCMS (AnQi Content Management System) provides us with a convenient way to manage and access these thumbnails, where the `thumb` filter is a powerful tool to achieve this function.

2025-11-08

How to apply the `thumb` filter to the image URL in the AnQiCMS template?

In website content operation, images play a crucial role, as they can not only attract users' attention but also effectively convey information.However, the original large image that has not been optimized often becomes a bottleneck in website loading speed, affecting user experience and even search engine rankings.AnQiCMS fully understands this and has provided a simple yet powerful tool for content operators to solve this problem - that is the **`thumb` filter`**.Then, how is the `thumb` filter applied to the image URL in the AnQiCMS template?

2025-11-08

How to configure AnQiCMS to automatically generate thumbnails for uploaded images?

In website operation, high-quality images can significantly improve user experience and content attractiveness.However, the original large image not only occupies valuable server space, but also slows down the website loading speed, affecting SEO performance.AnQiCMS as an efficient content management system fully considers this point, providing users with flexible and powerful automatic thumbnail generation for images.By configuring it reasonably, you can enable the system to intelligently process uploaded images, automatically generate thumbnails that meet the needs of your website, and achieve a balance in the visual presentation and performance optimization of the website content.

2025-11-08

What thumbnail processing methods does AnQiCMS provide (such as cropping, scaling, padding)?

In website operation, high-quality image content is undoubtedly the key to attracting users and enhancing brand image.While thumbnails, as the first impression of content, their display effect directly affects the user's willingness to click and the overall browsing experience.Luckyly, AnQiCMS provides very flexible and powerful features for image processing, especially for thumbnails, allowing us to easily achieve various thumbnail effects according to different scenarios and design requirements.### Smart Thumbnail, making image management more convenient AnQiCMS deeply understands the pain points of content operators, especially in image processing

2025-11-08