How to embed Breadcrumb navigation (`BreadcrumbList`) structured data in Json-LD?

Calendar 👁️ 116

Embed breadcrumb navigation in Json-LD (BreadcrumbList) Structured Data: AnQiCMS Practice Guide

As an experienced website operations expert, I am well aware of the importance of structured data in modern SEO optimization.It not only helps search engines better understand the content of the page, but also has the opportunity to obtain "rich snippets" in the search results, thereby improving click-through rates and bringing more high-quality traffic.BreadcrumbListStructured data is a point of optimization that we cannot ignore.

Today, we will delve into how to elegantly embed breadcrumb structured data in Json-LD format using the powerful template functions and built-in tags of AnQiCMS (AnQiCMS).This not only makes your website structure clearer, but also further optimizes its performance in search engines.

WhyBreadcrumbListStructured data is so important?

In website operation, breadcrumb navigation usually exists in the form of "Home u003e Category u003e Subcategory u003e Current Page", which clearly shows the user's position in the website.This is an excellent navigation aid for users, helping them understand the website structure and easily return to the previous level page.

For search engines, especially mainstream search engines like Google,BreadcrumbListStructured data plays a more critical role. By embedding Json-LD data that conforms to Schema.org standards in the page code, we can:BreadcrumbListJson-LD data, we can:

  1. Define the website hierarchy:Directly inform the search engine of the page organization, helping it to better crawl and index content.
  2. Improve the visibility of search results:Google may replace the traditional URL with breadcrumb paths in search results, making the search results more attractive. Users can immediately see the position of the page within the website, thereby increasing the click-through rate.
  3. Improve user experience:Even if breadcrumbs are not displayed directly on the page, their structured data can provide users with more accurate contextual information at the search engine level.

AnQi CMS forBreadcrumbListProvided unparalleled support

Anq CMS is an enterprise-level content management system developed in Go language, which took full consideration of SEO optimization needs from the beginning of its design. It provides a flexible template engine and rich built-in tags, which makes it easier for us to handleBreadcrumbListIt has great convenience when structuring data.

The core lies in two powerful tags:

  • {% breadcrumb %}Tags:This label can intelligently parse the current page URL path, automatically return a list of complete breadcrumb path data. Each element in this list contains the link name (NameAnd the corresponding URL (Link) perfectly fits the constructionBreadcrumbListThe required core information.
  • {% jsonLd %}Tags:A highlight of AnQiCMS is its native support for Json-LD. Through{% jsonLd %}Label, you can insert any valid Json-LD code in the template.It's even better that it supports a merge mechanism, where you can define custom fields that will be merged with the default Json-LD data generated by the system, thus achieving a high degree of customization.

The combination of these two tags, we can embed in AnQiCMS.BreadcrumbListStructured data paved the way.

Practical: Embedding in AnQiCMS templateBreadcrumbListJson-LD

Now, let's implement step by step in AnQiCMS templateBreadcrumbListStructured data embedding. Typically, this code is placed in the public header file of a website, for exampletemplate/你的模板目录/partial/header.htmlortemplate/你的模板目录/bash.htmlIn this way, it can be automatically loaded on each page.

Step one: Get breadcrumb navigation data

Firstly, we need to utilize{% breadcrumb %}The tag retrieves the breadcrumb path data of the current page. This tag will store the parsed breadcrumb entries in a variable you specify, for examplecrumbs.

{% breadcrumb crumbs with index="首页" title=true %}
{# `crumbs` 变量现在包含了面包屑列表数据 #}

here,index="首页"Defined the display name of the home page in the breadcrumb path, whereastitle=truethen it indicates that when in the document detail page, the current document title will be the last item in the breadcrumb.

Step two: BuildBreadcrumbListThe JSON-LD structure

Next, we will use{% jsonLd %}Tags to enclose our Json-LD code. Within this tag, we will traversecrumbsA variable, and structured according to Schema.org'sBreadcrumbListspecifications to build a JSON structure.

BreadcrumbListThe core isitemListElementAn array, each element representing a breadcrumb entry, containing@type(ListItem),position(Location in path),name(Display name) anditem(Link URL).

Related articles

How is the loading order of Json-LD in AnQiCMS template? Will it affect the page rendering speed?

As an experienced website operations expert, I have a deep understanding of the powerful functions of AnQiCMS (AnQiCMS) and its excellent performance in content operations.Today, let's talk about an important and often misunderstood topic: the loading order of Json-LD in AnQiCMS templates and whether it will affect the page rendering speed. ### Json-LD in the elegant loading journey of AnQiCMS template First, let's clarify the positioning of Json-LD.It is a lightweight data format based on JSON

2025-11-06

How to avoid common JSON syntax errors when customizing Json-LD?

As an experienced website operations expert, I know the core status of structured data (Schema Markup), especially Json-LD, in current search engine optimization.AnQiCMS (AnQiCMS) provides users with powerful and flexible content management capabilities while also fully considering the needs of SEO, including built-in rich SEO tools, among which is support for Json-LD.

2025-11-06

How to obtain and display the `Tag` information of an article in Json-LD?

As an experienced website operations expert, I am well aware of the importance of structured data (Json-LD) in modern search engine optimization.It can help search engines understand web content more accurately, thereby improving the display effect of the website in search results.Today, we will delve into how to cleverly obtain and display the article's `Tag` information in Json-LD within AnQiCMS (AnQiCMS), taking your content marketing strategy to a new level.

2025-11-06

How to add or extend Json-LD structured data for AnQiCMS's custom content model?

As an experienced website operations expert, I fully understand that in today's content-oriented era, it is particularly important to stand out among our high-quality content in search engines.Structured data, especially Json-LD, is one of the key tools for achieving this goal.It can help search engines better understand our web page content, thereby improving the display effect in search results, which is what we often call "Rich Media Search Results (Rich Snippets)."}AnQiCMS as an enterprise-level content management system based on the Go language

2025-11-06

How to use the information in the AnQiCMS backend settings to add `Organization` or `WebSite` types to Json-LD?

As an experienced website operation expert, I am well aware of the importance of structured data for a website's performance in search engines.Json-LD is the mainstream way to implement structured data, which can help search engines better understand website content, thereby enhancing the display opportunities of websites in search results, such as obtaining rich search results (Rich Snippets).

2025-11-06

How to generate `VideoObject` type Json-LD for AnQiCMS video page?

As an experienced website operation expert, I am well aware that how to make our content stand out in today's explosion of content on the Internet and be better understood and recommended by search engines is the key to the success of website operation.Video content, as a popular media form, plays a particularly important role in SEO optimization.Today, let's delve into how to take advantage of the powerful features of AnQiCMS to generate high-quality `VideoObject` type Json-LD for video pages, thereby improving the visibility and search ranking of video content.

2025-11-06

How to add a user's `reviews` or `rating` information in Json-LD?

## Merging user reviews and rating information cleverly into Json-LD structured data in Anqi CMS As a senior website operations expert, I am well aware of the importance of structured data in the context of today's search engine optimization (SEO). It not only helps search engines understand web content more accurately but also helps our website win attractive 'rich snippets', such as displaying product star ratings or the number of user comments directly in search results, which is undoubtedly a benefit for increasing click-through rates and user trust.

2025-11-06

If AnQiCMS supports introducing external data in Json-LD?

As an experienced website operations expert, I am well aware of the importance of structured data in the increasingly complex search engine environment.It is not only a tool to enhance the visibility of a website, but also the key to help search engines understand the content of web pages and display richer search results (Rich Snippets).Json-LD is the mainstream way to implement structured data, and its flexibility and powerful functions are highly praised.

2025-11-06