In today's highly competitive online environment, it is more important than ever to make your website content stand out in search engines.It is no longer enough to rely solely on keyword stuffing and traditional SEO methods to achieve **effectiveness**.Structured data, especially structured data implemented through Json-LD format, is becoming a key factor in improving search engine display results and attracting more targeted users' attention.AnQiCMS (AnQiCMS) knows this and provides powerful and flexible features to help you easily master this technology.

Structured data: Give search engines a 'map'

Imagine a search engine spider crawling your website, like a person visiting a strange city for the first time.The content is traditional, like the scattered buildings and landmarks in this city, which can be seen but not necessarily known for their specific uses and importance.And structured data, like an accurately drawn map and a detailed guidebook, clearly tells search engines that certain text on your page is an article title, a certain number is the product price, a certain image is the main product image, and a certain date is the publish time, etc.

Json-LD (JSON for Linking Data) is one of the structured data formats recommended by mainstream search engines such as Google and Baidu. It is embedded into web pages in the form of JavaScript objects.<head>or<body>The content will not affect the display of the page, but it can provide rich contextual information for search engines.When search engines understand these structured data, your website content has the opportunity to be presented in a more attractive form on the search results page, such as 'rich snippets' with images, ratings, authors, prices, and other information, thereby significantly increasing the click-through rate.

How AnQiCMS intelligently generates basic Json-LD

This means that when you publish a new article, a new product, or create a new single page, the Anqi CMS will automatically generate the corresponding Json-LD structured data based on the title, description, thumbnail, publication time, and other information you fill in the backend. For example, for an article, it may automatically identify asArticleType, and fill in the core information such as article title, publish date, author, main image, etc.This automated capability greatly simplifies the deployment process of structured data, allowing you to focus more energy on content creation itself, without worrying about complex code writing.

The flexible customization of Json-LD: Deeply optimize your content

Although the automatic generation feature of AnQi CMS is already very powerful, different business scenarios and content types may require more specific and richer structured data descriptions. For example, an online course website may needCourseType of data, something a local merchant might needLocalBusinessType of data, or you may want to add more detailed review rating information for the article.

For this, AnQi CMS provides highly flexible customization capabilities. You can use{% jsonLd %}...{% endjsonLd %}Tag, customize the Json-LD content in the template.The strength of this tag lies in its ability to allow direct referencing of various template tags and variables provided by Anqi CMS within Json-LD scripts, achieving dynamic data filling.

In particular, when you use{% jsonLd %}When labeling, you can write JSON code that conforms to the JSON-LD syntax within it.The Anqi CMS will intelligently merge the fields you customize with the default Json-LD data generated by the system.If your custom field conflicts with the default field, your custom content will take precedence over the default value, thus achieving precise control.

Let's look at a simple example, assuming you want to add a custom author information to the article page's Json-LD and make sure the image address is dynamically retrieved:

{% jsonLd %}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "{{ archive.Title }}",
  "image": [
    "{% archiveDetail with name='Logo' %}" // 动态获取文章封面首图
  ],
  "datePublished": "{{ stampToDate(archive.CreatedTime, "2006-01-02T15:04:05Z07:00") }}", // 动态格式化发布时间
  "author": {
    "@type": "Person",
    "name": "您的定制作者名称" // 您可以固定一个作者名称
  },
  "publisher": {
    "@type": "Organization",
    "name": "{% system with name='SiteName' %}", // 动态获取网站名称
    "logo": {
      "@type": "ImageObject",
      "url": "{% system with name='SiteLogo' %}" // 动态获取网站Logo
    }
  },
  "description": "{{ archive.Description|striptags|truncatechars:150 }}" // 动态获取文章描述,并进行截断和去除HTML标签处理
}
</script>
{% endjsonLd %}

In this example, we not only defined the article type (Article), but also utilized the Anqi CMS.{{ archive.Title }}/{% archiveDetail with name='Logo' %}/{{ stampToDate(...) }}and{% system with name='SiteName' %}Tags such as [en], dynamically filled with article titles, images, publication time, website name, and Logo, etc. Even the description can be filtered (striptags) and truncated (truncatechars),To better comply with the requirements of JSON-LD, this combined usage allows you to enjoy the convenience of Anqi CMS while also enabling in-depth customization according to your business needs.

The actual value brought by Json-LD

By generating and customizing Json-LD structured data through Anqi CMS, your website will enjoy multiple benefits:

  • Improve search engine visibility:Search engines can better understand your content, thus providing richer displays in search results, such as article thumbnails, rating stars, product prices, etc., all of which can greatly attract users' attention.
  • Increase Click-Through Rate (CTR):The rich summary is more prominent visually, which often attracts more users to click. Even if the ranking does not increase significantly, it can bring more high-quality traffic.
  • Occupying a place in the knowledge panel and selected summary:Structuring your data helps your content be recognized by search engines as an authoritative information source, thereby giving it a chance to appear in the top selection of search results or on the right-hand knowledge panel.
  • Be prepared for future trends:With the popularity of voice search and AI interaction, structured data will become the foundation for machine understanding and content recommendation.

In summary, Anqi CMS provides the ability to automatically generate and flexibly customize Json-LD structured data, allowing you to optimize the search engine display results of your website more efficiently and accurately.Whether you are a beginner user or an experienced operator, you can easily build a more competitive website with the help of Anqi CMS.


Common Questions (FAQ)

1. What is Json-LD, and how is it different from traditional SEO?

Json-LD is a structured data markup language based on JSON format, used to embed descriptive information in web pages to help search engines