In today's digital world, search engines are the main way users discover website content.To help search engines better understand the content on our website, structured data plays a crucial role.Json-LD (JSON for Linking Data) is a lightweight, easy-to-implement standardized data format that can clearly describe web content in a structured way, thereby enhancing the visibility and presentation effects of websites in search results.AnQiCMS as a content management system that focuses on SEO optimization, provides us with a flexible way to configure and display Json-LD, allowing our website content to be more efficiently identified and indexed by search engines.

Why is Json-LD important, how does AnQiCMS empower?

Search engines traditionally rely on keywords, links, and text content when crawling and indexing web pages.But this way is often difficult to capture the deep semantics of the content. Structured data is like providing a 'manual' for search engines, using standardized language (such as the vocabulary list defined by Schema.org) to tell it the meaning of specific elements on web pages, such as 'This is the title of an article', 'This is the price of a product', 'This is the time of the event.'Json-LD due to its simplicity based on JSON and convenience of embedding in HTML, has become the preferred method to achieve this goal.

AnQiCMS knows the importance of search engine optimization, the system is built-in with static, TDK (title, description, keywords) management, Sitemap generation and a series of advanced SEO tools.In terms of structured data, AnQiCMS integrates and customizes Json-LD easily for website operators through its powerful template engine and specialized tag support.This means we do not need to hard-code static information, but can cleverly utilize the dynamic data generation capability of AnQiCMS to automatically package the content of the website backend management (such as article titles, publication dates, product images, etc.) into Json-LD format and present it on the web page for search engines to read.

Practical steps to configure Json-LD in AnQiCMS

To start configuring Json-LD, we first need to clarify its basic structure. Json-LD is a code block written in JSON format, usually included in<script type="application/ld+json">Tags can be placed in HTML documents.<head>or<body>Part. AnQiCMS provides a named{% jsonLd %}The dedicated tag for managing structured data. The exquisite aspect of this tag is that it not only allows us to freely define Json-LD content, but also can intelligently merge with the structured data that the AnQiCMS system may generate by default, and give priority to the fields we define ourselves, thus avoiding redundancy or conflict, ensuring that the final output Json-LD is accurate and error-free.

The following are general steps for configuring Json-LD:

  1. Locate the template file:According to the AnQiCMS template design specification, the template files are usually located in/templatethe directory. For the structured data used throughout the site (such asOrganization/WebSiteType), you can consider using a common template file (such aspartial/header.htmlor directly inbase.htmlof<head>Add it in the region. And for specific types of content (such as articles, products, pages) of Json-LD, it should be configured in the detail page template, for example, the article detail page may bearticle/detail.htmlor{模型table}/detail.html.

  2. Use{% jsonLd %}Tags:In the selected template file, wrap the Json-LD code block in AnQiCMS's{% jsonLd %}Tag inside.

  3. Write Json-LD code and dynamically fill AnQiCMS data:In{% jsonLd %}Inside the tag, you can write JSON-LD code that complies with Schema.org standards.The strength of AnQiCMS lies in its ability to use rich template tags to dynamically retrieve website data and fill in the corresponding fields in Json-LD.

    For example, to configure a blog articleArticleof Json-LD type, we can do this:

    ”`twig {% Ld %}