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>.